Package org.goplanit.graph.directed
Class EdgeSegmentFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<EdgeSegment>
-
- org.goplanit.graph.directed.EdgeSegmentFactoryImpl
-
- All Implemented Interfaces:
EdgeSegmentFactory,GraphEntityFactory<EdgeSegment>,ManagedIdEntityFactory<EdgeSegment>
public class EdgeSegmentFactoryImpl extends GraphEntityFactoryImpl<EdgeSegment> implements EdgeSegmentFactory
Factory for creating edge segments on edge segments container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEdgeSegmentFactoryImpl(IdGroupingToken groupId, EdgeSegments edgeSegments)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeSegmentcreate(DirectedEdge parentEdge, boolean directionAB)Create edge segmentEdgeSegmentregisterNew(DirectedEdge 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
-
EdgeSegmentFactoryImpl
protected EdgeSegmentFactoryImpl(IdGroupingToken groupId, EdgeSegments edgeSegments)
Constructor- Parameters:
groupId- to useedgeSegments- to use
-
-
Method Detail
-
create
public EdgeSegment create(DirectedEdge parentEdge, boolean directionAB)
Create edge segment- Specified by:
createin interfaceEdgeSegmentFactory- Parameters:
parentEdge- the parent edge of this edge segmentdirectionAB- direction of travel- Returns:
- the created edge segment
-
registerNew
public EdgeSegment registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)
Create directional edge segment and register it- Specified by:
registerNewin interfaceEdgeSegmentFactory- 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
-
-