Package org.goplanit.network
Class TopologicalLayerNetwork<T extends TopologicalLayer,U extends TopologicalLayers<T>>
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<Network>
-
- org.goplanit.network.Network
-
- org.goplanit.network.TransportLayerNetwork<T,U>
-
- org.goplanit.network.TopologicalLayerNetwork<T,U>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<IdAble>
,EventListener
,PlanitComponentListener
,EventListener
,ExternalIdAble
,IdAble
- Direct Known Subclasses:
ServiceNetwork
,UntypedPhysicalNetwork
public abstract class TopologicalLayerNetwork<T extends TopologicalLayer,U extends TopologicalLayers<T>> extends TransportLayerNetwork<T,U>
A network with topological transport layers, meaning that apart from representing a physical reality the result is topologically meaningful, has nodes, links, and some geographic notion via a coordinate reference system- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.goplanit.network.Network
MACROSCOPIC_NETWORK, networkIdGroupingToken
-
-
Constructor Summary
Constructors Constructor Description TopologicalLayerNetwork(IdGroupingToken tokenId)
Default constructorTopologicalLayerNetwork(IdGroupingToken tokenId, org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opengis.referencing.crs.CoordinateReferenceSystem
getCoordinateReferenceSystem()
collect the used crsvoid
setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
set the coordinate reference system used for all layersvoid
transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem)
change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS.-
Methods inherited from class org.goplanit.network.TransportLayerNetwork
createLayersContainer, 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
-
TopologicalLayerNetwork
public TopologicalLayerNetwork(IdGroupingToken tokenId)
Default constructor- Parameters:
tokenId
- to use for id generation
-
TopologicalLayerNetwork
public TopologicalLayerNetwork(IdGroupingToken tokenId, org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
Default constructor- Parameters:
tokenId
- to use for id generationcoordinateReferenceSystem
- preferred coordinate reference system to use
-
-
Method Detail
-
getCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
collect the used crs- Returns:
- coordinateReferencesystem used by this infrastructure network
-
setCoordinateReferenceSystem
public void setCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
set the coordinate reference system used for all layers- Parameters:
coordinateReferenceSystem
- to set
-
transform
public void transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem) throws PlanItException
change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS. If the network is empty and no CRS is set then this is identical to calling setCoordinateReferenceSystem, otherwise it will change the CRS while the set method will throw an exception- Parameters:
newCoordinateReferenceSystem
- to transform the network to- Throws:
PlanItException
- thrown if error
-
-