Class PlanitNetworkLayerUtils


  • public class PlanitNetworkLayerUtils
    extends Object
    Utilities regarding PLANit network layers with respect to parsing OSM netities for it
    Author:
    markr
    • Constructor Detail

      • PlanitNetworkLayerUtils

        public PlanitNetworkLayerUtils()
    • 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 use
        network - to consider
        networkToZoningData - 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 use
        network - to consider
        networkData - to extract layer specific data from
        Returns:
        true when one or more layers are found, false otherwise
        Throws:
        PlanItException - thrown if error