|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition is an interface for classes which listen for events which may unblock a thread which is waiting on a ThreadManager.wait() call.
Method Summary | |
---|---|
void |
addEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
Add a EvaluateConditionListener which will be notified whenever the condition is evaluated. |
void |
currentValues(java.util.HashMap values)
Populate the HashMap with property name/current value pairs included in the condition. |
boolean |
evaluate()
Evaluates the condition with the current value of the property without waiting for the next property value change. |
java.lang.String |
explain()
Returns a string which describes the condition being monitored. |
int |
getID()
Gets the unique id of this condition. |
int |
getIndex()
Gets the vector index of this condition. |
com.ibm.retail.AEF.data.POSDataProvider |
getPOSDataProvider()
Returns the POSDataProvider associated with this condition. |
com.ibm.retail.AEF.session.AEFSession |
getSession()
Gets the AEFSession associated with this condition. |
java.lang.String |
getTerminalNumber()
Gets the terminal number associated with the session for this condition. |
boolean |
isEligible()
Indicates whether the condition is eligible for evaluation. |
com.ibm.retail.AEF.automation.Condition |
makeOpposite()
Makes a new condition which is the logical opposite of this condition. |
void |
removeEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
Remove a EvaluateConditionListener |
void |
setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
Sets the ConditionLock associated with this condition. |
void |
setEligible(boolean flag)
Sets the condition eligible for evaluation. |
void |
setID(int id)
Sets the unique id of this condition (for use in trace & debug). |
void |
setIndex(int index)
Sets the index of this condition (for use within a vector). |
void |
setLockManager(com.ibm.retail.AEF.thread.ConditionLockManager manager)
Sets the condition lock manager associated with this condition. |
void |
setPOSDataProvider(com.ibm.retail.AEF.data.POSDataProvider dataProvider)
Sets the POSDataProvider associated with this condition. |
void |
setSession(com.ibm.retail.AEF.session.AEFSession session)
Sets the AEFSession associated with this condition. |
Method Detail |
public void setEligible(boolean flag)
flag
- Set to true to make this condition eligible for evaluation.public boolean isEligible()
public void setLockManager(com.ibm.retail.AEF.thread.ConditionLockManager manager)
manager
- The condition lock manager which can notify the blocked thread.public void setPOSDataProvider(com.ibm.retail.AEF.data.POSDataProvider dataProvider)
dataProvider
- The POSDataProvider which will provide property
change events to this condition.public com.ibm.retail.AEF.data.POSDataProvider getPOSDataProvider()
public void setIndex(int index)
index
- This integer value will be returned by the ConditionLock
to indicate which condition signalled the lock.public int getIndex()
public void setID(int id)
id
- A unique id used for trace and debug.public int getID()
public boolean evaluate()
public com.ibm.retail.AEF.automation.Condition makeOpposite()
public void addEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
public void removeEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
public void setSession(com.ibm.retail.AEF.session.AEFSession session)
session
- public com.ibm.retail.AEF.session.AEFSession getSession()
public java.lang.String getTerminalNumber()
public java.lang.String explain()
public void currentValues(java.util.HashMap values)
values
- public void setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
lock
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |