All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.ninecode.cim.CIMClasses.scala Maven / Gradle / Ivy

There is a newer version: 2.12-3.0.1-5.1.1
Show newest version
package ch.ninecode.cim

/**
 * Get a list of classes suitable for Kryo registration.
 */
object CIMClasses
{
    /**
     * The list of classes that can be persisted in RDD.
     */
    lazy val list: Array[Class[_]] =
    {
        val chim = new CHIM ("") // ensure registration has occurred
        Array.concat (
            Array (classOf [ch.ninecode.model.Element], classOf [ch.ninecode.model.BasicElement], classOf [ch.ninecode.model.Unknown]), // low level classes
            chim.classes.map (_.subsetter.runtime_class).toArray, // CIM model case classes
            Array (classOf [CIMEdgeData], classOf [CIMVertexData], classOf [CIMVD], classOf [CIMIslandData], classOf [CIMTopologyOptions]), // topological classes
            Array (classOf [PreEdge], classOf [Extremum], classOf [PostEdge]) // edge related classes
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy