Class PlanitIntermodalReaderFactory
- java.lang.Object
-
- org.goplanit.io.converter.intermodal.PlanitIntermodalReaderFactory
-
public class PlanitIntermodalReaderFactory extends Object
Factory class for creating intermodal 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)
Factory method based on defaults with custom set path directory.static PlanitIntermodalReader
create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)
Factory method for intermodal reader( without services)static PlanitIntermodalReader
create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
Factory methodstatic PlanitIntermodalReader
create(PlanitIntermodalReaderSettings intermodalSettings)
Factory method based on passed in network and zoning reader settingsstatic PlanitIntermodalReader
create(IdGroupingToken idGroupingToken)
Factory method based on all defaults.static PlanitIntermodalReader
create(IdGroupingToken idGroupingToken, PlanitIntermodalReaderSettings intermodalSettings)
Factory method based on settings.static PlanitIntermodalReader
create(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, org.goplanit.xml.generated.XMLElementServiceNetwork xmlRawServiceNetwork, org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices, MacroscopicNetwork network, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
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()
Factory method based on all defaults. IT is expected that the user will set the necessary settings via the exposed settings- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(String pathDirectory)
Factory method based on defaults with custom set path directory. IT is expected that the user will set the necessary settings via the exposed settings- Parameters:
pathDirectory
- to use- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(IdGroupingToken idGroupingToken)
Factory method based on all defaults. It is expected that the user will set the necessary settings via the exposed settings- Parameters:
idGroupingToken
- to use for creating ids- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(PlanitIntermodalReaderSettings intermodalSettings)
Factory method based on passed in network and zoning reader settings- Parameters:
intermodalSettings
- to use- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(IdGroupingToken idGroupingToken, PlanitIntermodalReaderSettings intermodalSettings)
Factory method based on settings. It is expected that the user will set the necessary settings via the exposed settings.- Parameters:
idGroupingToken
- to use for creating idsintermodalSettings
- settings to use- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)
Factory method for intermodal reader( without services)- Parameters:
pathDirectory
- to usexmlFileExtension
- to usenetwork
- to extract references from (if any)zoning
- to populate- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
Factory method- Parameters:
pathDirectory
- to usexmlFileExtension
- to usenetwork
- to extract references from (if any)zoning
- to populateserviceNetwork
- to populateroutedServices
- to populate- Returns:
- created reader
-
create
public static PlanitIntermodalReader create(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, org.goplanit.xml.generated.XMLElementServiceNetwork xmlRawServiceNetwork, org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices, MacroscopicNetwork network, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
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 fromxmlRawServiceNetwork
- to extract fromxmlRawRoutedServices
- to extract fromnetwork
- to extract references from (if any)zoning
- to populateserviceNetwork
- to populateroutedServices
- to populate- Returns:
- created reader
-
-