Class RealtimeServiceImpl
- java.lang.Object
-
- org.onebusaway.presentation.impl.realtime.RealtimeServiceImpl
-
- All Implemented Interfaces:
RealtimeService
@Component public class RealtimeServiceImpl extends Object implements RealtimeService
A source of SIRI classes containing real time data, subject to the conventions expressed in the PresentationService.- Author:
- jmaki
-
-
Constructor Summary
Constructors Constructor Description RealtimeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<uk.org.siri.siri.MonitoredStopVisitStructure>getMonitoredStopVisitsForStop(String stopId, int maximumOnwardCalls, long currentTime)PresentationServicegetPresentationService()List<ServiceAlertBean>getServiceAlertsForAgency(String agencyId)SERVICE ALERTS METHODSList<ServiceAlertBean>getServiceAlertsForRoute(String routeId)List<ServiceAlertBean>getServiceAlertsForRouteAndDirection(String routeId, String directionId)List<ServiceAlertBean>getServiceAlertsForRouteAndStop(String routeId, String stopId)List<ServiceAlertBean>getServiceAlertsGlobal()SiriJsonSerializergetSiriJsonSerializer()SiriXmlSerializergetSiriXmlSerializer()longgetTime()List<uk.org.siri.siri.VehicleActivityStructure>getVehicleActivityForRoute(String routeId, String directionId, int maximumOnwardCalls, long currentTime, boolean showRawLocation)SIRI METHODSuk.org.siri.siri.VehicleActivityStructuregetVehicleActivityForVehicle(String vehicleId, int maximumOnwardCalls, long currentTime, String tripId)booleangetVehiclesInServiceForRoute(String routeId, String directionId, long currentTime)Returns true if there are vehicles in service for given route+directionbooleangetVehiclesInServiceForStopAndRoute(String stopId, String routeId, long currentTime)Returns true if there are vehicles in service for given route+direction that will stop at the indicated stop in the future.voidsetConfigurationService(ConfigurationService configService)voidsetFilterChain(FilterChain chain)voidsetPresentationService(PresentationService presentationService)voidsetTime(long time)voidsetTransitDataService(TransitDataService transitDataService)booleanshowApc()
-
-
-
Method Detail
-
setTime
public void setTime(long time)
- Specified by:
setTimein interfaceRealtimeService
-
getTime
public long getTime()
-
setTransitDataService
@Autowired public void setTransitDataService(TransitDataService transitDataService)
-
setConfigurationService
@Autowired public void setConfigurationService(ConfigurationService configService)
-
setPresentationService
@Autowired public void setPresentationService(PresentationService presentationService)
-
getPresentationService
public PresentationService getPresentationService()
- Specified by:
getPresentationServicein interfaceRealtimeService
-
getSiriJsonSerializer
public SiriJsonSerializer getSiriJsonSerializer()
- Specified by:
getSiriJsonSerializerin interfaceRealtimeService
-
getSiriXmlSerializer
public SiriXmlSerializer getSiriXmlSerializer()
- Specified by:
getSiriXmlSerializerin interfaceRealtimeService
-
setFilterChain
@Autowired(required=false) public void setFilterChain(FilterChain chain)
-
getVehicleActivityForRoute
public List<uk.org.siri.siri.VehicleActivityStructure> getVehicleActivityForRoute(String routeId, String directionId, int maximumOnwardCalls, long currentTime, boolean showRawLocation)
SIRI METHODS- Specified by:
getVehicleActivityForRoutein interfaceRealtimeService
-
getVehicleActivityForVehicle
public uk.org.siri.siri.VehicleActivityStructure getVehicleActivityForVehicle(String vehicleId, int maximumOnwardCalls, long currentTime, String tripId)
- Specified by:
getVehicleActivityForVehiclein interfaceRealtimeService
-
getMonitoredStopVisitsForStop
public List<uk.org.siri.siri.MonitoredStopVisitStructure> getMonitoredStopVisitsForStop(String stopId, int maximumOnwardCalls, long currentTime)
- Specified by:
getMonitoredStopVisitsForStopin interfaceRealtimeService
-
getVehiclesInServiceForRoute
public boolean getVehiclesInServiceForRoute(String routeId, String directionId, long currentTime)
Returns true if there are vehicles in service for given route+direction- Specified by:
getVehiclesInServiceForRoutein interfaceRealtimeService
-
getVehiclesInServiceForStopAndRoute
public boolean getVehiclesInServiceForStopAndRoute(String stopId, String routeId, long currentTime)
Returns true if there are vehicles in service for given route+direction that will stop at the indicated stop in the future.- Specified by:
getVehiclesInServiceForStopAndRoutein interfaceRealtimeService
-
getServiceAlertsForAgency
public List<ServiceAlertBean> getServiceAlertsForAgency(String agencyId)
SERVICE ALERTS METHODS- Specified by:
getServiceAlertsForAgencyin interfaceRealtimeService
-
getServiceAlertsForRoute
public List<ServiceAlertBean> getServiceAlertsForRoute(String routeId)
- Specified by:
getServiceAlertsForRoutein interfaceRealtimeService
-
getServiceAlertsForRouteAndDirection
public List<ServiceAlertBean> getServiceAlertsForRouteAndDirection(String routeId, String directionId)
- Specified by:
getServiceAlertsForRouteAndDirectionin interfaceRealtimeService
-
getServiceAlertsForRouteAndStop
public List<ServiceAlertBean> getServiceAlertsForRouteAndStop(String routeId, String stopId)
- Specified by:
getServiceAlertsForRouteAndStopin interfaceRealtimeService
-
getServiceAlertsGlobal
public List<ServiceAlertBean> getServiceAlertsGlobal()
- Specified by:
getServiceAlertsGlobalin interfaceRealtimeService
-
showApc
public boolean showApc()
- Specified by:
showApcin interfaceRealtimeService
-
-