Class Multiplexor

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

    public class Multiplexor
    extends Transformer
    This actor selects from the channels on the input port, copying the input from one channel to the output, based on the most recently received value on the select input. If the selected channel has no token, then no output is produced. The select input is required to be an integer between 0 and n-1, where n is the width of the input port. If no token has been received on the select port, then null is sent to the output. The input port may receive Tokens of any type, but all channels must have the same type.

    One token is consumed from each input channel that has a token. Compare this with the Select actor, which only consumes a token on the selected channel.

    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    Jeff Tsay, Edward A. Lee, Stavros Tripakis
    See Also:
    Select
    Pt.AcceptedRating:
    Yellow (cxh)
    Pt.ProposedRating:
    Yellow (ctsay)