
Timer |
ptolemy.domains.de.lib.Timer |
A timer actor delays an event with a time delay specified by its input.
<p>
When a timer actor receives an input, if the input value is
bigger than 0.0, the timer schedules itself to fire again some time
later to generate an output. The amount of delay is specified by the
input value. The value of output is specified by the <i>value</i>
parameter of this actor. If the input value is 0.0, an output is
produced in the next firing with a bigger microstep. If the input is
less than 0.0, an exception will be thrown.
<p> This actor is different from the <a href="../../../../ptolemy/domains/de/lib/NonInterruptibleTimer.xml">ptolemy.domains.de.lib.NonInterruptibleTimer</a> actor because the
NonInterruptibleTimer actor delays the processing of a new input if
it has not finished processing a previous input, while the
Timer actor begins processing inputs immediately upon their arrival.
Author(s): Jie Liu, Edward A. Lee, Haiyang Zheng
Version:$Id: Timer.doc.html,v 1.1 2006/02/22 18:42:26 mangal Exp $
Pt.Proposed Rating:Yellow (hyzheng)
Pt.Accepted Rating:Yellow (hyzheng)
value
The value produced at the output. This can have any type,
and it defaults to a boolean token with value <i>true</i>.