Interface LinkSegmentFactory
-
- All Superinterfaces:
GraphEntityFactory<LinkSegment>,ManagedIdEntityFactory<LinkSegment>
public interface LinkSegmentFactory extends GraphEntityFactory<LinkSegment>
Factory to create link segments and register them on its container- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LinkSegmentcreate(Link parentLink, boolean directionAB)Create link segmentLinkSegmentregisterNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create link segment and register it-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Method Detail
-
create
LinkSegment create(Link parentLink, boolean directionAB) throws PlanItException
Create link segment- Parameters:
parentLink- the parent of this segmentdirectionAB- direction of travel- Returns:
- the created segment
- Throws:
PlanItException- thrown if error
-
registerNew
LinkSegment registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink) throws PlanItException
Create link segment and register it- Parameters:
parentLink- the parent of this segmentdirectionAb- direction of travelregisterOnNodeAndLink- option to register the new segment on the underlying link and its nodes- Returns:
- the created segment
- Throws:
PlanItException- thrown if error
-
-