Class PlanitRoutedServicesReaderFactory
- java.lang.Object
-
- org.goplanit.io.converter.service.PlanitRoutedServicesReaderFactory
-
public class PlanitRoutedServicesReaderFactory extends Object
Factory for creating PlanitRoutedServicesReaders- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PlanitRoutedServicesReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlanitRoutedServicesReadercreate(String inputDirectory, String xmlFileExtension, RoutedServices routedServices)Create a PlanitRoutedServicesReader for location and routed services to populatestatic PlanitRoutedServicesReadercreate(String inputDirectory, ServiceNetwork parentNetwork)Create a PlanitRoutedServicesReader sourced from given input directorystatic PlanitRoutedServicesReadercreate(PlanitRoutedServicesReaderSettings settings, ServiceNetwork parentNetwork)Create a PlanitRoutedServicesReader based on given settings which in turn contain information on location and parent network to usestatic PlanitRoutedServicesReadercreate(PlanitRoutedServicesReaderSettings settings, RoutedServices routedServices)Create a PlanitRoutedServicesReader for given (empty) routed services and given settingsstatic PlanitRoutedServicesReadercreate(ServiceNetwork parentNetwork)Create a PlanitRoutedServicesReaderstatic PlanitRoutedServicesReadercreate(IdGroupingToken idToken, ServiceNetwork parentNetwork)Create a PlanitRoutedServicesReader based on custom id tokenstatic PlanitRoutedServicesReadercreate(org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices, PlanitRoutedServicesReaderSettings settings, RoutedServices routedServices)Create a PlanitRoutedServicesReader for given XML root element and routed services to populatestatic PlanitRoutedServicesReadercreate(org.goplanit.xml.generated.XMLElementRoutedServices xmlRawRoutedServices, RoutedServices routedServices)Create a PlanitRoutedServicesReader for given XML root element and routed services to populate
-
-
-
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 generationparentNetwork- 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(PlanitRoutedServicesReaderSettings settings, ServiceNetwork parentNetwork)
Create a PlanitRoutedServicesReader based on given settings which in turn contain information on location and parent network to use- Parameters:
settings- to useparentNetwork- to use- Returns:
- created routed service reader
-
create
public static PlanitRoutedServicesReader create(PlanitRoutedServicesReaderSettings settings, RoutedServices routedServices)
Create a PlanitRoutedServicesReader for given (empty) routed services and given settings- Parameters:
settings- to useroutedServices- to use- 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 considerroutedServices- 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 parserroutedServices- 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 parsersettings- to useroutedServices- to populate- Returns:
- created routed service reader
-
-