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
|
slightlyModifyDistance
public SinglePointTour(Random random, double distanceInMeter)
public int getNumberOfGeneratedPoints()
TourStrategy
getNumberOfGeneratedPoints
in class TourStrategy
public double getDistanceForIteration(int iteration)
TourStrategy
getDistanceForIteration
in class TourStrategy
public double getHeadingForIteration(int iteration)
TourStrategy
getHeadingForIteration
in class TourStrategy
Copyright © 2012–2020. All rights reserved.