Interface ConjugateEdgeSegments
-
- All Superinterfaces:
Cloneable
,GraphEntities<ConjugateEdgeSegment>
,Iterable<ConjugateEdgeSegment>
,LongMapWrapper<ConjugateEdgeSegment>
,MapWrapper<Long,ConjugateEdgeSegment>
public interface ConjugateEdgeSegments extends GraphEntities<ConjugateEdgeSegment>
Container and factory class for conjugate edge segments in a conjugate graph.- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConjugateEdgeSegments
deepClone()
Deep clone conjugate edge segmentsdefault ConjugateEdgeSegmentFactory
getFactory()
Collect the conjugate edge segment factory to use for creating instancesvoid
register(ConjugateDirectedEdge parentEdge, ConjugateEdgeSegment edgeSegment, boolean directionAB)
Register a conjugate edge segment (not registered on nodes and edge)ConjugateEdgeSegments
shallowClone()
shallow clone conjugate 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(ConjugateDirectedEdge parentEdge, ConjugateEdgeSegment edgeSegment, boolean directionAB) throws PlanItException
Register a conjugate edge segment (not registered on nodes and edge)- Parameters:
parentEdge
- the conjugate parent edge which specified edge segment will be registered onedgeSegment
- conjugate edge segment to be registereddirectionAB
- direction of travel- Throws:
PlanItException
- thrown if there is an error
-
getFactory
default ConjugateEdgeSegmentFactory getFactory()
Collect the conjugate edge segment factory to use for creating instances- Specified by:
getFactory
in interfaceGraphEntities<ConjugateEdgeSegment>
- Returns:
- conjugate edgeSegmentFactory to create edge segments for this container
-
shallowClone
ConjugateEdgeSegments shallowClone()
shallow clone conjugate edge segments- Specified by:
shallowClone
in interfaceGraphEntities<ConjugateEdgeSegment>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,ConjugateEdgeSegment>
- Returns:
- clone of entities
-
deepClone
ConjugateEdgeSegments deepClone()
Deep clone conjugate edge segments- Specified by:
deepClone
in interfaceGraphEntities<ConjugateEdgeSegment>
- Returns:
- deep copy of entities
-
-