All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.services.TransitAlertService Maven / Gradle / Ivy

package org.opentripplanner.routing.services;

import java.time.LocalDate;
import java.util.Collection;
import org.opentripplanner.routing.alertpatch.TransitAlert;
import org.opentripplanner.transit.model.framework.FeedScopedId;
import org.opentripplanner.transit.model.timetable.Direction;

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, LocalDate serviceDate);

  Collection getAgencyAlerts(FeedScopedId agency);

  Collection getStopAndRouteAlerts(FeedScopedId stop, FeedScopedId route);

  Collection getStopAndTripAlerts(
    FeedScopedId stop,
    FeedScopedId trip,
    LocalDate serviceDate
  );

  Collection getRouteTypeAndAgencyAlerts(int routeType, FeedScopedId agency);

  Collection getRouteTypeAlerts(int routeType, String feedId);

  Collection getDirectionAndRouteAlerts(Direction direction, FeedScopedId route);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy