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

org.opentripplanner.model.TripAlteration Maven / Gradle / Ivy

package org.opentripplanner.model;

/**
 * Alterations specified on a Trip in the planned data. This is in some ways equivalent with GTFS-RT
 * scheduled relationship.
 */
public enum TripAlteration {
  CANCELLATION,
  PLANNED,
  EXTRA_JOURNEY,
  REPLACED;

  public boolean isCanceledOrReplaced() {
    return this == CANCELLATION || this == REPLACED;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy