Package org.goplanit.network
Class ServiceNetwork
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<Network>
-
- org.goplanit.network.Network
-
- org.goplanit.network.TransportLayerNetwork<T,U>
-
- org.goplanit.network.TopologicalLayerNetwork<ServiceNetworkLayer,ServiceNetworkLayers>
-
- org.goplanit.network.ServiceNetwork
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IdAble>,EventListener,PlanitComponentListener,EventListener,ExternalIdAble,IdAble
public class ServiceNetwork extends TopologicalLayerNetwork<ServiceNetworkLayer,ServiceNetworkLayers>
A service network is a network built on top of a topological (physical) transport network providing services leveraging this underlying network. Each ServiceNetworkLayer in turn relates one-on-one to a (physical) topological layer where it provides services on that layer.- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.goplanit.network.Network
MACROSCOPIC_NETWORK, networkIdGroupingToken
-
-
Constructor Summary
Constructors Constructor Description ServiceNetwork(IdGroupingToken tokenId, MacroscopicNetwork parentNetwork)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServiceNetworkLayerscreateLayersContainer(IdGroupingToken networkIdToken)Derived type is to provide the actual layer implementationsMacroscopicNetworkgetParentNetwork()The parent network of the service network-
Methods inherited from class org.goplanit.network.TopologicalLayerNetwork
getCoordinateReferenceSystem, setCoordinateReferenceSystem, transform
-
Methods inherited from class org.goplanit.network.TransportLayerNetwork
getLayerByMode, getModes, getTransportLayers, reset
-
Methods inherited from class org.goplanit.network.Network
clone, getNetworkGroupingTokenId
-
Methods inherited from class org.goplanit.component.PlanitComponent
equals, getComponentType, getExternalId, getId, getIdGroupingToken, getKnownSupportedEventTypes, getXmlId, hashCode, onPlanitComponentEvent, setExternalId, setXmlId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.event.EventListener
hasKnownSupportedEventTypes
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
hasExternalId, hasXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, idEquals, idHashCode
-
-
-
-
Constructor Detail
-
ServiceNetwork
public ServiceNetwork(IdGroupingToken tokenId, MacroscopicNetwork parentNetwork)
Constructor- Parameters:
tokenId- to use for id generationparentNetwork- to use
-
-
Method Detail
-
createLayersContainer
protected ServiceNetworkLayers createLayersContainer(IdGroupingToken networkIdToken)
Derived type is to provide the actual layer implementations- Specified by:
createLayersContainerin classTransportLayerNetwork<ServiceNetworkLayer,ServiceNetworkLayers>- Parameters:
networkIdToken- to use- Returns:
- infrastructure layers container
-
getParentNetwork
public MacroscopicNetwork getParentNetwork()
The parent network of the service network- Returns:
- parent network
-
-