org.onebusaway.transit_data_federation.impl.beans
Class TripStatusBeanServiceImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.beans.TripStatusBeanServiceImpl
- All Implemented Interfaces:
- TripDetailsBeanService
@Component
public class TripStatusBeanServiceImpl
- extends Object
- implements TripDetailsBeanService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TripStatusBeanServiceImpl
public TripStatusBeanServiceImpl()
setTransitGraphDao
public void setTransitGraphDao(TransitGraphDao transitGraphDao)
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 © 2012 OneBusAway. All Rights Reserved.