Sequence
ptolemy.actor.lib.Sequence

This actor produces a sequence of values, optionally periodically repeating them. The values parameter contains an ArrayToken that specifies the sequence of values to produce at the output. If the enable input port is connected, then it provides a boolean sequence that specifies whether to produce an output. If the enable is present and true, then the actor will produce the next output. Otherwise, it produces no output.

Compared with the Pulse actor, this actor can be enabled or disabled on each firing by providing a true or false input on the enable port.

Author(s): Edward A. Lee
Version:$Id: Sequence.java,v 1.11 2005/10/28 19:20:13 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (cxh)


enable
The enable input port. If this port is connected, then its input will determine whether an output is produced in any given firing. The type is boolean.

output
The output port. The type is greater than or equal to the types of the two input ports.



repeat
The flag that indicates whether the sequence needs to be repeated. This is a boolean, and defaults to false.

values
The values that will be produced on the output. This parameter is an array, with default value {1}.