* Why don't we use the ArrivalAndDepartureTime scheduled arrival and
* departures here? Because they may have been artificially shifted for a
* frequency-based method
*/
InstanceState state = instance.getStopTimeInstance().getState();
ArrivalAndDepartureTime schedule = ArrivalAndDepartureTime.getScheduledTime(
state, instance.getBlockStopTime());
long arrivalTime = schedule.getArrivalTime() + arrivalDeviation * 1000;
setPredictedArrivalTimeForInstance(instance, arrivalTime);
TimeIntervalBean predictedArrivalTimeInterval = computePredictedArrivalTimeInterval(
instance, blockLocation, targetTime);
instance.setPredictedArrivalInterval(predictedArrivalTimeInterval);
long departureTime = schedule.getDepartureTime() + departureDeviation
* 1000;
setPredictedDepartureTimeForInstance(instance, departureTime);
TimeIntervalBean predictedDepartureTimeInterval = computePredictedDepartureTimeInterval(
instance, blockLocation, targetTime);