com.conveyal.gtfs.validator.TripValidator Maven / Gradle / Ivy
package com.conveyal.gtfs.validator;
import com.conveyal.gtfs.error.NewGTFSError;
import com.conveyal.gtfs.error.SQLErrorStorage;
import com.conveyal.gtfs.loader.Feed;
import com.conveyal.gtfs.model.Route;
import com.conveyal.gtfs.model.Stop;
import com.conveyal.gtfs.model.StopTime;
import com.conveyal.gtfs.model.Trip;
import java.util.List;
/**
* Unlike FeedValidators that are run against the entire feed, these validators are run against the stop_times for
* a specific trip. This is an optimization that allows us to fetch and group those stop_times only once.
*/
public abstract class TripValidator extends Validator {
public TripValidator(Feed feed, SQLErrorStorage errorStorage) {
super(feed, errorStorage);
}
/**
* This method will be called on each trip in the feed.
* @param trip the trip whose stop_times are provided in the other parameter.
* @param stopTimes a List of all the stop times in the given trip, in order of increasing stop_sequence.
*/
public abstract void validateTrip (Trip trip, Route route, List stopTimes, List stops);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy