Package javax.media.j3d
Class WakeupCriterion
java.lang.Object
javax.media.j3d.WakeupCondition
javax.media.j3d.WakeupCriterion
- Direct Known Subclasses:
WakeupOnActivation
,WakeupOnAWTEvent
,WakeupOnBehaviorPost
,WakeupOnCollisionEntry
,WakeupOnCollisionExit
,WakeupOnCollisionMovement
,WakeupOnDeactivation
,WakeupOnElapsedFrames
,WakeupOnElapsedTime
,WakeupOnSensorEntry
,WakeupOnSensorExit
,WakeupOnTransformChange
,WakeupOnViewPlatformEntry
,WakeupOnViewPlatformExit
An abstract class specifying a singleton wakeup Criterion. This
class consists of several subclasses, each of which specifies one
particular wakeup criterion, that criterion's associated arguments
(if any), and either a flag that indicates whether this criterion
caused a Behavior object to awaken or a return field containing the
information that caused the Behavior object to awaken.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this criterion triggered the wakeup.Methods inherited from class javax.media.j3d.WakeupCondition
allElements, triggeredElements
-
Constructor Details
-
WakeupCriterion
public WakeupCriterion()
-
-
Method Details
-
hasTriggered
public boolean hasTriggered()Returns true if this criterion triggered the wakeup.- Returns:
- true if this criterion triggered the wakeup.
-