|
|||||||||
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.WakeupOnElapsedTime
public final class WakeupOnElapsedTime
Class specifying a wakeup when a specific number of milliseconds have elapsed.
Field Summary | |
---|---|
(package private) long |
triggeredTime
This represents the triggered time |
(package private) long |
wait
|
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 | |
---|---|
WakeupOnElapsedTime(long milliseconds)
Constructs a new WakeupOnElapsedTime criterion. |
Method Summary | |
---|---|
(package private) void |
addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. |
long |
getElapsedFrameTime()
Retrieve the WakeupCriterion's elapsed time value that was used when constructing this object. |
(package private) void |
reInsertElapseTimeCond()
This is invoked when Behavior processStimulus can't schedule to run because behav.active = false. |
(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, setConditionMet, triggeredElements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
long wait
long triggeredTime
Constructor Detail |
---|
public WakeupOnElapsedTime(long milliseconds)
milliseconds
- the number of milliseconds to the wakeup. A value
of zero or less will cause an IllegalArgumentException to be thrown.Method Detail |
---|
public long getElapsedFrameTime()
void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition
in class WakeupCriterion
void removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition
in class WakeupCriterion
void reInsertElapseTimeCond()
reInsertElapseTimeCond
in class WakeupCondition
void resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition
in class WakeupCriterion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |