|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.util.fsm.Condition
This is the base class for all Conditions
Constructor Summary | |
Condition()
Constructs a new Condition object. |
|
Condition(State targetState)
Constructs a new Condition with the given target state. |
Method Summary | |
java.util.Vector |
getSourceStates()
Returns a handle to the source States of this Condition. |
State |
getTargetState()
Returns a handle to this Condition's current target state. |
abstract boolean |
satisfiedBy(java.lang.Object conditional)
Called to check if the conditional meets the criteria defined by this state. |
void |
setTargetState(State targetState)
Sets the target state for this Condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Condition()
public Condition(State targetState)
targetState
- The target state for this Condition.Method Detail |
public final void setTargetState(State targetState)
targetState
- The new target state.public final State getTargetState()
public final java.util.Vector getSourceStates()
public abstract boolean satisfiedBy(java.lang.Object conditional)
conditional
- The object to check.
true
if this condition
is met by the Object conditional
and
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |