org.opentripplanner.transit.raptor.rangeraptor.standard.ArrivedAtDestinationCheck 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.transit.raptor.rangeraptor.standard;
/**
* The responsibility of this interface is to allow the caller to check if the
* destination is reached in the current Raptor round.
*/
@FunctionalInterface
public interface ArrivedAtDestinationCheck {
/**
* If the destination is reached, but the path is rejected as an optimal path at
* the destination this method should return FALSE, only when a new optimal path
* is fund should the method return TRUE.
*
* Return TRUE if the destination was reached in the current round; if not false.
*/
boolean arrivedAtDestinationCurrentRound();
}