1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

fix broken tests by differentiating between open or not

This commit is contained in:
oblonski 2016-07-18 14:08:58 +02:00
parent de74cce245
commit 6ce6778c9f

View file

@ -89,7 +89,11 @@ public class UpdateVehicleDependentPracticalTimeWindows implements RouteVisitor,
vehicles = vehiclesToUpdate.get(route); vehicles = vehiclesToUpdate.get(route);
for (Vehicle vehicle : vehicles) { for (Vehicle vehicle : vehicles) {
latest_arrTimes_at_prevAct[vehicle.getVehicleTypeIdentifier().getIndex()] = vehicle.getLatestArrival(); latest_arrTimes_at_prevAct[vehicle.getVehicleTypeIdentifier().getIndex()] = vehicle.getLatestArrival();
location_of_prevAct[vehicle.getVehicleTypeIdentifier().getIndex()] = route.getEnd().getLocation(); Location location = vehicle.getEndLocation();
if(!vehicle.isReturnToDepot()){
location = route.getEnd().getLocation();
}
location_of_prevAct[vehicle.getVehicleTypeIdentifier().getIndex()] = location;
} }
} }