public class SinglePointTour extends TourStrategy
overallDistance, random| Constructor and Description |
|---|
SinglePointTour(Random random,
double distanceInMeter) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistanceForIteration(int iteration)
Returns the distance in meter that is used for the generated point of a certain iteration
|
double |
getHeadingForIteration(int iteration)
Returns the north based heading between 0 and 360 for a certain iteration.
|
int |
getNumberOfGeneratedPoints()
Defines the number of points that are generated
|
slightlyModifyDistancepublic SinglePointTour(Random random, double distanceInMeter)
public int getNumberOfGeneratedPoints()
TourStrategygetNumberOfGeneratedPoints in class TourStrategypublic double getDistanceForIteration(int iteration)
TourStrategygetDistanceForIteration in class TourStrategypublic double getHeadingForIteration(int iteration)
TourStrategygetHeadingForIteration in class TourStrategyCopyright © 2012–2018. All rights reserved.