mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add storing and indexing of non-job activities
This commit is contained in:
parent
ce16a1aacf
commit
90a8edaa6d
1 changed files with 10 additions and 0 deletions
|
|
@ -414,6 +414,16 @@ public class VehicleRoutingProblem {
|
|||
return this;
|
||||
}
|
||||
|
||||
public final List<AbstractActivity> nonJobActivities = new ArrayList<>();
|
||||
|
||||
public void addNonJobActivities(Collection<? extends AbstractActivity> nonJobActivities) {
|
||||
for (AbstractActivity act : nonJobActivities) {
|
||||
act.setIndex(activityIndexCounter);
|
||||
incActivityIndexCounter();
|
||||
this.nonJobActivities.add(act);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the {@link VehicleRoutingProblem}.
|
||||
* <p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue