Package org.onebusaway.transit_data.model.realtime

Examples of org.onebusaway.transit_data.model.realtime.CurrentVehicleEstimateBean


    double p = _realTimeLocationDeviationModel.probability(d);

    if (p < _shortCutProbability)
      return false;

    CurrentVehicleEstimateBean bean = new CurrentVehicleEstimateBean();
    bean.setProbability(p);
    bean.setTripStatus(_tripStatusBeanService.getBlockLocationAsStatusBean(
        location, query.getTime()));
    beans.add(bean);

    return true;
  }
View Full Code Here


  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);
    }
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.realtime.CurrentVehicleEstimateBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.