Package org.goplanit.graph.directed
Class ConjugateEdgeSegmentFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConjugateEdgeSegment>
-
- org.goplanit.graph.directed.ConjugateEdgeSegmentFactoryImpl
-
- All Implemented Interfaces:
ConjugateEdgeSegmentFactory,GraphEntityFactory<ConjugateEdgeSegment>,ManagedIdEntityFactory<ConjugateEdgeSegment>
public class ConjugateEdgeSegmentFactoryImpl extends GraphEntityFactoryImpl<ConjugateEdgeSegment> implements ConjugateEdgeSegmentFactory
Factory for creating conjugate edge segments on conjugate edge segments container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjugateEdgeSegmentFactoryImpl(IdGroupingToken groupId, ConjugateEdgeSegments conjugateEdgeSegments)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateEdgeSegmentcreate(ConjugateDirectedEdge parentEdge, boolean directionAB)Create edge segmentConjugateEdgeSegmentregisterNew(ConjugateDirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)Create directional edge segment and register it-
Methods inherited from class org.goplanit.graph.GraphEntityFactoryImpl
getGraphEntities, setGraphEntities
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
ConjugateEdgeSegmentFactoryImpl
protected ConjugateEdgeSegmentFactoryImpl(IdGroupingToken groupId, ConjugateEdgeSegments conjugateEdgeSegments)
Constructor- Parameters:
groupId- to useconjugateEdgeSegments- to use
-
-
Method Detail
-
create
public ConjugateEdgeSegment create(ConjugateDirectedEdge parentEdge, boolean directionAB)
Create edge segment- Specified by:
createin interfaceConjugateEdgeSegmentFactory- Parameters:
parentEdge- the parent edge of this edge segmentdirectionAB- direction of travel- Returns:
- the created edge segment
-
registerNew
public ConjugateEdgeSegment registerNew(ConjugateDirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)
Create directional edge segment and register it- Specified by:
registerNewin interfaceConjugateEdgeSegmentFactory- Parameters:
parentEdge- the parent edge of this edge segmentdirectionAb- direction of travelregisterOnVertexAndEdge- option to register the new edge segment on the underlying edge and its vertices- Returns:
- the created edge segment
-
-