
Maximum |
ptolemy.actor.lib.Maximum |
Read at most one token from each input channel and broadcast the one with the
greatest value to the maximumValue output.
In addition, broadcast the channel number of the maximum 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 maximum magnitude.
The input port is a multiport.
Author(s): Edward A. Lee
Version:$Id: Maximum.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
maximumValue output.
maximumValue
The output port for the maximum 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.