Package org.goplanit.service.routed
Class RoutedServicesLayerFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<RoutedServicesLayer>
-
- org.goplanit.service.routed.RoutedServicesLayerFactoryImpl
-
- All Implemented Interfaces:
ManagedIdEntityFactory<RoutedServicesLayer>
,RoutedServicesLayerFactory
public class RoutedServicesLayerFactoryImpl extends ManagedIdEntityFactoryImpl<RoutedServicesLayer> implements RoutedServicesLayerFactory
Factory for creating routed services layer instances (on container)- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected RoutedServicesLayers
routedServicesLayers
container to use-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RoutedServicesLayerFactoryImpl(IdGroupingToken tokenId, RoutedServicesLayers routedServicesLayers)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RoutedServicesLayer
createNew(ServiceNetworkLayer parentLayer)
Create a newly created instance without registering on the containerRoutedServicesLayer
registerNew(ServiceNetworkLayer parentLayer)
Register a newly created instance on the underlying container-
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
-
-
-
-
Field Detail
-
routedServicesLayers
protected final RoutedServicesLayers routedServicesLayers
container to use
-
-
Constructor Detail
-
RoutedServicesLayerFactoryImpl
protected RoutedServicesLayerFactoryImpl(IdGroupingToken tokenId, RoutedServicesLayers routedServicesLayers)
Constructor- Parameters:
tokenId
- to useroutedServicesLayers
- to use
-
-
Method Detail
-
createNew
protected RoutedServicesLayer createNew(ServiceNetworkLayer parentLayer)
Create a newly created instance without registering on the container- Parameters:
parentLayer
- the parent layer these routed services are built upon- Returns:
- created routed services layer
-
registerNew
public RoutedServicesLayer registerNew(ServiceNetworkLayer parentLayer)
Register a newly created instance on the underlying container- Specified by:
registerNew
in interfaceRoutedServicesLayerFactory
- Parameters:
parentLayer
- the parent layer these routed services are built upon- Returns:
- created instance
-
-