Class ServiceLegSegmentFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ServiceLegSegment>
-
- org.goplanit.network.layer.service.ServiceLegSegmentFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ServiceLegSegment>
,ManagedIdEntityFactory<ServiceLegSegment>
,ServiceLegSegmentFactory
public class ServiceLegSegmentFactoryImpl extends GraphEntityFactoryImpl<ServiceLegSegment> implements ServiceLegSegmentFactory
Factory for creating service leg segments on service leg segment container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Constructor Description ServiceLegSegmentFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ServiceLegSegment> serviceLegSegments)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceLegSegmentImpl
registerNew(ServiceLeg parentLeg, boolean directionAb, boolean registerOnServiceNodeAndLeg)
create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desiredServiceLegSegmentImpl
registerNew(ServiceLeg parentLeg, boolean directionAb, List<LinkSegment> networkLayerLinkSegments, boolean registerOnServiceNodeAndLeg)
create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desired-
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
-
Methods inherited from interface org.goplanit.utils.network.layer.service.ServiceLegSegmentFactory
registerNew
-
-
-
-
Constructor Detail
-
ServiceLegSegmentFactoryImpl
public ServiceLegSegmentFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ServiceLegSegment> serviceLegSegments)
Constructor- Parameters:
groupIdToken
- to use for creating element idsserviceLegSegments
- to register the created instances on
-
-
Method Detail
-
registerNew
public ServiceLegSegmentImpl registerNew(ServiceLeg parentLeg, boolean directionAb, boolean registerOnServiceNodeAndLeg)
create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desired- Specified by:
registerNew
in interfaceServiceLegSegmentFactory
- Parameters:
parentLeg
- of the segmentdirectionAb
- direction of the segmentregisterOnServiceNodeAndLeg
- flag indicating whether or not to regsiter the created leg segment on node and leg- Returns:
- created segment
-
registerNew
public ServiceLegSegmentImpl registerNew(ServiceLeg parentLeg, boolean directionAb, List<LinkSegment> networkLayerLinkSegments, boolean registerOnServiceNodeAndLeg)
create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desired- Specified by:
registerNew
in interfaceServiceLegSegmentFactory
- Parameters:
parentLeg
- of the segmentdirectionAb
- direction of the segmentnetworkLayerLinkSegments
- the underlying parent link segments that make up this legregisterOnServiceNodeAndLeg
- flag indicating whether to register the created leg segment on node and leg- Returns:
- created segment
-
-