|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.util.fsm.Condition | +--net.openai.util.fsm.BooleanCondition
BooleanCondition class
Constructor Summary | |
BooleanCondition()
Constructs a BooleanCondition with it's target value set to true . |
|
BooleanCondition(boolean target)
Constructs a BooleanCondition with the given target value. |
|
BooleanCondition(java.lang.Boolean target)
Constructs a BooleanCondition with the given target value. |
|
BooleanCondition(State targetState)
Constructs a BooleanCondtion with it's target value set to true and it's target state set to the given state. |
|
BooleanCondition(State targetState,
boolean target)
Constructs a BooleanCondition with the given target value and the given target state. |
|
BooleanCondition(State targetState,
java.lang.Boolean target)
Constructs a BooleanCondition with the given target value. |
Method Summary | |
boolean |
getTarget()
Returns the target value that will satisfy this condition. |
boolean |
satisfiedBy(java.lang.Object conditional)
Called to check if the conditional meets the criteria defined by this state. |
void |
setTarget(boolean target)
Sets the target boolean value that will satisfy this condition. |
void |
setTarget(java.lang.Boolean target)
Sets the target Boolean value that will satisfy this condition. |
Methods inherited from class net.openai.util.fsm.Condition |
getSourceStates, getTargetState, setTargetState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BooleanCondition()
true
.
public BooleanCondition(boolean target)
target
- The boolean value that will satisfy this condition.public BooleanCondition(java.lang.Boolean target)
target
- The Boolean value that will satisfy this condition.public BooleanCondition(State targetState)
true
and it's target state set to the given state.
targetState
- The target state for this BooleanCondition.public BooleanCondition(State targetState, boolean target)
targetState
- The target state for this BooleanCondtion.target
- The boolean value that will satisfy this condition.public BooleanCondition(State targetState, java.lang.Boolean target)
targetState
- The target state for this BooleanCondition.target
- The Boolean value that will satisfy this condition.Method Detail |
public final void setTarget(boolean target)
target
- The boolean value that will satisfy this condition.public final void setTarget(java.lang.Boolean target)
target
- The Boolean value that will satisfy this condition.public final boolean getTarget()
public final boolean satisfiedBy(java.lang.Object conditional)
satisfiedBy
in class Condition
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 |