de.jaetzold.art
Class CountSensor.AbsoluteStateDifferenceStateDecider
java.lang.Object
|
+--de.jaetzold.util.BinaryOperatorStateDecider
|
+--de.jaetzold.util.StateDifferenceStateDecider
|
+--de.jaetzold.art.CountSensor.AbsoluteStateDifferenceStateDecider
- All Implemented Interfaces:
- StateDecider
- Enclosing class:
- CountSensor
- public static class CountSensor.AbsoluteStateDifferenceStateDecider
- extends StateDifferenceStateDecider
This is the StateDecider
used as the default in CountSensor
.
It returns the absolute value fo the result of it's superclass StateDifferenceStateDecider
.
Method Summary |
double |
nextStateValue(double lastState,
double newState)
Return the next state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountSensor.AbsoluteStateDifferenceStateDecider
public CountSensor.AbsoluteStateDifferenceStateDecider()
nextStateValue
public double nextStateValue(double lastState,
double newState)
- Description copied from interface:
StateDecider
- Return the next state. The result may depend on the given actualState and the current value but is allowed to depend on anything else. Be sure to have
isCacheable()
return a correct result then.
- Overrides:
nextStateValue
in class BinaryOperatorStateDecider
- Following copied from interface:
de.jaetzold.util.StateDecider
- See Also:
StateDecider.isCacheable()