public class RoutingProblem extends Object
| Constructor and Description |
|---|
RoutingProblem(String name,
List<? extends VehicleData> vehicles,
LocationData depot,
List<? extends LocationData> visits)
Create routing problem instance.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<LocationData> |
depot()
Get the depot.
|
String |
name()
Get routing problem instance name.
|
List<VehicleData> |
vehicles()
Vehicles that are part of the problem definition.
|
List<LocationData> |
visits()
Get locations that should be visited.
|
public RoutingProblem(String name, List<? extends VehicleData> vehicles, LocationData depot, List<? extends LocationData> visits)
name - the instance namevehicles - list of vehicles (not null)depot - the depot (may be null if there is no depot)visits - list of visits (not null)public String name()
public Optional<LocationData> depot()
null)public List<LocationData> visits()
public List<VehicleData> vehicles()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.