This actor produces a sequence of values, optionally periodically repeating
them. The <i>values</i> parameter contains an ArrayToken that specifies the
sequence of values to produce at the output. If the <i>enable</i> input
port is connected, then it provides a boolean sequence that specifies
whether to produce an output. If the <i>enable</i> is present and
true, then the actor will produce the next output. Otherwise, it
produces no output and will produce the next in the sequence
on the next firing (if enable is true). If the <i>holdLastOutput</i>
parameter is true, then the sequence is infinite, with the last
value being repeated forever.
<p>
Compared with the Pulse actor, this actor can be enabled or disabled
on each firing by providing a true or false input on the <i>enable</i>
port.
Edward A. Lee
$Id: Sequence.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 4.1
Yellow (eal)
Red (cxh)
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.
The output port. The type is greater than or equal to the
types of the two input ports.
A flag indicating whether to interpret the <i>values</i>
as an infinite sequence where the last value is repeated
forever. This is a boolean that defaults to false.
The flag that indicates whether the sequence needs to be
repeated. If this is false, then either the last value of the
sequence is repeatedly produced after the entire sequence
has been produced, or the actor stops producing output,
depending on the value of <i>holdLastOutput</i>.
This is a boolean, and defaults to false.
The values that will be produced on the output.
This parameter is an array, with default value {1}.