Class PlanitRoutedServicesWriterFactory


  • public class PlanitRoutedServicesWriterFactory
    extends Object
    Factory for creating PLANit Routed Services writers
    Author:
    markr
    • Constructor Detail

      • PlanitRoutedServicesWriterFactory

        public PlanitRoutedServicesWriterFactory()
    • Method Detail

      • create

        public static PlanitRoutedServicesWriter create()
        Create a PLANitRoutedServicesWriter which can persist a PLANit RoutedServices in the native PLANit XML format with all defaults. It is expected the user sets the required minimum configuration afterwards to be able to persist
        Returns:
        created PLANit RoutedServicesNetwork writer
      • create

        public static PlanitRoutedServicesWriter create​(String serviceNetworkPath)
        Create a PLANitRoutedServicesWriter which can persist a PLANit RoutedServices in the native PLANit XML format
        Parameters:
        serviceNetworkPath - the path to use for persisting
        Returns:
        created PLANit serviceNetwork writer
      • create

        public static PlanitRoutedServicesWriter create​(String serviceNetworkPath,
                                                        String countryName)
        Create a PLANitRoutedServicesWriter which can persist a PLANit RoutedServices in the native PLANit XML format
        Parameters:
        serviceNetworkPath - the path to use for persisting
        countryName - the country to base the projection method on if available
        Returns:
        created PLANit serviceNetwork writer
      • create

        public static PlanitRoutedServicesWriter create​(String networkPath,
                                                        String countryName,
                                                        org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices)
        Create a PLANitRoutedServicesWriter which can persist a PLANit RoutedServices 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:
        networkPath - the file to use for persisting
        countryName - the country to base the projection method on if available
        xmlRawRoutedServices - , use this specific xml memory model equivalent in this instance before marshalling via JAXb
        Returns:
        created PLANit RoutedServices writer