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
        Specified by:
        removeEdgeSegment in interface DirectedVertex
        Parameters:
        edgeSegment - EdgeSegment object to be removed
        Returns:
        true when removed, false when not present (and not removed)
      • hasExitEdgeSegments

        public boolean hasExitEdgeSegments()
        Test whether no exit edge segments have been registered
        Specified by:
        hasExitEdgeSegments in interface DirectedVertex
        Returns:
        true if no exit edge segments have been registered, false otherwise
      • hasEntryEdgeSegments

        public boolean hasEntryEdgeSegments()
        Test whether no entry edge segments have been registered
        Specified by:
        hasEntryEdgeSegments in interface DirectedVertex
        Returns:
        true if no entry edge segments have been registered, false otherwise
      • getNumberOfEntryEdgeSegments

        public int getNumberOfEntryEdgeSegments()
        Collect the number of entry edge segments of this vertex
        Specified by:
        getNumberOfEntryEdgeSegments in interface DirectedVertex
        Returns:
        number of entry edge segments
      • getNumberOfExitEdgeSegments

        public int getNumberOfExitEdgeSegments()
        Collect the number of exit edge segments of this vertex
        Specified by:
        getNumberOfExitEdgeSegments in interface DirectedVertex
        Returns:
        number of exit edge segments