Class PlanitRoutedServicesReaderFactory


  • public class PlanitRoutedServicesReaderFactory
    extends Object
    Factory for creating PlanitRoutedServicesReaders
    Author:
    markr
    • Constructor Detail

      • PlanitRoutedServicesReaderFactory

        public PlanitRoutedServicesReaderFactory()
    • Method Detail

      • create

        public static PlanitRoutedServicesReader create​(ServiceNetwork parentNetwork)
        Create a PlanitRoutedServicesReader
        Parameters:
        parentNetwork - the parent network the routed services are to be built upon
        Returns:
        created routed service reader
      • create

        public static PlanitRoutedServicesReader create​(IdGroupingToken idToken,
                                                        ServiceNetwork parentNetwork)
        Create a PlanitRoutedServicesReader based on custom id token
        Parameters:
        idToken - to use for routed services id generation
        parentNetwork - the network the routed services are assumed to be built upon
        Returns:
        created routed service reader
      • create

        public static PlanitRoutedServicesReader create​(String inputDirectory,
                                                        ServiceNetwork parentNetwork)
        Create a PlanitRoutedServicesReader sourced from given input directory
        Parameters:
        inputDirectory - to use (directory only, find first compatible file)
        parentNetwork - the network the routed services are assumed to be built upon
        Returns:
        created routed service reader
      • create

        public static PlanitRoutedServicesReader create​(String inputDirectory,
                                                        String xmlFileExtension,
                                                        RoutedServices routedServices)
        Create a PlanitRoutedServicesReader for location and routed services to populate
        Parameters:
        inputDirectory - to use (directory only, find first compatible file)
        xmlFileExtension - to consider
        routedServices - to populate
        Returns:
        created routed service reader
      • create

        public static PlanitRoutedServicesReader create​(org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices,
                                                        RoutedServices routedServices)
        Create a PlanitRoutedServicesReader for given XML root element and routed services to populate
        Parameters:
        xmlRawRoutedServices - the raw routed services based on the JAXB parser
        routedServices - to populate
        Returns:
        created routed service reader
      • create

        public static PlanitRoutedServicesReader create​(org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices,
                                                        PlanitRoutedServicesReaderSettings settings,
                                                        RoutedServices routedServices)
        Create a PlanitRoutedServicesReader for given XML root element and routed services to populate
        Parameters:
        xmlRawRoutedServices - the raw routed services based on the JAXB parser
        settings - to use
        routedServices - to populate
        Returns:
        created routed service reader