public class Route extends Object
This entity describes part of a solution of the vehicle routing problem
(assignment of a subset of visits to one of the vehicles).
It doesn't carry the data about physical tracks between adjacent visits.
Geographical data is held by RouteWithTrack.
| Constructor and Description |
|---|
Route(Vehicle vehicle,
Location depot,
List<Location> visits)
Create a vehicle route.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
depot()
Depot in which the route starts and ends.
|
String |
toString() |
Vehicle |
vehicle()
The vehicle assigned to this route.
|
List<Location> |
visits()
List of vehicle's visits (not including the depot).
|
public Vehicle vehicle()
null)public Location depot()
null)public List<Location> visits()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.