Package org.goplanit.network
Class MacroscopicNetwork
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<Network>
-
- org.goplanit.network.Network
-
- org.goplanit.network.TransportLayerNetwork<T,U>
-
- org.goplanit.network.TopologicalLayerNetwork<L,LS>
-
- org.goplanit.network.UntypedPhysicalNetwork<MacroscopicNetworkLayer,MacroscopicNetworkLayers>
-
- org.goplanit.network.MacroscopicNetwork
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<IdAble>
,EventListener
,PlanitComponentListener
,EventListener
,ExternalIdAble
,IdAble
- Direct Known Subclasses:
PlanitOsmNetwork
public class MacroscopicNetwork extends UntypedPhysicalNetwork<MacroscopicNetworkLayer,MacroscopicNetworkLayers>
Macroscopic Network which stores one or more macroscopic network infrastructure layers that together form the complete (intermodal) network.- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.goplanit.network.Network
MACROSCOPIC_NETWORK, networkIdGroupingToken
-
-
Constructor Summary
Constructors Constructor Description MacroscopicNetwork(IdGroupingToken tokenId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MacroscopicNetworkLayersImpl
createLayersContainer(IdGroupingToken networkIdToken)
Derived type is to provide the actual layer implementationsvoid
initialiseLayers(MacroscopicNetworkLayerConfigurator layerConfiguration)
Tries to initialise and create/register layers via a predefined configuration rather than letting the user do this manually via the infrastructure layers container.-
Methods inherited from class org.goplanit.network.UntypedPhysicalNetwork
removeDanglingSubnetworks, removeDanglingSubnetworks
-
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
-
MacroscopicNetwork
public MacroscopicNetwork(IdGroupingToken tokenId)
Constructor- Parameters:
tokenId
- contiguous id generation within this group for instances of this class
-
-
Method Detail
-
createLayersContainer
protected MacroscopicNetworkLayersImpl createLayersContainer(IdGroupingToken networkIdToken)
Derived type is to provide the actual layer implementations- Specified by:
createLayersContainer
in classTransportLayerNetwork<MacroscopicNetworkLayer,MacroscopicNetworkLayers>
- Parameters:
networkIdToken
- to use- Returns:
- infrastructure layers container
-
initialiseLayers
public void initialiseLayers(MacroscopicNetworkLayerConfigurator layerConfiguration)
Tries to initialise and create/register layers via a predefined configuration rather than letting the user do this manually via the infrastructure layers container. Only possible when the network is still empty and no layers are yet active- Parameters:
layerConfiguration
- to use for configuration
-
-