Interface ServiceLegSegmentFactory
-
- All Superinterfaces:
GraphEntityFactory<ServiceLegSegment>
,ManagedIdEntityFactory<ServiceLegSegment>
- All Known Implementing Classes:
ServiceLegSegmentFactoryImpl
public interface ServiceLegSegmentFactory extends GraphEntityFactory<ServiceLegSegment>
Factory interface for creating service leg segment instances- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ServiceLegSegment
registerNew(ServiceLeg parentLeg, boolean directionAb)
create a new service leg segment and register it on the underlying container (without registering on service node and leg)ServiceLegSegment
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 desiredServiceLegSegment
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 interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Method Detail
-
registerNew
default ServiceLegSegment registerNew(ServiceLeg parentLeg, boolean directionAb)
create a new service leg segment and register it on the underlying container (without registering on service node and leg)- Parameters:
parentLeg
- of the segmentdirectionAb
- direction of the segment- Returns:
- created segment
-
registerNew
ServiceLegSegment 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- 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
ServiceLegSegment 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- 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
-
-