
Sequencer |
ptolemy.actor.lib.Sequencer |
This actor takes a sequence of inputs tagged with a sequence number
and produces them on the output port in the order given by the
sequence number. The sequence numbers are integers starting
with zero. On each firing, this actor consumes one token
from the input port and one token from the
sequenceNumber port. If the sequence number is the
next one in the sequence, then the token read from the input
port is produced on the output port. Otherwise,
it is saved until its sequence number is the next one
in the sequence. If an output is produced, then it may
be immediately followed by tokens that were previously
saved, if their sequence numbers are next.
Author(s): Edward A. Lee
Version:$Id: Sequencer.java,v 1.28 2006/03/28 23:56:43 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Yellow (ctsay)
sequenceNumber
Input for the sequence number. The type is int.
startingSequenceNumber
The first number of the sequence. This is an int that
defaults to 0.