public abstract class WakeupCriterion extends WakeupCondition
Note that a unique WakeupCriterion object must be used with each instance of a Behavior. Sharing wakeup criteria among different instances of a Behavior is illegal. Similarly, a unique WakeupCriterion object must be used for each individual element in the set of arrays used to construct WakeupOr, WakeupAnd, WakeupOrOfAnds, and WakeupAndOfOrs objects.
| Constructor and Description |
|---|
WakeupCriterion() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasTriggered()
Returns true if this criterion triggered the wakeup.
|
allElements, triggeredElementsCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.