org.onebusaway.transit_data_federation.services.beans
Interface ArrivalsAndDeparturesBeanService

All Known Implementing Classes:
ArrivalsAndDeparturesBeanServiceImpl

public interface ArrivalsAndDeparturesBeanService

Service for querying arrivals and departures at a particular stop in a given time range

Author:
bdferris
See Also:
ArrivalAndDepartureBean

Method Summary
 ArrivalAndDepartureBean getArrivalAndDepartureForStop(ArrivalAndDepartureQuery query)
          Return arrival and departure information for a single trip instance arriving and departing a particular stop.
 List<ArrivalAndDepartureBean> getArrivalsAndDeparturesByStopId(org.onebusaway.gtfs.model.AgencyAndId stopId, ArrivalsAndDeparturesQueryBean query)
           
 

Method Detail

getArrivalsAndDeparturesByStopId

List<ArrivalAndDepartureBean> getArrivalsAndDeparturesByStopId(org.onebusaway.gtfs.model.AgencyAndId stopId,
                                                               ArrivalsAndDeparturesQueryBean query)
Parameters:
stopId - see Stop.getId()
timeFrom -
timeTo -
Returns:
the list of arrival and departure beans for the specified stop in the specified time range

getArrivalAndDepartureForStop

ArrivalAndDepartureBean getArrivalAndDepartureForStop(ArrivalAndDepartureQuery query)
Return arrival and departure information for a single trip instance arriving and departing a particular stop.

Parameters:
stopId - the target stop id
tripId - the target tripId
serviceDate - the target service date
vehicleId - optionally specify a particular vehicle id, or null
time - the time to query
Returns:
the arrival and departure information, or null if not found


Copyright © 2011 OneBusAway. All Rights Reserved.