Class PlanitIntermodalWriterFactory
- java.lang.Object
-
- org.goplanit.io.converter.intermodal.PlanitIntermodalWriterFactory
-
public class PlanitIntermodalWriterFactory extends Object
Factory for creating PLANit intermodal writers persisting both a network and zoning (useful for intermodal networks with pt element where transfer zones are part of the zoning.- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PlanitIntermodalWriterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlanitIntermodalWriter
create()
Default factory method.static PlanitIntermodalWriter
create(String outputDirectory)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format.static PlanitIntermodalWriter
create(String outputDirectory, String countryName)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML formatstatic PlanitIntermodalWriter
create(String outputDirectory, String countryName, org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
Create a PLANitNetworkWriter which can persist a PLANit network in the native PLANit XML format.static PlanitIntermodalWriter
create(String outputDirectory, org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format.
-
-
-
Method Detail
-
create
public static PlanitIntermodalWriter create()
Default factory method. Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format. We assume the user sets the output directory and destination country afterwards- Returns:
- created Planit native format network writer
-
create
public static PlanitIntermodalWriter create(String outputDirectory)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format. No destination country is provided, so we assume the current Crs for persisting- Parameters:
outputDirectory
- the path to use for persisting- Returns:
- created network writer
-
create
public static PlanitIntermodalWriter create(String outputDirectory, String countryName)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format- Parameters:
outputDirectory
- the path to use for persistingcountryName
- the country to base the projection method on if available- Returns:
- created network writer
-
create
public static PlanitIntermodalWriter create(String outputDirectory, org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format. No destination country is provided, so we assume the current Crs for persisting- Parameters:
outputDirectory
- the file to use for persistingxmlRawNetwork
- , use this specific xml memory model equivalent in this instance before marshalling via JAXbxmlRawZoning
- , use this specific xml memory model equivalent in this instance before marshalling via JAXb- Returns:
- created network writer
-
create
public static PlanitIntermodalWriter create(String outputDirectory, String countryName, org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning)
Create a PLANitNetworkWriter which can persist a PLANit network in the native PLANit XML format. By providing the XML memory model instance to populate we make it possible for the writer to embed the persisting in another larger XML memory model that is marshalled by an entity other than this writer in the future- Parameters:
outputDirectory
- the file to use for persistingcountryName
- the country to base the projection method on if availablexmlRawNetwork
- , use this specific xml memory model equivalent in this instance before marshalling via JAXbxmlRawZoning
- , use this specific xml memory model equivalent in this instance before marshalling via JAXb- Returns:
- created network writer
-
-