public final class WakeupOr extends WakeupCondition
Note that a unique WakeupCriterion object must be used for each individual element in the array of wakeup criteria.
| Modifier and Type | Field and Description |
|---|---|
(package private) WakeupCriterion[] |
conditions |
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS| Constructor and Description |
|---|
WakeupOr(WakeupCriterion[] conditions)
Constructs a new WakeupOr criterion.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
buildTree(WakeupCondition parent,
int id,
BehaviorRetained b)
This gets called when this condition is added to the AndOr tree.
|
(package private) void |
cleanTree(BehaviorStructure bs)
This goes through the AndOr tree to remove the various criterion from the
BehaviorStructure lists
|
(package private) void |
reInsertElapseTimeCond() |
(package private) void |
resetTree()
This goes through the AndOr tree to remove the various criterion from the
BehaviorStructure.
|
(package private) void |
setConditionMet(int id,
java.lang.Boolean checkSchedulingRegion)
This sets the bit for the given child, then checks if the full condition is met
|
allElements, triggeredElementsWakeupCriterion[] conditions
public WakeupOr(WakeupCriterion[] conditions)
conditions - a vector of individual Wakeup conditionsvoid setConditionMet(int id,
java.lang.Boolean checkSchedulingRegion)
setConditionMet in class WakeupConditionvoid buildTree(WakeupCondition parent, int id, BehaviorRetained b)
buildTree in class WakeupConditionvoid cleanTree(BehaviorStructure bs)
cleanTree in class WakeupConditionvoid reInsertElapseTimeCond()
reInsertElapseTimeCond in class WakeupConditionvoid resetTree()
resetTree in class WakeupConditionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.