Interface EdgeSegments
-
- All Superinterfaces:
Cloneable
,GraphEntities<EdgeSegment>
,Iterable<EdgeSegment>
,LongMapWrapper<EdgeSegment>
,MapWrapper<Long,EdgeSegment>
- All Known Implementing Classes:
EdgeSegmentsImpl
public interface EdgeSegments extends GraphEntities<EdgeSegment>
Container and factory class for edge segments in a graph, also to be used to create and register edge segments of any (derived) type- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EdgeSegments
deepClone()
clone edge segmentsdefault EdgeSegmentFactory
getFactory()
Collect the edge segment factory to use for creating instancesvoid
register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)EdgeSegments
shallowClone()
clone edge segments-
Methods inherited from interface org.goplanit.utils.graph.GraphEntities
deepCloneWithMapping, forEachMatchingIdIn, getByExternalId, getByXmlId
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrapper
containsKey, get, remove
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
-
-
-
-
Method Detail
-
register
void register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB) throws PlanItException
Register a edge segment (not registered on nodes and edge)- Parameters:
parentEdge
- the parent edge which specified edge segment will be registered onedgeSegment
- edge segment to be registereddirectionAB
- direction of travel- Throws:
PlanItException
- thrown if there is an error
-
getFactory
default EdgeSegmentFactory getFactory()
Collect the edge segment factory to use for creating instances- Specified by:
getFactory
in interfaceGraphEntities<EdgeSegment>
- Returns:
- edgeSegmentFactory to create edge segments for this container
-
shallowClone
EdgeSegments shallowClone()
clone edge segments- Specified by:
shallowClone
in interfaceGraphEntities<EdgeSegment>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,EdgeSegment>
- Returns:
- clone of entities
-
deepClone
EdgeSegments deepClone()
clone edge segments- Specified by:
deepClone
in interfaceGraphEntities<EdgeSegment>
- Returns:
- deep copy of entities
-
-