| Package | Description |
|---|---|
| org.optaplanner.examples.tsp.domain | |
| org.optaplanner.examples.tsp.domain.location |
| Modifier and Type | Method and Description |
|---|---|
Location |
Visit.getLocation() |
Location |
Standstill.getLocation() |
Location |
Domicile.getLocation() |
| Modifier and Type | Method and Description |
|---|---|
List<Location> |
TspSolution.getLocationList() |
| Modifier and Type | Method and Description |
|---|---|
void |
Visit.setLocation(Location location) |
void |
Domicile.setLocation(Location location) |
| Modifier and Type | Method and Description |
|---|---|
void |
TspSolution.setLocationList(List<Location> locationList) |
| Modifier and Type | Class and Description |
|---|---|
class |
AirLocation
The cost between 2 locations is a straight line: the euclidean distance between their GPS coordinates.
|
class |
RoadLocation
The cost between 2 locations was precalculated on a real road network route.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Location.getAirDistanceDoubleTo(Location location) |
double |
Location.getAngle(Location location)
The angle relative to the direction EAST.
|
long |
RoadLocation.getDistanceTo(Location location) |
abstract long |
Location.getDistanceTo(Location location)
The distance's unit of measurement depends on the
TspSolution's DistanceType. |
long |
AirLocation.getDistanceTo(Location location) |
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.