Class ConjugateLinkSegmentFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConjugateLinkSegment>
-
- org.goplanit.network.layer.physical.ConjugateLinkSegmentFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ConjugateLinkSegment>
,ManagedIdEntityFactory<ConjugateLinkSegment>
,ConjugateLinkSegmentFactory
public class ConjugateLinkSegmentFactoryImpl extends GraphEntityFactoryImpl<ConjugateLinkSegment> implements ConjugateLinkSegmentFactory
Factory for creating conjugate link segments on container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConjugateLinkSegmentFactoryImpl(IdGroupingToken groupId, ConjugateLinkSegments container)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateLinkSegment
create(ConjugateLink parent, boolean directionAb)
Create conjugate link segmentConjugateLinkSegment
registerNew(ConjugateLink parent, boolean directionAb, boolean registerOnNodeAndLink)
Create conjugate link 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
-
ConjugateLinkSegmentFactoryImpl
protected ConjugateLinkSegmentFactoryImpl(IdGroupingToken groupId, ConjugateLinkSegments container)
Constructor- Parameters:
groupId
- to usecontainer
- to use
-
-
Method Detail
-
create
public ConjugateLinkSegment create(ConjugateLink parent, boolean directionAb)
Create conjugate link segment- Specified by:
create
in interfaceConjugateLinkSegmentFactory
- Parameters:
parent
- the parent of this conjugate segmentdirectionAb
- direction of travel- Returns:
- the created segment
-
registerNew
public ConjugateLinkSegment registerNew(ConjugateLink parent, boolean directionAb, boolean registerOnNodeAndLink)
Create conjugate link segment and register it- Specified by:
registerNew
in interfaceConjugateLinkSegmentFactory
- Parameters:
parent
- the parent of this conjugate segmentdirectionAb
- direction of travelregisterOnNodeAndLink
- option to register the new conjugate segment on the underlying conjugate link and its conjugate nodes- Returns:
- the created segment
-
-