Multiplexor
ptolemy.actor.lib.Multiplexor

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 channel 0 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.

Author(s): Jeff Tsay and Edward A. Lee
Version:$Id: Multiplexor.java,v 1.31 2005/10/28 20:14:52 cxh Exp $
Pt.Proposed Rating:Yellow (ctsay)
Pt.Accepted Rating:Yellow (cxh)


select
Input for the index of the port to select. The type is IntToken.