
Accumulator |
ptolemy.actor.lib.Accumulator |
Output the initial value plus the sum of all the inputs since
the last time a true token was received at the reset port.
One output is produced each time the actor is fired. The
inputs and outputs can be any token type that supports addition.
The output type is constrained to be greater than or
equal to the input type and the type of the init parameter.
Author(s): Edward A. Lee
Version:$Id: Accumulator.java,v 1.25 2005/10/28 20:14:29 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Yellow (neuendor)
reset
If this port receives a True token on any channel, then the
accumulator state will be reset to the initial value.
This is a multiport and has type boolean.
init
The value produced by the actor on its first iteration.
The default value of this parameter is the integer 0.