Class PlanitIntermodalReaderFactory
- java.lang.Object
-
- org.goplanit.io.converter.intermodal.PlanitIntermodalReaderFactory
-
public class PlanitIntermodalReaderFactory extends Object
Factory class for creating zoning reader in the native PLANit format- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PlanitIntermodalReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlanitIntermodalReader
create()
Factory method based on all defaults.static PlanitIntermodalReader
create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)
Factory methodstatic PlanitIntermodalReader
create(PlanitIntermodalReaderSettings intermodalSettings)
Factory method absed on passed in network and zoning reader settingsstatic PlanitIntermodalReader
create(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, MacroscopicNetwork network, Zoning zoning)
constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model
-
-
-
Method Detail
-
create
public static PlanitIntermodalReader create() throws PlanItException
Factory method based on all defaults. IT is expected that the user will set the necessary settings via the exposed settings- Returns:
- created reader
- Throws:
PlanItException
- thrown if error
-
create
public static PlanitIntermodalReader create(PlanitIntermodalReaderSettings intermodalSettings) throws PlanItException
Factory method absed on passed in network and zoning reader settings- Parameters:
intermodalSettings
- to use- Returns:
- created reader
- Throws:
PlanItException
- thrown if error
-
create
public static PlanitIntermodalReader create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning) throws PlanItException
Factory method- Parameters:
pathDirectory
- to usexmlFileExtension
- to usenetwork
- to extract references from (if any)zoning
- to populate- Returns:
- created reader
- Throws:
PlanItException
- thrown if error
-
create
public static PlanitIntermodalReader create(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, MacroscopicNetwork network, Zoning zoning) throws PlanItException
constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model- Parameters:
xmlRawNetwork
- to extract fromxmlRawZoning
- to extract fromnetwork
- to extract references from (if any)zoning
- to populate- Returns:
- created reader
- Throws:
PlanItException
- thrown if error
-
-