org.opentripplanner.routing.services.TransitAlertService Maven / Gradle / Ivy
package org.opentripplanner.routing.services;
import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.model.calendar.ServiceDate;
import org.opentripplanner.routing.alertpatch.TransitAlert;
import java.util.Collection;
public interface TransitAlertService {
void setAlerts(Collection alerts);
Collection getAllAlerts();
TransitAlert getAlertById(String id);
Collection getStopAlerts(FeedScopedId stop);
Collection getRouteAlerts(FeedScopedId route);
Collection getTripAlerts(FeedScopedId trip, ServiceDate serviceDate);
Collection getAgencyAlerts(FeedScopedId agency);
Collection getStopAndRouteAlerts(FeedScopedId stop, FeedScopedId route);
Collection getStopAndTripAlerts(FeedScopedId stop, FeedScopedId trip, ServiceDate serviceDate);
Collection getRouteTypeAndAgencyAlerts(int routeType, FeedScopedId agency);
Collection getRouteTypeAlerts(int routeType, String feedId);
Collection getDirectionAndRouteAlerts(int directionId, FeedScopedId route);
}