Class VertexImpl.EdgeSegmentsImpl

    • Field Detail

      • edgeSegments

        protected Set<EdgeSegment> edgeSegments
        Edge segments which connect to this vertex
    • Constructor Detail

      • EdgeSegmentsImpl

        public EdgeSegmentsImpl()
    • 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 Vertex.EdgeSegments
        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 Vertex.EdgeSegments
        Parameters:
        edgeSegment - EdgeSegment object to be removed
        Returns:
        true when removed, false when not present (and not removed)
      • isEmpty

        public boolean isEmpty()
        #Test whether no edge segments have been registered
        Specified by:
        isEmpty in interface Vertex.EdgeSegments
        Returns:
        true if no edge segments have been registered, false otherwise
      • getNumberOfEdges

        public int getNumberOfEdges()
        #Number of entries in edge segments
        Specified by:
        getNumberOfEdges in interface Vertex.EdgeSegments
        Returns:
        the number of edges connected to this vertex