org.opentripplanner.routing.algorithm.raptoradapter.transit.request.TransitDataProviderFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.routing.algorithm.raptoradapter.transit.request;
import org.opentripplanner.routing.algorithm.raptoradapter.transit.TripPatternForDate;
import org.opentripplanner.routing.trippattern.TripTimes;
/**
* Used to filter the elements in a {@link org.opentripplanner.routing.algorithm.raptoradapter.transit.TransitLayer}
* when constructing a {@link RaptorRoutingRequestTransitData} for a request.
*
* {@link TripPatternForDate} and {@link TripTimes} are filtered based on the request parameters to
* only included components which are allowed by the request. Such filters may included bike or
* wheelchair accessibility, banned routes and transit modes.
*
* @see RoutingRequestTransitDataProviderFilter
*/
public interface TransitDataProviderFilter {
boolean tripPatternPredicate(TripPatternForDate tripPatternForDate);
boolean tripTimesPredicate(TripTimes tripTimes);
}