| java.lang.Object javax.media.j3d.WakeupCondition javax.media.j3d.WakeupCriterion
All known Subclasses: javax.media.j3d.WakeupOnBehaviorPost, javax.media.j3d.WakeupOnDeactivation, javax.media.j3d.WakeupOnViewPlatformEntry, javax.media.j3d.WakeupOnElapsedTime, javax.media.j3d.WakeupOnCollisionEntry, javax.media.j3d.WakeupOnAWTEvent, javax.media.j3d.WakeupOnSensorExit, javax.media.j3d.WakeupOnViewPlatformExit, javax.media.j3d.WakeupOnElapsedFrames, javax.media.j3d.WakeupOnSensorEntry, javax.media.j3d.WakeupOnCollisionExit, javax.media.j3d.WakeupOnTransformChange, javax.media.j3d.WakeupOnActivation, javax.media.j3d.WakeupOnCollisionMovement,
WakeupCriterion | abstract public class WakeupCriterion extends WakeupCondition (Code) | | 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.
|
triggered | boolean triggered(Code) | | Flag specifying whether this criterion triggered a wakeup
|
addBehaviorCondition | abstract void addBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to add wakeupCondition to behavior structure.
|
cleanTree | void cleanTree(BehaviorStructure bs)(Code) | | This goes through the AndOr tree to remove the various criterion from the
BehaviorStructure.
We can't use behav.universe.behaviorStructure since behav
may reassign to another universe at this time.
|
hasTriggered | public boolean hasTriggered()(Code) | | Returns true if this criterion triggered the wakeup.
true if this criterion triggered the wakeup. |
removeBehaviorCondition | abstract void removeBehaviorCondition(BehaviorStructure bs)(Code) | | This is a callback from BehaviorStructure. It is
used to remove wakeupCondition from behavior structure.
|
resetBehaviorCondition | abstract void resetBehaviorCondition(BehaviorStructure bs)(Code) | | It is used reset wakeupCondition when it is reused.
|
resetTree | void resetTree()(Code) | | This goes through the AndOr tree to reset various criterion.
|
setTriggered | void setTriggered()(Code) | | Set the Criterion's trigger flag to true.
|
|
|