Class OsmIntermodalReaderFactory
- java.lang.Object
-
- org.goplanit.osm.converter.intermodal.OsmIntermodalReaderFactory
-
public class OsmIntermodalReaderFactory extends Object
Factory for creating PLANitOsmIntermodalReaders- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description OsmIntermodalReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OsmIntermodalReader
create()
Create a PLANitOsmIntermodalReader which will create its own macroscopic network, zoning and non-locale specific defaults for any right hand driving countrystatic OsmIntermodalReader
create(String countryName)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network, zoning.static OsmIntermodalReader
create(String inputFile, String countryName)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReader
create(URL inputSource, String countryName)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
create(URL inputSource, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReader
create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings)
Create a PLANitOsmIntermodalReader which requires the user to set the remaining required settings on the provided settings instancesstatic OsmIntermodalReader
create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReader
create(OsmNetworkReaderSettings networkSettings, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoning
-
-
-
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 usecountryName
- 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 usecountryName
- 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 approachosmNetworkToPopulate
- the network to populatezoningToPopulate
- 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 usecountryName
- 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 usecountryName
- 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 approachosmNetworkToPopulate
- the network to populatezoningToPopulate
- the zoning to populate- Returns:
- create OSM intermodal reader
-
create
public static OsmIntermodalReader create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings) throws PlanItException
Create a PLANitOsmIntermodalReader which requires the user to set the remaining required settings on the provided settings instances- Parameters:
networkSettings
- to useptSettings
- settings to use for the public transport aspect- Returns:
- create OSM intermodal reader
- Throws:
PlanItException
- throw if error
-
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 useosmNetworkToPopulate
- 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) throws PlanItException
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoning- Parameters:
networkSettings
- to useptSettings
- settings to use for the public transport aspectosmNetworkToPopulate
- the network to populate- Returns:
- create OSM intermodal reader
- Throws:
PlanItException
- throw if error
-
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 useptSettings
- settings to use for the public transport aspectosmNetworkToPopulate
- the network to populatezoningToPopulate
- the zoning to populate- Returns:
- create OSM intermodal reader
- Throws:
PlanItException
- throw if network settings are inconsistent with provided country and network to populate
-
-