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​(OsmIntermodalReaderSettings settings)
        Create a PLANitOsmIntermodalReader which requires the user to set the remaining required settings on the provided settings instances
        Parameters:
        settings - to use
        Returns:
        create OSM intermodal reader
      • create

        public static OsmIntermodalReader create​(OsmIntermodalReaderSettings settings,
                                                 PlanitOsmNetwork osmNetworkToPopulate,
                                                 Zoning zoningToPopulate)
        Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populate
        Parameters:
        settings - to use
        osmNetworkToPopulate - the network to populate
        zoningToPopulate - the zoning to populate
        Returns:
        create OSM intermodal reader