Interface EdgeSegmentFactory
-
- All Superinterfaces:
GraphEntityFactory<EdgeSegment>
,ManagedIdEntityFactory<EdgeSegment>
- All Known Implementing Classes:
EdgeSegmentFactoryImpl
public interface EdgeSegmentFactory extends GraphEntityFactory<EdgeSegment>
Factory interface for creating edge segment instances- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EdgeSegment
create(DirectedEdge parentEdge, boolean directionAB)
Create edge segmentEdgeSegment
registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)
Create directional edge segment and register it-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Method Detail
-
create
EdgeSegment create(DirectedEdge parentEdge, boolean directionAB)
Create edge segment- Parameters:
parentEdge
- the parent edge of this edge segmentdirectionAB
- direction of travel- Returns:
- the created edge segment
-
registerNew
EdgeSegment registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)
Create directional edge segment and register it- 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
-
-