ElementsToArray
ptolemy.actor.lib.ElementsToArray

On each firing, this actor reads exactly one token from each channel of the input port and assemble the tokens into an ArrayToken. The ArrayToken is sent to the output port. If there is no input token at any channel of the input port, the prefire() will return false.

This actor is polymorphic. It can accept inputs of any type, as long as the type does not change, and will produce an array with elements of the corresponding type.



Author(s): Ye Zhou
Version:$Id: ElementsToArray.java,v 1.20 2005/10/28 20:14:43 cxh Exp $
Pt.Proposed Rating:Red (zhouye)
Pt.Accepted Rating:Red (cxh)