mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
commit
88ee38b229
1 changed files with 12 additions and 1 deletions
|
|
@ -288,7 +288,12 @@ public class VehicleRoutingProblem {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds an initial vehicle route.
|
||||
*
|
||||
* @param route initial route
|
||||
* @return the builder
|
||||
*/
|
||||
public Builder addInitialVehicleRoute(VehicleRoute route){
|
||||
addVehicle((AbstractVehicle)route.getVehicle());
|
||||
for(TourActivity act : route.getActivities()){
|
||||
|
|
@ -324,6 +329,12 @@ public class VehicleRoutingProblem {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a collection of initial vehicle routes.
|
||||
*
|
||||
* @param routes initial routes
|
||||
* @return the builder
|
||||
*/
|
||||
public Builder addInitialVehicleRoutes(Collection<VehicleRoute> routes){
|
||||
for(VehicleRoute r : routes){
|
||||
addInitialVehicleRoute(r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue