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

modified builder to build multiple cap-dims

This commit is contained in:
oblonski 2014-02-17 17:55:49 +01:00
parent 6e6deef577
commit 7ca1665dfb
3 changed files with 3 additions and 0 deletions

View file

@ -60,6 +60,7 @@ public class Delivery extends Service{
locationId = coord.toString();
}
this.setType("delivery");
super.capacity = super.capacityBuilder.build();
return new Delivery(this);
}

View file

@ -63,6 +63,7 @@ public class Pickup extends Service {
locationId = coord.toString();
}
this.setType("pickup");
super.capacity = super.capacityBuilder.build();
return new Pickup(this);
}

View file

@ -77,6 +77,7 @@ public class Service implements Job {
protected TimeWindow timeWindow = TimeWindow.newInstance(0.0, Double.MAX_VALUE);
protected Capacity.Builder capacityBuilder = Capacity.Builder.newInstance();
protected Capacity capacity;
/**