public final class WakeupOnElapsedTime extends WakeupCriterion
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
triggeredTime
This represents the triggered time
|
(package private) long |
wait |
triggeredALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS| Constructor and Description |
|---|
WakeupOnElapsedTime(long milliseconds)
Constructs a new WakeupOnElapsedTime criterion.
|
| Modifier and Type | Method and Description |
|---|---|
(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.
|
buildTree, cleanTree, hasTriggered, resetTree, setTriggeredallElements, setConditionMet, triggeredElementspublic WakeupOnElapsedTime(long milliseconds)
milliseconds - the number of milliseconds to the wakeup. A value
of zero or less will cause an IllegalArgumentException to be thrown.public long getElapsedFrameTime()
void addBehaviorCondition(BehaviorStructure bs)
addBehaviorCondition in class WakeupCriterionvoid removeBehaviorCondition(BehaviorStructure bs)
removeBehaviorCondition in class WakeupCriterionvoid reInsertElapseTimeCond()
reInsertElapseTimeCond in class WakeupConditionvoid resetBehaviorCondition(BehaviorStructure bs)
resetBehaviorCondition in class WakeupCriterionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.