|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.openai.util.fsm.AbstractCondition
net.openai.util.fsm.EqualsCondition
public final class EqualsCondition
EqualsCondition class
| Constructor Summary | |
|---|---|
EqualsCondition()
Constructs a new EqualsCondition. |
|
EqualsCondition(java.lang.Object target)
Constructs a new EqualsCondition with the target target. |
|
EqualsCondition(State targetState)
Constructs a new EqualsCondtion with the given target state. |
|
EqualsCondition(State targetState,
java.lang.Object target)
Constructs a new EqualsCondition with the target target
and the given target state. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getTarget()
Returns the target of this equals condition. |
boolean |
satisfiedBy(java.lang.Object conditional)
Implemented method for the Condition interface Called to check if the condition meets the criteria defined by this state. |
void |
setTarget(java.lang.Object target)
Sets the target of this equals 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 |
|---|
public EqualsCondition()
public EqualsCondition(State targetState)
targetState - The target state of this condition.public EqualsCondition(java.lang.Object target)
target.
The satisfiedBy method will return true if the passed
in object is equal to (== operator) the target object.
target - The target of this equals condition.
public EqualsCondition(State targetState,
java.lang.Object target)
target
and the given target state. The satisfiedBy method will
return true if the passed in object is equal to (== operator) the
target object.
targetState - The target state of this condition.target - The target of this equals condition.| Method Detail |
|---|
public final void setTarget(java.lang.Object target)
targe - The target of this equals condition.public final java.lang.Object getTarget()
public final boolean satisfiedBy(java.lang.Object conditional)
conditional == target
condition - The object to check.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||