org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule 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.api.transit;
/**
* The purpose of this interface is to provide information about the
* trip schedule. The trip is a child of, and lives in the context
* of a trip pattern.
*
* The purpose of hiding these attributes behind an interface is to
* allow the implementation to chose the most efficient underlying
* implementation that suits its needs.
*/
public interface RaptorTripSchedule {
/**
* The arrival time at the given stop position in pattern.
* @param stopPosInPattern the stop position.
* @return the arrival time in seconds at the given stop
*/
int arrival(int stopPosInPattern);
/**
* The departure time at the given stop position in pattern.
* @param stopPosInPattern the stop position.
* @return the arrival time in seconds at the given stop
*/
int departure(int stopPosInPattern);
/**
* Return the pattern for this trip.
*/
RaptorTripPattern pattern();
}