Package org.goplanit.osm.util
Class PlanitNetworkLayerUtils
- java.lang.Object
-
- org.goplanit.osm.util.PlanitNetworkLayerUtils
-
public class PlanitNetworkLayerUtils extends Object
Utilities regarding PLANit network layers with respect to parsing OSM netities for it- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PlanitNetworkLayerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkReaderData networkData)
Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit linkstatic boolean
hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkToZoningReaderData networkToZoningData)
Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit link
-
-
-
Method Detail
-
hasNetworkLayersWithActiveOsmNode
public static boolean hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkToZoningReaderData networkToZoningData) throws PlanItException
Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit link- Parameters:
osmNodeId
- to usenetwork
- to considernetworkToZoningData
- to extract layer specific data from- Returns:
- true when one or more layers are found, false otherwise
- Throws:
PlanItException
- thrown if error
-
hasNetworkLayersWithActiveOsmNode
public static boolean hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkReaderData networkData) throws PlanItException
Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit link- Parameters:
osmNodeId
- to usenetwork
- to considernetworkData
- to extract layer specific data from- Returns:
- true when one or more layers are found, false otherwise
- Throws:
PlanItException
- thrown if error
-
-