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:
parent
de74cce245
commit
6ce6778c9f
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue