Package org.planit.utils.graph
Interface Vertex.EdgeSegments
-
- All Superinterfaces:
Iterable<EdgeSegment>
- All Known Implementing Classes:
VertexImpl.EdgeSegmentsImpl
- Enclosing interface:
- Vertex
public static interface Vertex.EdgeSegments extends Iterable<EdgeSegment>
EdgeSegment container- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.int
getNumberOfEdges()
Number of entries in edge segmentsboolean
isEmpty()
Test whether no edge segments have been registeredboolean
removeEdgeSegment(EdgeSegment edgeSegment)
Remove edgeSegment-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
addEdgeSegment
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.- Parameters:
edgeSegment
- EdgeSegment object to be added- Returns:
- true when added, false when already present (and not added)
-
removeEdgeSegment
boolean removeEdgeSegment(EdgeSegment edgeSegment)
Remove edgeSegment- Parameters:
edgeSegment
- EdgeSegment object to be removed- Returns:
- true when removed, false when not present (and not removed)
-
isEmpty
boolean isEmpty()
Test whether no edge segments have been registered- Returns:
- true if no edge segments have been registered, false otherwise
-
getNumberOfEdges
int getNumberOfEdges()
Number of entries in edge segments- Returns:
- the number of edges connected to this vertex
-
-