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

org.opentripplanner.routing.alertpatch.StopCondition Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.routing.alertpatch;


import java.util.Set;

/**
 * Represents conditions for when an AlertPatch is applicable
 *
 * Values are defined in the SIRI SituationExchange-xsd
 */
public enum StopCondition {
    /**  at departure or when passengers expect to board */
    START_POINT,
    /**  for passengers expecting to disembark, or at the last stop */
    DESTINATION,
    /**  when passing a stop */
    NOT_STOPPING,
    /**  for passengers expecting an interchange */
    EXCEPTIONAL_STOP,
    /**  when a passenger must request the serving of a stop */
    REQUEST_STOP,
    /**  affects all interactions with the stop (boarding, alighting, arrival, departure, interchanges */
    STOP;

    public static final Set FIRST_DEPARTURE = Set.of(STOP, START_POINT);
    public static final Set DEPARTURE = Set.of(STOP, START_POINT, EXCEPTIONAL_STOP);
    public static final Set PASSING = Set.of(STOP, NOT_STOPPING);
    public static final Set ARRIVING = Set.of(STOP, DESTINATION);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy