org.onebusaway.transit_data_federation.impl.beans
Class ArrivalsAndDeparturesBeanServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.beans.ArrivalsAndDeparturesBeanServiceImpl
All Implemented Interfaces:
ArrivalsAndDeparturesBeanService

@Component
@ManagedResource(value="org.onebusaway.transit_data_federation.impl.beans:name=ArrivalsAndDeparturesBeanServiceImpl")
public class ArrivalsAndDeparturesBeanServiceImpl
extends Object
implements ArrivalsAndDeparturesBeanService


Constructor Summary
ArrivalsAndDeparturesBeanServiceImpl()
           
 
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)
          ArrivalsAndDeparturesBeanService Interface
 int getStopTimesTotal()
           
 int getStopTimesWithPredictions()
           
 void setArrivalAndDepartureService(ArrivalAndDepartureService arrivalAndDepartureService)
           
 void setNarrativeService(NarrativeService narrativeService)
           
 void setRealTimeHistoryService(RealTimeHistoryService realTimeHistoryService)
           
 void setServiceAlertsBeanService(ServiceAlertsBeanService serviceAlertsBeanService)
           
 void setStopBeanService(StopBeanService stopBeanService)
           
 void setTransitGraphDao(TransitGraphDao transitGraphDao)
           
 void setTripBeanService(TripBeanService tripBeanService)
           
 void setTripDetailsBeanService(TripDetailsBeanService tripDetailsBeanService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrivalsAndDeparturesBeanServiceImpl

public ArrivalsAndDeparturesBeanServiceImpl()
Method Detail

setTransitGraphDao

public void setTransitGraphDao(TransitGraphDao transitGraphDao)

setArrivalAndDepartureService

public void setArrivalAndDepartureService(ArrivalAndDepartureService arrivalAndDepartureService)

setNarrativeService

public void setNarrativeService(NarrativeService narrativeService)

setTripBeanService

public void setTripBeanService(TripBeanService tripBeanService)

setStopBeanService

public void setStopBeanService(StopBeanService stopBeanService)

setTripDetailsBeanService

public void setTripDetailsBeanService(TripDetailsBeanService tripDetailsBeanService)

setServiceAlertsBeanService

public void setServiceAlertsBeanService(ServiceAlertsBeanService serviceAlertsBeanService)

setRealTimeHistoryService

public void setRealTimeHistoryService(RealTimeHistoryService realTimeHistoryService)

getStopTimesTotal

@ManagedAttribute
public int getStopTimesTotal()

getStopTimesWithPredictions

@ManagedAttribute
public int getStopTimesWithPredictions()

getArrivalsAndDeparturesByStopId

public List<ArrivalAndDepartureBean> getArrivalsAndDeparturesByStopId(org.onebusaway.gtfs.model.AgencyAndId stopId,
                                                                      ArrivalsAndDeparturesQueryBean query)
ArrivalsAndDeparturesBeanService Interface

Specified by:
getArrivalsAndDeparturesByStopId in interface ArrivalsAndDeparturesBeanService
Parameters:
stopId - see Stop.getId()
Returns:
the list of arrival and departure beans for the specified stop in the specified time range

getArrivalAndDepartureForStop

public ArrivalAndDepartureBean getArrivalAndDepartureForStop(ArrivalAndDepartureQuery query)
Description copied from interface: ArrivalsAndDeparturesBeanService
Return arrival and departure information for a single trip instance arriving and departing a particular stop.

Specified by:
getArrivalAndDepartureForStop in interface ArrivalsAndDeparturesBeanService
Returns:
the arrival and departure information, or null if not found


Copyright © 2011 OneBusAway. All Rights Reserved.