
VariableSleep |
ptolemy.actor.lib.VariableSleep |
An actor that calls Thread.sleep() on the current thread the first
time fire() is called. The sleep delays the inputs for a certain
amount of real time, specified by the sleepTime input.
Note that one way to slow down the execution of a model while running
inside vergil is to turn on animation.
If the width of the output port is less than that of the input port,
the tokens in the extra channels are lost.
Author(s): Yang Zhao, based on Sleep by Jie Liu, Christopher Hylands
Version:$Id: VariableSleep.java,v 1.15 2005/10/28 20:15:08 cxh Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Yellow (cxh)
sleepTime
An input port receives the value of sleep time.
defaultSleepTime
The sleepTime amount, in milliseconds
This parameter must contain a LongToken.
The default value of this parameter is 0, meaning
that this actor will not sleep the current thread at all.