Class DirectedVertexImpl

    • Field Detail

      • entryEdgeSegments

        protected final Set<EdgeSegment> entryEdgeSegments
        Entry edge segments which connect to this vertex
      • exitEdgeSegments

        protected final Set<EdgeSegment> exitEdgeSegments
        Exit edge segments which connect to this vertex
    • Constructor Detail

      • DirectedVertexImpl

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

        protected DirectedVertexImpl​(DirectedVertexImpl directedVertexImpl)
        Copy constructor
        Parameters:
        directedVertexImpl - to copy
    • Method Detail

      • addEdgeSegment

        public boolean addEdgeSegment​(EdgeSegment edgeSegment)
        Add edgeSegment, do not invoke when parsing networks, this connection is auto-populated before the assignment starts based on the edge segment vertices that have been registered.
        Specified by:
        addEdgeSegment in interface DirectedVertex
        Parameters:
        edgeSegment - EdgeSegment object to be added
        Returns:
        true when added, false when already present (and not added)
      • removeEdgeSegment

        public boolean removeEdgeSegment​(EdgeSegment edgeSegment)
        Remove edgeSegment on either entry or exit side of vertex
        Specified by:
        removeEdgeSegment in interface DirectedVertex
        Parameters:
        edgeSegment - EdgeSegment object to be removed
        Returns:
        true when removed, false when not present (and not removed)
      • removeEntryEdgeSegment

        public boolean removeEntryEdgeSegment​(EdgeSegment edgeSegment)
        Remove entry edgeSegment
        Specified by:
        removeEntryEdgeSegment in interface DirectedVertex
        Parameters:
        edgeSegment - EdgeSegment object to be removed
        Returns:
        true when removed, false when not present (and not removed)
      • removeExitEdgeSegment

        public boolean removeExitEdgeSegment​(EdgeSegment edgeSegment)
        Remove exit edgeSegment
        Specified by:
        removeExitEdgeSegment in interface DirectedVertex
        Parameters:
        edgeSegment - EdgeSegment object to be removed
        Returns:
        true when removed, false when not present (and not removed)