org.opentripplanner.transit.raptor.rangeraptor.RoundProvider 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;
/**
* Keep track of current Raptor round. The provider is injected where needed instead of passing the current round
* down the call stack. This is faster than passing the round on the stack because the round is access so frequently
* thet in most cases it is cached in the CPU registry - at least tests indicate this.
*
* @see org.opentripplanner.transit.raptor.rangeraptor.transit.RoundTracker
*/
public interface RoundProvider {
/**
* The current Raptor round.
*/
int round();
}