Minimum
ptolemy.actor.lib.Minimum

Read at most one token from each input channel and broadcast the one with the least value to the minimumValue output. In addition, broadcast the channel number of the minimum on the channelNumber output port. Either output port may be left unconnected if you do not need its results (this is why these are multiports). This actor works with any scalar token. For ComplexToken, the output is the one with the minimum magnitude. The input port is a multiport.

Author(s): Edward A. Lee
Version:$Id: Minimum.java,v 1.36 2006/05/18 16:10:24 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Yellow (yuhong)


input
The input port. This base class imposes no type constraints except that the type of the input cannot be greater than the type of the minimumValue output.

minimumValue
The output port for the minimum value. The type of this output is constrained to be at most a scalar.

channelNumber
The output port for the channel number. The type of this output is an integer.