mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
added unit test to test vehicle dependent time-windows
This commit is contained in:
parent
78ce320187
commit
e81b37c57a
2 changed files with 14 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ public class UpdateVehicleDependentPracticalTimeWindows implements ReverseActivi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final VehiclesToUpdate vehiclesToUpdate = new VehiclesToUpdate() {
|
private VehiclesToUpdate vehiclesToUpdate = new VehiclesToUpdate() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Collection<Vehicle> get(VehicleRoute route) {
|
public Collection<Vehicle> get(VehicleRoute route) {
|
||||||
|
|
@ -48,8 +48,9 @@ public class UpdateVehicleDependentPracticalTimeWindows implements ReverseActivi
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVehiclesToUpdate(VehiclesToUpdate vehiclesToUpdate){
|
public void setVehiclesToUpdate(VehiclesToUpdate vehiclesToUpdate){
|
||||||
|
this.vehiclesToUpdate = vehiclesToUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void begin(VehicleRoute route) {
|
public void begin(VehicleRoute route) {
|
||||||
this.route = route;
|
this.route = route;
|
||||||
|
|
@ -76,5 +77,6 @@ public class UpdateVehicleDependentPracticalTimeWindows implements ReverseActivi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void finish() {}
|
public void finish() {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
package jsprit.core.problem.constraint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* unit tests to test vehicle dependent time-windows
|
||||||
|
*/
|
||||||
|
public class VehicleDependentTimeWindowTest {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue