mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
adapt readers to changes in VehicleTypeBuilder and PenaltyVehicleType
This commit is contained in:
parent
d4169d7797
commit
8b01497cfc
4 changed files with 11 additions and 11 deletions
|
|
@ -93,7 +93,7 @@ public class ChristophidesReader {
|
|||
else if(counter == 1){
|
||||
String id = Integer.valueOf(counter).toString();
|
||||
Coordinate depotCoord = makeCoord(tokens[0].trim(),tokens[1].trim());
|
||||
VehicleTypeImpl vehicleType = VehicleType.Builder.newInstance("christophidesType", vehicleCapacity).
|
||||
VehicleTypeImpl vehicleType = VehicleTypeImpl.Builder.newInstance("christophidesType", vehicleCapacity).
|
||||
setCostPerDistance(1.0).setFixedCost(100).build();
|
||||
Vehicle vehicle = VehicleImpl.Builder.newInstance("christophidesVehicle").setLatestArrival(endTime).setLocationId(id).setLocationCoord(depotCoord).
|
||||
setType(vehicleType).build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue