Class OsmIntermodalReaderFactory


  • public class OsmIntermodalReaderFactory
    extends Object
    Factory for creating PLANitOsmIntermodalReaders
    Author:
    markr
    • Constructor Detail

      • OsmIntermodalReaderFactory

        public OsmIntermodalReaderFactory()
    • Method Detail

      • create

        public static OsmIntermodalReader create()
        Create a PLANitOsmIntermodalReader which will create its own macroscopic network, zoning and non-locale specific defaults for any right hand driving country
        Returns:
        create OSM intermodal reader
      • create

        public static OsmIntermodalReader create​(String countryName)
        Create a PLANitOsmIntermodalReader which will create its own macroscopic network, zoning. Locale based on country name provided
        Parameters:
        countryName - to use
        Returns:
        create OSM intermodal reader
      • create

        public static OsmIntermodalReader create​(String inputFile,
                                                 String countryName)
                                          throws PlanItException
        Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoning
        Parameters:
        inputFile - to use
        countryName - country which the input file represents, used to determine defaults in case not specifically specified in OSM data, when left blank global defaults will be used based on a right hand driving approach
        Returns:
        create OSM intermodal reader
        Throws:
        PlanItException - thrown if error
      • create

        public static OsmIntermodalReader create​(String inputFile,
                                                 String countryName,
                                                 PlanitOsmNetwork osmNetworkToPopulate,
                                                 Zoning zoningToPopulate)
                                          throws PlanItException
        Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populate
        Parameters:
        inputFile - to use
        countryName - country which the input file represents, used to determine defaults in case not specifically specified in OSM data, when left blank global defaults will be used based on a right hand driving approach
        osmNetworkToPopulate - the network to populate
        zoningToPopulate - the zoning to populate
        Returns:
        create OSM intermodal reader
        Throws:
        PlanItException - thrown if error
      • create

        public static OsmIntermodalReader create​(URL inputSource,
                                                 String countryName)
        Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoning
        Parameters:
        inputSource - to use
        countryName - country which the input file represents, used to determine defaults in case not specifically specified in OSM data, when left blank global defaults will be used based on a right hand driving approach
        Returns:
        create OSM intermodal reader
      • create

        public static OsmIntermodalReader create​(URL inputSource,
                                                 String countryName,
                                                 PlanitOsmNetwork osmNetworkToPopulate,
                                                 Zoning zoningToPopulate)
        Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populate
        Parameters:
        inputSource - to use
        countryName - country which the input file represents, used to determine defaults in case not specifically specified in OSM data, when left blank global defaults will be used based on a right hand driving approach
        osmNetworkToPopulate - the network to populate
        zoningToPopulate - the zoning to populate
        Returns:
        create OSM intermodal reader
      • create

        public static OsmIntermodalReader create​(OsmNetworkReaderSettings networkSettings,
                                                 PlanitOsmNetwork osmNetworkToPopulate)
                                          throws PlanItException
        Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoning
        Parameters:
        networkSettings - to use
        osmNetworkToPopulate - the network to populate
        Returns:
        create OSM intermodal reader
        Throws:
        PlanItException - throw if network settings are inconsistent with provided country and network to populate
      • create

        public static OsmIntermodalReader create​(OsmNetworkReaderSettings networkSettings,
                                                 OsmPublicTransportReaderSettings ptSettings,
                                                 PlanitOsmNetwork osmNetworkToPopulate,
                                                 Zoning zoningToPopulate)
                                          throws PlanItException
        Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populate
        Parameters:
        networkSettings - to use
        ptSettings - settings to use for the public transport aspect
        osmNetworkToPopulate - the network to populate
        zoningToPopulate - the zoning to populate
        Returns:
        create OSM intermodal reader
        Throws:
        PlanItException - throw if network settings are inconsistent with provided country and network to populate