
ArrayToElements |
ptolemy.actor.lib.ArrayToElements |
An actor that disassembles an ArrayToken to a multiport output.
On each firing, this actor reads an ArrayToken from the input
port and send out each element token to each channel of the output
port. If the width of the output port (say, n) is less than
the number of elements in the array (say m), then the first
n elements in the array will be sent, and the remaining
tokens are discarded. If n is greater than m, then
the last n-m channels of the output port will never send
tokens out.
This actor is polymorphic. It can accept ArrayTokens with any element
type and send out tokens corresponding to that type.
Author(s): Ye Zhou
Version:$Id: ArrayToElements.java,v 1.20 2005/10/28 20:14:35 cxh Exp $
Pt.Proposed Rating:Red (zhouye)
Pt.Accepted Rating:Red (cxh)