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

org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy