|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.AEF.automation.AbstractCondition | +--com.ibm.retail.AEF.automation.AndThenCondition
AndThenCondition uses an array of PropertyConditions. When the first condition evaluates true, the second is elligible for evaluation and so on. When the entire collection of conditions evaluates to true, then the lock associated with this condition is notified.
Field Summary | |
---|---|
protected int |
childIndex
|
protected com.ibm.retail.AEF.automation.Condition[] |
conditions
|
Fields inherited from class com.ibm.retail.AEF.automation.AbstractCondition |
---|
counterLock, dataProvider, eligible, id, idCounter, index, listeners, lock, manager, session |
Constructor Summary | |
---|---|
AndThenCondition(com.ibm.retail.AEF.automation.Condition[] conditions)
Constructs the condition |
Method Summary | |
---|---|
void |
conditionEvaluated(com.ibm.retail.AEF.automation.Condition condition,
boolean flag)
Called by a condition when the condition is evaluated. |
(package private) static java.lang.String |
copyright()
|
void |
currentValues(java.util.HashMap values)
Populate the HashMap with property name/current value pairs included in the condition. |
boolean |
evaluate()
Examines each of the child conditions immediately and determines whether they are all true. |
boolean |
evaluate(com.ibm.retail.AEF.automation.Condition truecond)
Examines each of the child conditions immediately and determines whether they are all true, with the exception of the argument condition. |
boolean |
evaluateValues(com.ibm.retail.AEF.automation.Condition truecond)
Determines whether all the conditions as observed are currently true, and signals the lock to release any blocked threads if they are all true. |
java.lang.String |
explain()
Returns a string explaining this condition. |
com.ibm.retail.AEF.automation.Condition |
makeOpposite()
Makes a new condition which is the logical opposite of this condition. |
void |
setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
Sets the condition lock associated with this object. |
void |
setEligible(boolean flag)
Sets the condition eligible for evaluation. |
void |
setPOSDataProvider(com.ibm.retail.AEF.data.POSDataProvider dataProvider)
Sets the POSDataProvider associated with this condition. |
Methods inherited from class com.ibm.retail.AEF.automation.AbstractCondition |
---|
addEvaluateListener, getID, getIndex, getNextID, getPOSDataProvider, getSession, getTerminalNumber, isEligible, notifyEvaluateConditionListeners, removeEvaluateListener, setID, setIndex, setLockManager, setSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.retail.AEF.automation.Condition |
---|
addEvaluateListener, getID, getIndex, getPOSDataProvider, getSession, getTerminalNumber, isEligible, removeEvaluateListener, setID, setIndex, setLockManager, setSession |
Field Detail |
protected com.ibm.retail.AEF.automation.Condition[] conditions
protected int childIndex
Constructor Detail |
public AndThenCondition(com.ibm.retail.AEF.automation.Condition[] conditions)
conditions
- An array of Condition objects. All of the conditions
must evaluate to true for this AndThenCondition to evaluate
to true.Method Detail |
static java.lang.String copyright()
public void setPOSDataProvider(com.ibm.retail.AEF.data.POSDataProvider dataProvider)
setPOSDataProvider
in interface Condition
setPOSDataProvider
in class AbstractCondition
dataProvider
- The POSDataProvider which will provide property
change events to this condition.public void conditionEvaluated(com.ibm.retail.AEF.automation.Condition condition, boolean flag)
conditionEvaluated
in interface com.ibm.retail.AEF.automation.EvaluateConditionListener
condition
- Called by one of the child conditions when
it is evaluated.flag
- Indicates whether the child condition evaluated
to true or false.public void setEligible(boolean flag)
setEligible
in interface Condition
setEligible
in class AbstractCondition
flag
- Set to true to make this condition eligible for evaluation.public boolean evaluate()
evaluate
in interface Condition
public boolean evaluate(com.ibm.retail.AEF.automation.Condition truecond)
truecond
-
public boolean evaluateValues(com.ibm.retail.AEF.automation.Condition truecond)
truecond
- The original condition of the group which evaluated true.
public com.ibm.retail.AEF.automation.Condition makeOpposite()
makeOpposite
in interface Condition
public java.lang.String explain()
explain
in interface Condition
public void currentValues(java.util.HashMap values)
currentValues
in interface Condition
values
- public void setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
setConditionLock
in interface Condition
setConditionLock
in class AbstractCondition
lock
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |