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:
parent
6e6deef577
commit
7ca1665dfb
3 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ public class Delivery extends Service{
|
||||||
locationId = coord.toString();
|
locationId = coord.toString();
|
||||||
}
|
}
|
||||||
this.setType("delivery");
|
this.setType("delivery");
|
||||||
|
super.capacity = super.capacityBuilder.build();
|
||||||
return new Delivery(this);
|
return new Delivery(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ public class Pickup extends Service {
|
||||||
locationId = coord.toString();
|
locationId = coord.toString();
|
||||||
}
|
}
|
||||||
this.setType("pickup");
|
this.setType("pickup");
|
||||||
|
super.capacity = super.capacityBuilder.build();
|
||||||
return new Pickup(this);
|
return new Pickup(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ public class Service implements Job {
|
||||||
protected TimeWindow timeWindow = TimeWindow.newInstance(0.0, Double.MAX_VALUE);
|
protected TimeWindow timeWindow = TimeWindow.newInstance(0.0, Double.MAX_VALUE);
|
||||||
|
|
||||||
protected Capacity.Builder capacityBuilder = Capacity.Builder.newInstance();
|
protected Capacity.Builder capacityBuilder = Capacity.Builder.newInstance();
|
||||||
|
|
||||||
protected Capacity capacity;
|
protected Capacity capacity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue