Class ServiceLegFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ServiceLeg>
-
- org.goplanit.network.layer.service.ServiceLegFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ServiceLeg>,ManagedIdEntityFactory<ServiceLeg>,ServiceLegFactory
public class ServiceLegFactoryImpl extends GraphEntityFactoryImpl<ServiceLeg> implements ServiceLegFactory
Factory for creating service legs on service leg container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Constructor Description ServiceLegFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ServiceLeg> serviceLegs)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceLegImplregisterNew(ServiceNode nodeA, ServiceNode nodeB, boolean registerOnNodes)Create new service leg on containerServiceLegregisterNew(ServiceNode nodeA, ServiceNode nodeB, List<Link> networkLayerLinks, boolean registerOnNodes)Create new link on links container, allow to be registered on nodes if indicated)protected voidregisterOnNodes(ServiceLegImpl leg)Register the leg on its nodes-
Methods inherited from class org.goplanit.graph.GraphEntityFactoryImpl
getGraphEntities
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
createUniqueCopyOf, 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
createUniqueCopyOf, getIdGroupingToken, setIdGroupingToken
-
Methods inherited from interface org.goplanit.utils.network.layer.service.ServiceLegFactory
registerNew
-
-
-
-
Constructor Detail
-
ServiceLegFactoryImpl
public ServiceLegFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ServiceLeg> serviceLegs)
Constructor- Parameters:
groupIdToken- to use for creating element idsserviceLegs- to register the created instances on
-
-
Method Detail
-
registerOnNodes
protected void registerOnNodes(ServiceLegImpl leg)
Register the leg on its nodes- Parameters:
leg- to register on nodes
-
registerNew
public ServiceLegImpl registerNew(ServiceNode nodeA, ServiceNode nodeB, boolean registerOnNodes)
Create new service leg on container- Specified by:
registerNewin interfaceServiceLegFactory- Parameters:
nodeA- the first service nodenodeB- the second service noderegisterOnNodes- choice to register new leg on the service nodes or not- Returns:
- the created service leg
-
registerNew
public ServiceLeg registerNew(ServiceNode nodeA, ServiceNode nodeB, List<Link> networkLayerLinks, boolean registerOnNodes)
Create new link on links container, allow to be registered on nodes if indicated)- Specified by:
registerNewin interfaceServiceLegFactory- Parameters:
nodeA- the first node in this legnodeB- the second node in this legnetworkLayerLinks- the underlying parent links that make up this legregisterOnNodes- choice to register new leg on the service nodes or not- Returns:
- the created service leg
-
-