Class GtfsIntermodalReaderFactory
- java.lang.Object
-
- org.goplanit.gtfs.converter.intermodal.GtfsIntermodalReaderFactory
-
public class GtfsIntermodalReaderFactory extends Object
Factory class for creating intermodal reader for GTFS files- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description GtfsIntermodalReaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GtfsIntermodalReader
create(String inputDirectory, String countryName, DayOfWeek dayOfWeek, MacroscopicNetwork parentNetwork, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory, but without a zoning available yet, an empty zoning based on global id token will be createdstatic GtfsIntermodalReader
create(String inputDirectory, String countryName, DayOfWeek dayOfWeek, MacroscopicNetwork parentNetwork, IdGroupingToken zoningIdToken, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory, but without a zoning available yet, an empty zoning based on the id grouping token will be created for youstatic GtfsIntermodalReader
create(String inputDirectory, String countryName, DayOfWeek dayOfWeek, MacroscopicNetwork parentNetwork, Zoning parentZoning, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directorystatic GtfsIntermodalReader
create(String inputDirectory, String countryName, MacroscopicNetwork parentNetwork, Zoning parentZoning, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory.static GtfsIntermodalReader
create(String countryName, PairConverterReader<MacroscopicNetwork,Zoning> networkAndZoningReader)
Create a GtfsIntermodalReader based on given locale input source needs to be manually set after, GTFS route choice type set to RouteTypeChoice.EXTENDED).static GtfsIntermodalReader
create(GtfsIntermodalReaderSettings settings, PairConverterReader<MacroscopicNetwork,Zoning> networkAndZoningReader)
Create a GtfsIntermodalReader based on given settings which in turn contain information on required location and reference inputs This specific approach allows the provision of an intermodal reader to obtain network and zoning rather than having instances passed instatic GtfsIntermodalReader
create(MacroscopicNetwork parentNetwork, Zoning parentZoning, GtfsIntermodalReaderSettings settings)
Create a GtfsIntermodalReader based on given settings which in turn contain information on required location and reference inputs
-
-
-
Method Detail
-
create
public static GtfsIntermodalReader create(String inputDirectory, String countryName, @NotNull DayOfWeek dayOfWeek, @NotNull MacroscopicNetwork parentNetwork, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory, but without a zoning available yet, an empty zoning based on global id token will be created- Parameters:
inputDirectory
- to use (directory only, find first compatible file)countryName
- to usedayOfWeek
- dayOfWeek to filter onparentNetwork
- the network the routed services and service network are to be built upontypeChoice
- to apply, this pertains to how the GTFS files are to be parsed as they have different specifications- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(String inputDirectory, String countryName, @NotNull DayOfWeek dayOfWeek, @NotNull MacroscopicNetwork parentNetwork, @NotNull IdGroupingToken zoningIdToken, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory, but without a zoning available yet, an empty zoning based on the id grouping token will be created for you- Parameters:
inputDirectory
- to use (directory only, find first compatible file)countryName
- to usedayOfWeek
- dayOfWeek to filter onparentNetwork
- the network the routed services and service network are to be built uponzoningIdToken
- the zoning id token to use for creating a new empty zoning to map the Gtfs stops to (transfer zones)typeChoice
- to apply, this pertains to how the GTFS files are to be parsed as they have different specifications- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(String inputDirectory, String countryName, MacroscopicNetwork parentNetwork, Zoning parentZoning, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory.- Parameters:
inputDirectory
- to use (directory only, find first compatible file)countryName
- to useparentNetwork
- the network the routed services and service network are to be built uponparentZoning
- the zoning the transfer zones are to be expanded upon or mapped totypeChoice
- to apply, this pertains to how the GTFS files are to be parsed as they have different specifications- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(String inputDirectory, String countryName, DayOfWeek dayOfWeek, MacroscopicNetwork parentNetwork, Zoning parentZoning, RouteTypeChoice typeChoice)
Create a GtfsIntermodalReader sourced from given input directory- Parameters:
inputDirectory
- to use (directory only, find first compatible file)countryName
- to usedayOfWeek
- dayOfWeek to filter onparentNetwork
- the network the routed services and service network are to be built uponparentZoning
- the zoning the transfer zones are to be expanded upon or mapped totypeChoice
- to apply, this pertains to how the GTFS siles are to be parsed as they have different specifications- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(MacroscopicNetwork parentNetwork, Zoning parentZoning, GtfsIntermodalReaderSettings settings)
Create a GtfsIntermodalReader based on given settings which in turn contain information on required location and reference inputs- Parameters:
parentNetwork
- to useparentZoning
- to usesettings
- to use- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(String countryName, PairConverterReader<MacroscopicNetwork,Zoning> networkAndZoningReader)
Create a GtfsIntermodalReader based on given locale input source needs to be manually set after, GTFS route choice type set to RouteTypeChoice.EXTENDED). This specific approach allows the provision of an intermodal reader to obtain network and zoning rather than requiring memory model versions to be passed in- Parameters:
countryName
- to usenetworkAndZoningReader
- (intermodal) reader to use to extract network and zoning- Returns:
- created routed service reader
-
create
public static GtfsIntermodalReader create(GtfsIntermodalReaderSettings settings, PairConverterReader<MacroscopicNetwork,Zoning> networkAndZoningReader)
Create a GtfsIntermodalReader based on given settings which in turn contain information on required location and reference inputs This specific approach allows the provision of an intermodal reader to obtain network and zoning rather than having instances passed in- Parameters:
settings
- to usenetworkAndZoningReader
- (intermodal) reader to use to extract network and zoning- Returns:
- created routed service reader
-
-