org.onebusaway.transit_data_federation.impl.beans
Class TripStatusBeanServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.beans.TripStatusBeanServiceImpl
All Implemented Interfaces:
TripDetailsBeanService

@Component
public class TripStatusBeanServiceImpl
extends Object
implements TripDetailsBeanService


Constructor Summary
TripStatusBeanServiceImpl()
           
 
Method Summary
 TripStatusBean getBlockLocationAsStatusBean(BlockLocation blockLocation, long time)
          Convert a BlockLocation object into a trip status bean
 TripDetailsBean getTripForId(TripDetailsQueryBean query)
          TripStatusBeanService Interface
 TripDetailsBean getTripForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long time, TripDetailsInclusionBean inclusion)
           
 ListBean<TripDetailsBean> getTripsForAgency(TripsForAgencyQueryBean query)
           
 ListBean<TripDetailsBean> getTripsForBounds(TripsForBoundsQueryBean query)
           
 ListBean<TripDetailsBean> getTripsForId(TripDetailsQueryBean query)
           
 ListBean<TripDetailsBean> getTripsForRoute(TripsForRouteQueryBean query)
           
 void setBlockCalendarService(BlockCalendarService blockCalendarService)
           
 void setBlockStatusService(BlockStatusService blockStatusService)
           
 void setServiceAlertBeanService(ServiceAlertsBeanService serviceAlertBeanService)
           
 void setStopBeanService(StopBeanService stopBeanService)
           
 void setTransitGraphDao(TransitGraphDao transitGraphDao)
           
 void setTripBeanService(TripBeanService tripBeanService)
           
 void setTripStopTimesBeanService(TripStopTimesBeanService tripStopTimesBeanService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripStatusBeanServiceImpl

public TripStatusBeanServiceImpl()
Method Detail

setTransitGraphDao

public void setTransitGraphDao(TransitGraphDao transitGraphDao)

setBlockCalendarService

public void setBlockCalendarService(BlockCalendarService blockCalendarService)

setBlockStatusService

public void setBlockStatusService(BlockStatusService blockStatusService)

setTripBeanService

public void setTripBeanService(TripBeanService tripBeanService)

setTripStopTimesBeanService

public void setTripStopTimesBeanService(TripStopTimesBeanService tripStopTimesBeanService)

setStopBeanService

public void setStopBeanService(StopBeanService stopBeanService)

setServiceAlertBeanService

public void setServiceAlertBeanService(ServiceAlertsBeanService serviceAlertBeanService)

getTripForId

public TripDetailsBean getTripForId(TripDetailsQueryBean query)
TripStatusBeanService Interface

Specified by:
getTripForId in interface TripDetailsBeanService
Returns:
trip details for the trip matching the specified query criteria (tripId, service, and optional vehicleId), or null if none found

getTripsForId

public ListBean<TripDetailsBean> getTripsForId(TripDetailsQueryBean query)
Specified by:
getTripsForId in interface TripDetailsBeanService
Returns:
trip details for the trips matching the specified query criteria (tripId, service, and optional vehicleId)

getTripForVehicle

public TripDetailsBean getTripForVehicle(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
                                         long time,
                                         TripDetailsInclusionBean inclusion)
Specified by:
getTripForVehicle in interface TripDetailsBeanService
inclusion - 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

getTripsForBounds

public ListBean<TripDetailsBean> getTripsForBounds(TripsForBoundsQueryBean query)
Specified by:
getTripsForBounds in interface TripDetailsBeanService
Returns:
the list of active trips matching the query criteria

getTripsForRoute

public ListBean<TripDetailsBean> getTripsForRoute(TripsForRouteQueryBean query)
Specified by:
getTripsForRoute in interface TripDetailsBeanService
Returns:
the list of active trips matching the route query criteria

getTripsForAgency

public ListBean<TripDetailsBean> getTripsForAgency(TripsForAgencyQueryBean query)
Specified by:
getTripsForAgency in interface TripDetailsBeanService
Returns:
the list of active trips matching agency query criteria

getBlockLocationAsStatusBean

public TripStatusBean getBlockLocationAsStatusBean(BlockLocation blockLocation,
                                                   long time)
Description copied from interface: TripDetailsBeanService
Convert a BlockLocation object into a trip status bean

Specified by:
getBlockLocationAsStatusBean in interface TripDetailsBeanService
time - TODO
Returns:
a trip status bean representation of a block location object


Copyright © 2011 OneBusAway. All Rights Reserved.