Class GtfsIntermodalReaderFactory


  • public class GtfsIntermodalReaderFactory
    extends Object
    Factory class for creating intermodal reader for GTFS files
    Author:
    markr
    • Constructor Detail

      • GtfsIntermodalReaderFactory

        public GtfsIntermodalReaderFactory()
    • 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 use
        dayOfWeek - dayOfWeek to filter on
        parentNetwork - the network the routed services and service network are to be built upon
        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,
                                                  @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 use
        dayOfWeek - dayOfWeek to filter on
        parentNetwork - the network the routed services and service network are to be built upon
        zoningIdToken - 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 use
        parentNetwork - the network the routed services and service network are to be built upon
        parentZoning - the zoning the transfer zones are to be expanded upon or mapped to
        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,
                                                  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 use
        dayOfWeek - dayOfWeek to filter on
        parentNetwork - the network the routed services and service network are to be built upon
        parentZoning - the zoning the transfer zones are to be expanded upon or mapped to
        typeChoice - 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 use
        parentZoning - to use
        settings - 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 use
        networkAndZoningReader - (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 use
        networkAndZoningReader - (intermodal) reader to use to extract network and zoning
        Returns:
        created routed service reader