Class Synchronizer

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class Synchronizer
    extends Transformer
    This actor implements a token synchronizer. It has one input port and one output port, both of which are multiports. When at least one token exists on every input channel, exactly one token is consumed from each input channel, and the tokens are output on the corresponding output channels. If any input channel is missing a token, then no output is produced.

    Note that the ordering of channels of a multiport is determined by the order of connection. Thus the nth input channel connected corresponds to the nth output channel connected.

    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    Paul Whitaker
    Pt.AcceptedRating:
    Yellow (pwhitake)
    Pt.ProposedRating:
    Yellow (pwhitake)