javax.media.j3d
Class WakeupOr

java.lang.Object
  extended by javax.media.j3d.WakeupCondition
      extended by javax.media.j3d.WakeupOr

public final class WakeupOr
extends WakeupCondition

Class specifying any number of wakeup conditions ORed together. This WakeupCondition object specifies that Java 3D should awaken this Behavior when any of the WakeupCondition's constituent wakeup criteria becomes valid.

Note that a unique WakeupCriterion object must be used for each individual element in the array of wakeup criteria.


Field Summary
(package private)  WakeupCriterion[] conditions
           
 
Fields inherited from class javax.media.j3d.WakeupCondition
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS
 
Constructor Summary
WakeupOr(WakeupCriterion[] conditions)
          Constructs a new WakeupOr criterion.
 
Method Summary
(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
 
Methods inherited from class javax.media.j3d.WakeupCondition
allElements, triggeredElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditions

WakeupCriterion[] conditions
Constructor Detail

WakeupOr

public WakeupOr(WakeupCriterion[] conditions)
Constructs a new WakeupOr criterion.

Parameters:
conditions - a vector of individual Wakeup conditions
Method Detail

setConditionMet

void setConditionMet(int id,
                     java.lang.Boolean checkSchedulingRegion)
This sets the bit for the given child, then checks if the full condition is met

Overrides:
setConditionMet in class WakeupCondition

buildTree

void buildTree(WakeupCondition parent,
               int id,
               BehaviorRetained b)
This gets called when this condition is added to the AndOr tree.

Overrides:
buildTree in class WakeupCondition

cleanTree

void cleanTree(BehaviorStructure bs)
This goes through the AndOr tree to remove the various criterion from the BehaviorStructure lists

Overrides:
cleanTree in class WakeupCondition

reInsertElapseTimeCond

void reInsertElapseTimeCond()
Overrides:
reInsertElapseTimeCond in class WakeupCondition

resetTree

void resetTree()
This goes through the AndOr tree to remove the various criterion from the BehaviorStructure.

Overrides:
resetTree in class WakeupCondition


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.