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 ConjugateEdgeSegmentsdeepClone()Deep clone conjugate edge segmentsdefault ConjugateEdgeSegmentFactorygetFactory()Collect the conjugate edge segment factory to use for creating instancesvoidregister(ConjugateDirectedEdge parentEdge, ConjugateEdgeSegment edgeSegment, boolean directionAB)Register a conjugate edge segment (not registered on nodes and edge)ConjugateEdgeSegmentsshallowClone()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:
getFactoryin interfaceGraphEntities<ConjugateEdgeSegment>- Returns:
- conjugate edgeSegmentFactory to create edge segments for this container
-
shallowClone
ConjugateEdgeSegments shallowClone()
shallow clone conjugate edge segments- Specified by:
shallowClonein interfaceGraphEntities<ConjugateEdgeSegment>- Specified by:
shallowClonein interfaceMapWrapper<Long,ConjugateEdgeSegment>- Returns:
- clone of entities
-
deepClone
ConjugateEdgeSegments deepClone()
Deep clone conjugate edge segments- Specified by:
deepClonein interfaceGraphEntities<ConjugateEdgeSegment>- Returns:
- deep copy of entities
-
-