mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add activities
This commit is contained in:
parent
ac84b62651
commit
298210bb9c
2 changed files with 3 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ import java.util.Collection;
|
|||
public class Activity {
|
||||
|
||||
public enum Type {
|
||||
PICKUP, DELIVERY, SERVICE
|
||||
PICKUP, DELIVERY, SERVICE, BREAK;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
|
|
|||
|
|
@ -61,12 +61,13 @@ public class Break extends Service {
|
|||
this.setType("break");
|
||||
super.capacity = Capacity.Builder.newInstance().build();
|
||||
super.skills = Skills.Builder.newInstance().build();
|
||||
super.activity = new Activity.Builder(null, Activity.Type.BREAK).setServiceTime(serviceTime).setTimeWindows(timeWindows.getTimeWindows()).build();
|
||||
return new Break(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private boolean variableLocation = true;
|
||||
private boolean variableLocation;
|
||||
|
||||
Break(Builder builder) {
|
||||
super(builder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue