public class SpeedTripValidator extends TripValidator
| Modifier and Type | Field and Description |
|---|---|
static double |
MIN_SPEED_KPH |
| Constructor and Description |
|---|
SpeedTripValidator(Feed feed,
SQLErrorStorage errorStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(ValidationResult validationResult)
Completing this feed validator means checking if there were any unrounded travel times in the feed and (if so)
registering any zero travel time errors that were passed over before the first unrounded travel time was
encountered.
|
void |
validateTrip(Trip trip,
Route route,
List<StopTime> stopTimes,
List<Stop> stops)
This method will be called on each trip in the feed.
|
registerError, registerError, registerError, storeErrorspublic static final double MIN_SPEED_KPH
public SpeedTripValidator(Feed feed, SQLErrorStorage errorStorage)
public void validateTrip(Trip trip, Route route, List<StopTime> stopTimes, List<Stop> stops)
TripValidatorvalidateTrip in class TripValidatortrip - the trip whose stop_times are provided in the other parameter.stopTimes - a List of all the stop times in the given trip, in order of increasing stop_sequence.public void complete(ValidationResult validationResult)
Copyright © 2019. All rights reserved.