|
|||||||||||
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
AbstractCondition is a base class for objects which are used in conjuction with a ConditionLock to block a calling thread based on a set of conditions.
Field Summary | |
---|---|
static java.lang.Object |
counterLock
|
protected com.ibm.retail.AEF.data.POSDataProvider |
dataProvider
|
protected boolean |
eligible
|
int |
id
|
static int |
idCounter
|
protected int |
index
|
protected java.util.Collection |
listeners
|
protected com.ibm.retail.AEF.thread.ConditionLock |
lock
|
com.ibm.retail.AEF.thread.ConditionLockManager |
manager
|
com.ibm.retail.AEF.session.AEFSession |
session
|
Constructor Summary | |
---|---|
AbstractCondition()
|
Method Summary | |
---|---|
void |
addEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
Add a EvaluateConditionListener which will be notified whenever the condition is evaluated. |
(package private) static java.lang.String |
copyright()
|
int |
getID()
Gets the unique id of this condition. |
int |
getIndex()
Gets the vector index of this condition. |
int |
getNextID()
Gets the next available id. |
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. |
void |
notifyEvaluateConditionListeners(com.ibm.retail.AEF.automation.Condition cond,
boolean value)
Notifies EvaluateConditionListeners |
void |
removeEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
Remove a EvaluateConditionListener |
void |
setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
Sets the condition lock 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. |
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 |
---|
currentValues, evaluate, explain, makeOpposite |
Field Detail |
protected int index
protected com.ibm.retail.AEF.thread.ConditionLock lock
protected boolean eligible
protected com.ibm.retail.AEF.data.POSDataProvider dataProvider
public static int idCounter
public static java.lang.Object counterLock
public int id
public com.ibm.retail.AEF.session.AEFSession session
public com.ibm.retail.AEF.thread.ConditionLockManager manager
protected java.util.Collection listeners
Constructor Detail |
public AbstractCondition()
Method Detail |
static java.lang.String copyright()
public void setEligible(boolean flag)
setEligible
in interface Condition
flag
- Set true to set the condition eligible for evaluation.public boolean isEligible()
isEligible
in interface Condition
public void setConditionLock(com.ibm.retail.AEF.thread.ConditionLock lock)
setConditionLock
in interface Condition
lock
- An optional condition lock which will be signalled
when the condition evaluates to true.public void setLockManager(com.ibm.retail.AEF.thread.ConditionLockManager manager)
setLockManager
in interface Condition
manager
- The condition lock manager which can notify the blocked thread.public void setPOSDataProvider(com.ibm.retail.AEF.data.POSDataProvider dataProvider)
setPOSDataProvider
in interface Condition
dataProvider
- The POSDataProvider which will provide property
changes to this condition.public com.ibm.retail.AEF.data.POSDataProvider getPOSDataProvider()
getPOSDataProvider
in interface Condition
public void setIndex(int index)
setIndex
in interface Condition
index
- This value is returned from a condition lock if
this particular condition caused the condition lock
to be signalled.public int getIndex()
getIndex
in interface Condition
public void setSession(com.ibm.retail.AEF.session.AEFSession session)
setSession
in interface Condition
session
- public com.ibm.retail.AEF.session.AEFSession getSession()
getSession
in interface Condition
public void setID(int id)
setID
in interface Condition
id
- A unique id which is used in debug trace.public int getNextID()
public int getID()
getID
in interface Condition
public void addEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
addEvaluateListener
in interface Condition
public void removeEvaluateListener(com.ibm.retail.AEF.automation.EvaluateConditionListener listener)
removeEvaluateListener
in interface Condition
public void notifyEvaluateConditionListeners(com.ibm.retail.AEF.automation.Condition cond, boolean value)
public java.lang.String getTerminalNumber()
getTerminalNumber
in interface Condition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |