|
|||||||||||
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.OrCondition
OrCondition uses an array of PropertyConditions. When any of the conditions evaluates to true, then the lock associated with this condition is notified.
Field Summary | |
---|---|
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 | |
---|---|
OrCondition(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. |
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
Constructor Detail |
public OrCondition(com.ibm.retail.AEF.automation.Condition[] conditions)
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
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 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 |