javax.media.j3d
Class WakeupCondition

java.lang.Object
  extended by javax.media.j3d.WakeupCondition
Direct Known Subclasses:
WakeupAnd, WakeupAndOfOrs, WakeupCriterion, WakeupOr, WakeupOrOfAnds

public abstract class WakeupCondition
extends java.lang.Object

An abstract class specifying a single wakeup Condition. This class is extended by the WakeupCriterion, WakeupOr, WakeupAnd, WakeupOrOfAnds, and WakeupAndOfOr classes. A Behavior node hands a WakeupCondition object to the behavior scheduler and the behavior scheduler hands back an enumeration of that WakeupCondition.


Field Summary
(package private) static int ALL_ELEMENTS
           
(package private)  WakeupCriteriaEnumerator allEnum
          This is the allElements enumerator
(package private)  BehaviorRetained behav
          The BehaviorRetained node that is using this condition
(package private)  boolean conditionMet
          This boolean indicates whether this condition has been fully met.
(package private)  int id
          The location of this criterion in the parents array.
(package private)  int[][] listIdx
           
(package private)  WakeupCondition parent
          This points to the parent of this criterion in the AndOr tree
(package private)  WakeupCriteriaEnumerator trigEnum
          This is the triggeredElements enumerator
(package private) static int TRIGGERED_ELEMENTS
           
 
Constructor Summary
WakeupCondition()
           
 
Method Summary
 java.util.Enumeration allElements()
          Returns an enumeration of all WakeupCriterias in this Condition.
(package private)  void buildTree(WakeupCondition parent, int id, BehaviorRetained b)
          Initialize And/Or tree and add criterion to the BehaviourStructure
(package private)  void cleanTree(BehaviorStructure bs)
          This goes through the AndOr tree to remove the various criterion from the BehaviorStructure.
(package private)  void reInsertElapseTimeCond()
           
(package private)  void resetTree()
           
(package private)  void setConditionMet(int id, java.lang.Boolean checkSchedulingRegion)
          this sets the conditionMet flag.
 java.util.Enumeration triggeredElements()
          Returns an enumeration of all triggered WakeupCriterias in this Condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_ELEMENTS

static final int ALL_ELEMENTS
See Also:
Constant Field Values

TRIGGERED_ELEMENTS

static final int TRIGGERED_ELEMENTS
See Also:
Constant Field Values

conditionMet

boolean conditionMet
This boolean indicates whether this condition has been fully met.


parent

WakeupCondition parent
This points to the parent of this criterion in the AndOr tree


id

int id
The location of this criterion in the parents array.


behav

BehaviorRetained behav
The BehaviorRetained node that is using this condition


allEnum

WakeupCriteriaEnumerator allEnum
This is the allElements enumerator


trigEnum

WakeupCriteriaEnumerator trigEnum
This is the triggeredElements enumerator


listIdx

int[][] listIdx
Constructor Detail

WakeupCondition

public WakeupCondition()
Method Detail

allElements

public java.util.Enumeration allElements()
Returns an enumeration of all WakeupCriterias in this Condition.


triggeredElements

public java.util.Enumeration triggeredElements()
Returns an enumeration of all triggered WakeupCriterias in this Condition.


setConditionMet

void setConditionMet(int id,
                     java.lang.Boolean checkSchedulingRegion)
this sets the conditionMet flag.


buildTree

void buildTree(WakeupCondition parent,
               int id,
               BehaviorRetained b)
Initialize And/Or tree and add criterion to the BehaviourStructure


cleanTree

void cleanTree(BehaviorStructure bs)
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.


reInsertElapseTimeCond

void reInsertElapseTimeCond()

resetTree

void resetTree()


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