org.onebusaway.transit_data_federation.services.beans
Interface BlockStatusBeanService

All Known Implementing Classes:
BlockStatusBeanServiceImpl

public interface BlockStatusBeanService

Service methods for querying the real-time status and position of a particular block of trips.

Author:
bdferris
See Also:
StatusBean, BlockDetailsBean

Method Summary
 BlockStatusBean getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long time)
           
 ListBean<BlockStatusBean> getBlocksForAgency(String agencyId, long time)
           
 ListBean<BlockStatusBean> getBlocksForBounds(CoordinateBounds bounds, long time)
           
 ListBean<BlockStatusBean> getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId, long time)
           
 

Method Detail

getBlockForVehicle

BlockStatusBean getBlockForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
                                   long time)
Parameters:
vehicleId -
time -
detailsInclusionBean - controls what will be included in the response
Returns:
trip details for the trip operated by the specified vehicle at the specified time, or null if not found

getBlocksForAgency

ListBean<BlockStatusBean> getBlocksForAgency(String agencyId,
                                             long time)
Parameters:
query -
Returns:
the list of active blocks matching agency query criteria

getBlocksForRoute

ListBean<BlockStatusBean> getBlocksForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId,
                                            long time)
Parameters:
query -
Returns:
the list of active blocks matching the route query criteria

getBlocksForBounds

ListBean<BlockStatusBean> getBlocksForBounds(CoordinateBounds bounds,
                                             long time)
Parameters:
query -
Returns:
the list of active blocks matching the query criteria


Copyright © 2012 OneBusAway. All Rights Reserved.