public class ConstantStartDistance extends Object implements StartDistanceForecaster
StartDistanceForecaster that returns always the same
value.| Constructor and Description |
|---|
ConstantStartDistance(double value)
This constructor creates an instance of
ConstantStartDistance
that returns always the given value. |
| Modifier and Type | Method and Description |
|---|---|
double |
getNewStartDistance()
This method returns the new positive start distance.
|
void |
reset()
Resets the object to the initial state.
|
void |
setLastDistance(double last)
Sets the last used distance.
|
public ConstantStartDistance(double value)
ConstantStartDistance
that returns always the given value.value - the value that will always be returnedpublic double getNewStartDistance()
StartDistanceForecastergetNewStartDistance in interface StartDistanceForecasterStartDistanceForecaster.setLastDistance(double)public void setLastDistance(double last)
StartDistanceForecastersetLastDistance in interface StartDistanceForecasterlast - the last used distancepublic void reset()
StartDistanceForecasterreset in interface StartDistanceForecaster