use of org.onebusaway.transit_data.model.trips.TripStatusBean in project onebusaway-application-modules by camsys.
the class CurrentVehicleEstimationServiceImpl method addResult.
private void addResult(BlockLocation location, double cumulativeP, String debug, double minProbabilityForConsideration, List<CurrentVehicleEstimateBean> beans) {
if (cumulativeP >= minProbabilityForConsideration) {
CurrentVehicleEstimateBean bean = new CurrentVehicleEstimateBean();
bean.setProbability(cumulativeP);
TripStatusBean status = _tripStatusBeanService.getBlockLocationAsStatusBean(location, location.getTime());
bean.setTripStatus(status);
bean.setDebug(debug);
beans.add(bean);
}
}
Aggregations