
Ramp |
ptolemy.actor.lib.Ramp |
Produce an output token on each firing with a value that is
incremented by the specified step each iteration. The
first output is given by the init parameter, and the
increment may be given either by the step parameter or by
the associated step port. Note that the increment will show
up in the output only on the next iteration. If you need it to show
up on the current iteration, use the
Accumulator actor.
The type of the output is determined by the constraint that it must
be greater than or equal to the types of the parameter (and/or the
step port, if it is connected).
Thus, this actor is
polymorphic in the sense that its output data type can be that
of any token type that supports addition.
Author(s): Yuhong Xiong, Edward A. Lee
Version:$Id: Ramp.java,v 1.91 2005/07/08 19:56:03 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (bilung)
init
The value produced by the ramp on its first iteration.
The default value of this parameter is the integer 0.
step
The amount by which the ramp output is incremented on each iteration.
The default value of this parameter is the integer 1.