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

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

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.transit.raptor.api.transit;

/**
 * A TimeTable is a list of trips in service for the given search date and a limited time
 * before and after. This can be a subset of all trips available to speed up the trip search
 * - that is left to the implementation of this interface. Raptor uses a binary search to
 * find the right trip-schedule, so even for long time-tables the Raptor search perform quite
 * well.
 * 

* @param The TripSchedule type defined by the user of the raptor API. */ public interface RaptorTimeTable { /** * Get trip schedule by index. Trip schedules should be listed in order by the * departure time for the first stop in the pattern. *

* This method needs to be FAST - it is in the most critical line of execution in Raptor. * * @param index the trip schedule index in pattern starting at 0. */ T getTripSchedule(int index); /** * Number of trips in time-table. */ int numberOfTripSchedules(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy