public class RoutingPlan extends Object
| Constructor and Description |
|---|
RoutingPlan(String distance,
Location depot,
List<RouteWithTrack> routes)
Create a routing plan.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Location> |
depot()
The depot.
|
String |
distance()
Overall travel distance.
|
static RoutingPlan |
empty()
Create an empty routing plan.
|
List<RouteWithTrack> |
routes()
Routes of all vehicles in the depot.
|
public RoutingPlan(String distance, Location depot, List<RouteWithTrack> routes)
distance - the overall travel distancedepot - the depot (may be null)routes - routes of all vehiclespublic static RoutingPlan empty()
public String distance()
public List<RouteWithTrack> routes()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.