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), or also include services (service network and routed services)
    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 (default now current working dir) and destination country afterwards
        Returns:
        created 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 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 writer
      • create

        public static PlanitIntermodalWriter create​(PlanitIntermodalWriterSettings settings)
        Create a PLANitIntermodalWriter which can persist a PLANit network and zoning in the native PLANit XML format. It is assumed all mandatory settings will be provided (or are provided already) via the settings
        Parameters:
        settings - to inject
        Returns:
        created writer