public abstract class TourStrategy extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
overallDistance |
protected Random |
random |
Constructor and Description |
---|
TourStrategy(Random random,
double distanceInMeter) |
Modifier and Type | Method and Description |
---|---|
abstract double |
getDistanceForIteration(int iteration)
Returns the distance in meter that is used for the generated point of a certain iteration
|
abstract double |
getHeadingForIteration(int iteration)
Returns the north based heading between 0 and 360 for a certain iteration.
|
abstract int |
getNumberOfGeneratedPoints()
Defines the number of points that are generated
|
protected double |
slightlyModifyDistance(double distance)
Modifies the Distance up to +-10%
|
protected final Random random
protected final double overallDistance
public TourStrategy(Random random, double distanceInMeter)
public abstract int getNumberOfGeneratedPoints()
public abstract double getDistanceForIteration(int iteration)
public abstract double getHeadingForIteration(int iteration)
protected double slightlyModifyDistance(double distance)
Copyright © 2012–2020. All rights reserved.