de.jaetzold.util
Class ValueLinkedStateDecider

java.lang.Object
  |
  +--de.jaetzold.util.LinkedStateDecider
        |
        +--de.jaetzold.util.ValueLinkedStateDecider
All Implemented Interfaces:
StateDecider

public class ValueLinkedStateDecider
extends LinkedStateDecider


Fields inherited from class de.jaetzold.util.LinkedStateDecider
first, second
 
Constructor Summary
ValueLinkedStateDecider()
           
ValueLinkedStateDecider(StateDecider first, StateDecider second)
           
 
Method Summary
 double nextStateValue(double actualState, double value)
          Return the next state.
 
Methods inherited from class de.jaetzold.util.LinkedStateDecider
getFirstDecider, getSecondDecider, isCacheable, setFirstDecider, setSecondDecider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueLinkedStateDecider

public ValueLinkedStateDecider()

ValueLinkedStateDecider

public ValueLinkedStateDecider(StateDecider first,
                               StateDecider second)
Method Detail

nextStateValue

public double nextStateValue(double actualState,
                             double value)
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.
Following copied from interface: de.jaetzold.util.StateDecider
See Also:
StateDecider.isCacheable()