net.openai.util.fsm
Class NullCondition

java.lang.Object
  extended by net.openai.util.fsm.AbstractCondition
      extended by net.openai.util.fsm.NullCondition
All Implemented Interfaces:
java.io.Serializable, Condition

public final class NullCondition
extends AbstractCondition

This condition will be satisfied whenever a null is passed in as an input to the machine.

See Also:
Serialized Form

Constructor Summary
NullCondition()
          Constructs a new NullCondition.
NullCondition(State targetState)
          Constructs a new NullCondition for the given target state.
 
Method Summary
 boolean satisfiedBy(java.lang.Object conditional)
          Called to check if the conditional meets the criteria defined by this condition.
 
Methods inherited from class net.openai.util.fsm.AbstractCondition
getTargetState, setTargetState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCondition

public NullCondition()
Constructs a new NullCondition.


NullCondition

public NullCondition(State targetState)
Constructs a new NullCondition for the given target state.

Parameters:
targetState - The target state for the condition.
Method Detail

satisfiedBy

public final boolean satisfiedBy(java.lang.Object conditional)
Called to check if the conditional meets the criteria defined by this condition. In this case, any condition that is null will pass.

Parameters:
conditional - The object to check.
Returns:
True if conditional is null.