Class GtfsServicesAndZoningReaderIntegrator


  • public class GtfsServicesAndZoningReaderIntegrator
    extends Object
    Integrates the service network and routed services (GTFS itinerary) with the physical road network and zoning (GTFS stop based transfer zones)
    Author:
    markr
    • Constructor Detail

      • GtfsServicesAndZoningReaderIntegrator

        public GtfsServicesAndZoningReaderIntegrator​(GtfsIntermodalReaderSettings settings,
                                                     Zoning zoning,
                                                     ServiceNetwork serviceNetwork,
                                                     RoutedServices routedServices,
                                                     Function<ServiceNode,​String> serviceNodeToGtfsStopIdMapping,
                                                     Function<String,​TransferZone> gtfsStopIdToTransferZoneMapping)
        Constructor
        Parameters:
        settings - of the parent reader used
        zoning - to integrate
        routedServices - to integrate
        serviceNetwork - to integrate
        serviceNodeToGtfsStopIdMapping - mapping from PLANit service nodes to GTFS stop ids
        gtfsStopIdToTransferZoneMapping - mapping from GTFS stop id to PLANit transfer zone
    • Method Detail

      • execute

        public void execute()
        Perform the integration where we identify paths between each of the used GTFS stop service nodes on the physical road network and update the PLANit references in the service legs accordingly
      • reset

        public void reset()
        Reset internal (temporary) state