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()
StartDistanceForecaster
getNewStartDistance
in interface StartDistanceForecaster
StartDistanceForecaster.setLastDistance(double)
public void setLastDistance(double last)
StartDistanceForecaster
setLastDistance
in interface StartDistanceForecaster
last
- the last used distancepublic void reset()
StartDistanceForecaster
reset
in interface StartDistanceForecaster