|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.WakeupCondition
javax.media.j3d.WakeupCriterion
javax.media.j3d.WakeupOnBehaviorPost
public final class WakeupOnBehaviorPost
Class that specifies a Behavior wakeup when a specific behavior object posts a specific event
Field Summary | |
---|---|
(package private) Behavior |
armingBehavior
|
(package private) static int |
COND_IN_BS_LIST
|
(package private) int |
post
|
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES
|
(package private) Behavior |
triggeringBehavior
|
(package private) int |
triggeringPost
|
Fields inherited from class javax.media.j3d.WakeupCriterion |
---|
triggered |
Fields inherited from class javax.media.j3d.WakeupCondition |
---|
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS |
Constructor Summary | |
---|---|
WakeupOnBehaviorPost(Behavior behavior,
int postId)
Constructs a new WakeupOnBehaviorPost criterion. |
Method Summary | |
---|---|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. |
Behavior |
getBehavior()
Returns the behavior specified in this object's constructor. |
int |
getPostId()
Retrieve the WakeupCriterion's specified postId |
Behavior |
getTriggeringBehavior()
Returns the behavior that triggered this wakeup. |
int |
getTriggeringPostId()
Returns the postId that caused the behavior to wakeup. |
(package private) void |
removeBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. |
(package private) void |
resetBehaviorCondition(BehaviorStructure bs)
Perform task in addBehaviorCondition() that has to be set every time the condition met. |
Methods inherited from class javax.media.j3d.WakeupCriterion |
---|
buildTree, cleanTree, hasTriggered, resetTree, setTriggered |
Methods inherited from class javax.media.j3d.WakeupCondition |
---|
allElements, reInsertElapseTimeCond, setConditionMet, triggeredElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int COND_IN_BS_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
Behavior armingBehavior
Behavior triggeringBehavior
int post
int triggeringPost
Constructor Detail |
---|
public WakeupOnBehaviorPost(Behavior behavior, int postId)
behavior
- the behavior that must be the source of the post,
if behavior == null, then any behavior posting the postId will cause
the wakeup.postId
- the postId that will trigger a wakeup if posted by the
specified behavior, if postId == 0, then any post by the specified
behavior will cause the wakeup.Method Detail |
---|
public int getPostId()
public Behavior getBehavior()
public int getTriggeringPostId()
public Behavior getTriggeringBehavior()
void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition
in class WakeupCriterion
void removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition
in class WakeupCriterion
void resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition
in class WakeupCriterion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |