Class GtfsPlanitFileHandlerStopTimes
- java.lang.Object
-
- org.goplanit.gtfs.handler.GtfsFileHandler<GtfsStopTime>
-
- org.goplanit.gtfs.handler.GtfsFileHandlerStopTimes
-
- org.goplanit.gtfs.converter.service.handler.GtfsPlanitFileHandlerStopTimes
-
public class GtfsPlanitFileHandlerStopTimes extends GtfsFileHandlerStopTimes
Handler for handling GTFS stop times to populate PLANit service (network/routed services) memory modelPrerequisites: (i) It is assumed routed services and service network are available and layers are initialised, (ii) it is assumed the sequence of stops per trip is increasing while traversing the file, i.e., a stop with sequence 1 will always be parsed before any other stop with sequence greater than 1.
As part of this handler, we create schedule based trips as needed where we make no effort to consolidate trips that have the same schedule but different departure times yet, i.e., we create a single schedule based trip with a single departure and relative timings per chain of stop times. In other words a GTFS trip will correspond 1:1 to a PLANit trip after parsing
- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description GtfsPlanitFileHandlerStopTimes(GtfsServicesHandlerData gtfsServicesHandlerData)
ConstructorGtfsPlanitFileHandlerStopTimes(GtfsServicesHandlerData gtfsServicesHandlerData, Set<String> activatedLoggingForGtfsRoutesByShortName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<String>>
getUniqueRoutesForTrackedGtfsStops()
All GTFS routes per tracked stop that were found to require user loggingvoid
handle(GtfsStopTime gtfsStopTime)
Handle a GTFS stop time for a given tripvoid
reset()
Reset-
Methods inherited from class org.goplanit.gtfs.handler.GtfsFileHandler
getFileScheme, handleComplete, handleRaw, isCompatible
-
-
-
-
Constructor Detail
-
GtfsPlanitFileHandlerStopTimes
public GtfsPlanitFileHandlerStopTimes(GtfsServicesHandlerData gtfsServicesHandlerData)
Constructor- Parameters:
gtfsServicesHandlerData
- containing all data to track and resources needed to perform the processing
-
GtfsPlanitFileHandlerStopTimes
public GtfsPlanitFileHandlerStopTimes(GtfsServicesHandlerData gtfsServicesHandlerData, Set<String> activatedLoggingForGtfsRoutesByShortName)
Constructor- Parameters:
gtfsServicesHandlerData
- containing all data to track and resources needed to perform the processingactivatedLoggingForGtfsRoutesByShortName
- set of tracked GTFS routes (by short name) to log information for found in the dataset
-
-
Method Detail
-
handle
public void handle(GtfsStopTime gtfsStopTime)
Handle a GTFS stop time for a given trip- Overrides:
handle
in classGtfsFileHandlerStopTimes
- Parameters:
gtfsStopTime
- to handler
-
reset
public void reset()
Reset- Overrides:
reset
in classGtfsFileHandler<GtfsStopTime>
-
-