Class 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 Detail

      • PlanitIntermodalWriterFactory

        public PlanitIntermodalWriterFactory()
    • 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 persisting
        countryName - 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 persisting
        xmlRawNetwork - , use this specific xml memory model equivalent in this instance before marshalling via JAXb
        xmlRawZoning - , 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 persisting
        countryName - the country to base the projection method on if available
        xmlRawNetwork - , use this specific xml memory model equivalent in this instance before marshalling via JAXb
        xmlRawZoning - , use this specific xml memory model equivalent in this instance before marshalling via JAXb
        Returns:
        created network writer