Class VertexImpl

    • Field Detail

      • centrePointGeometry

        protected org.opengis.geometry.DirectPosition centrePointGeometry
        Centre point geometry which is coordinate reference system aware
      • id

        protected final long id
        Unique internal identifier
      • inputProperties

        protected Map<String,​Object> inputProperties
        generic input property storage
      • exitEdgeSegments

        protected final Vertex.EdgeSegments exitEdgeSegments
        exitEdgeSegmentcontainer
      • entryEdgeSegments

        protected final Vertex.EdgeSegments entryEdgeSegments
        entryEdgeSegment container
    • Constructor Detail

      • VertexImpl

        protected VertexImpl​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
    • Method Detail

      • generateVertexId

        protected static int generateVertexId​(IdGroupingToken groupId)
        generate unique node id
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
        Returns:
        nodeId
      • getCentrePointGeometry

        public org.opengis.geometry.DirectPosition getCentrePointGeometry()
        Collect the geometry of the point location of this vertex
        Specified by:
        getCentrePointGeometry in interface Vertex
        Returns:
        direct position reflecting point location
      • setCentrePointGeometry

        public void setCentrePointGeometry​(org.opengis.geometry.DirectPosition centrePointGeometry)
        #Set the center point geometry for a vertex
        Specified by:
        setCentrePointGeometry in interface Vertex
        Parameters:
        centrePointGeometry - the center point for a vertex
      • getId

        public long getId()
        #Return id of this instance. This id is expected to be generated using the org.planit.utils.misc.IdGenerator
        Specified by:
        getId in interface Vertex
        Returns:
        the id
      • addInputProperty

        public void addInputProperty​(String key,
                                     Object value)
        Add a property from the original input that is not part of the readily available members
        Parameters:
        key - key (name) of the input property
        value - value of the input property
      • getInputProperty

        public Object getInputProperty​(String key)
        Get input property by its key
        Parameters:
        key - the key of the input property
        Returns:
        value the value of the input property
      • getEdges

        public Vertex.Edges getEdges()
        #Collect the edges of this vertex
        Specified by:
        getEdges in interface Vertex
        Returns:
        edges