Package org.goplanit.network.layers
Class ServiceNetworkLayersImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<T>
-
- org.goplanit.network.layers.TransportLayersImpl<T>
-
- org.goplanit.network.layers.TopologicalLayersImpl<ServiceNetworkLayer>
-
- org.goplanit.network.layers.ServiceNetworkLayersImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<ServiceNetworkLayer>
,ManagedIdEntities<ServiceNetworkLayer>
,ServiceNetworkLayers
,TopologicalLayers<ServiceNetworkLayer>
,TransportLayers<ServiceNetworkLayer>
,UntypedDirectedGraphLayers<ServiceNetworkLayer>
,LongMapWrapper<ServiceNetworkLayer>
,MapWrapper<Long,ServiceNetworkLayer>
public class ServiceNetworkLayersImpl extends TopologicalLayersImpl<ServiceNetworkLayer> implements ServiceNetworkLayers
Implementation of container and factory to manage service network layers. In this network type, all layers are of the ServiceNetworkLayer type- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceNetworkLayerFactory
factory
factory to use for creating layer instances-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description ServiceNetworkLayersImpl(ServiceNetworkLayersImpl serviceNetworkLayersImpl)
Copy constructorServiceNetworkLayersImpl(IdGroupingToken idToken, MacroscopicNetwork parentNetwork)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceNetworkLayersImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdServiceNetworkLayerFactory
getFactory()
Factory to create instance of managed id entity (for this container class)MacroscopicNetwork
getParentNetwork()
The parent network-
Methods inherited from class org.goplanit.network.layers.TransportLayersImpl
get, getByXmlId, getIdToken
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
getManagedIdClass, recreateIds, reset, updateIdMapping
-
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImpl
containsKey, get, remove
-
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImpl
clear, contains, createEmptyInstance, findFirst, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, setMap, size, toCollection, valuesAsNewSet
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrapper
get, remove
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntities
containsKey, getManagedIdClass, recreateIds, recreateIds, reset
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, contains, findFirst, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, size, toCollection, valuesAsNewSet
-
Methods inherited from interface org.goplanit.utils.network.layers.TransportLayers
get, getByXmlId, getLayersOfType, isEachLayerEmpty, isNoLayers
-
-
-
-
Field Detail
-
factory
protected final ServiceNetworkLayerFactory factory
factory to use for creating layer instances
-
-
Constructor Detail
-
ServiceNetworkLayersImpl
public ServiceNetworkLayersImpl(IdGroupingToken idToken, MacroscopicNetwork parentNetwork)
Constructor- Parameters:
idToken
- for id generationparentNetwork
- the layers are built upon
-
ServiceNetworkLayersImpl
public ServiceNetworkLayersImpl(ServiceNetworkLayersImpl serviceNetworkLayersImpl)
Copy constructor- Parameters:
serviceNetworkLayersImpl
- to copy
-
-
Method Detail
-
getParentNetwork
public MacroscopicNetwork getParentNetwork()
The parent network- Returns:
- parent network
-
clone
public ServiceNetworkLayersImpl clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly created- Specified by:
clone
in interfaceManagedIdEntities<ServiceNetworkLayer>
- Specified by:
clone
in interfaceMapWrapper<Long,ServiceNetworkLayer>
- Specified by:
clone
in interfaceServiceNetworkLayers
- Specified by:
clone
in interfaceTopologicalLayers<ServiceNetworkLayer>
- Specified by:
clone
in interfaceTransportLayers<ServiceNetworkLayer>
- Specified by:
clone
in interfaceUntypedDirectedGraphLayers<ServiceNetworkLayer>
- Specified by:
clone
in classTopologicalLayersImpl<ServiceNetworkLayer>
- Returns:
- copy
-
getFactory
public ServiceNetworkLayerFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<ServiceNetworkLayer>
- Specified by:
getFactory
in interfaceServiceNetworkLayers
- Returns:
- entity factory
-
-