Class TrivialPredictionHelperService
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.TrivialPredictionHelperService
-
- All Implemented Interfaces:
PredictionHelperService
@Component public class TrivialPredictionHelperService extends Object implements PredictionHelperService
Trivial implementation of the PredictionHelperService. It returns a single prediction for the tripStatus, or prediction records if available.
-
-
Constructor Summary
Constructors Constructor Description TrivialPredictionHelperService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TimepointPredictionRecord>
getPredictionRecordsForTrip(String agencyId, TripStatusBean tripStatus)
Retrieve a list of predictions for the given TripStatusBean.
-
-
-
Method Detail
-
getPredictionRecordsForTrip
public List<TimepointPredictionRecord> getPredictionRecordsForTrip(String agencyId, TripStatusBean tripStatus)
Description copied from interface:PredictionHelperService
Retrieve a list of predictions for the given TripStatusBean. The TripStatusBean indicates the id and the temporal aspect of the retrieval.- Specified by:
getPredictionRecordsForTrip
in interfacePredictionHelperService
- Parameters:
agencyId
- the agency providing the servicetripStatus
- query parameters- Returns:
- a list of time predictions
-
-