VectorAssembler
ptolemy.actor.lib.VectorAssembler

On each firing, read exactly one token from each channel of the input port and assemble the tokens into a DoubleMatrixToken with one column. The DoubleMatrixToken is sent to the output port. If there is no input token at any channel of the input port, then prefire() will return false. Note that the elements in the vector are not copied.

For sequential domains like SDF, the combination of a Commutator and domains.sdf.lib.DoubleToMatrix is equivalent to this actor. However, that combination will not work in CT, so we need this actor.

Author(s): Jie Liu, Elaine Cheong
Version:$Id: VectorAssembler.java,v 1.26 2005/10/28 20:15:10 cxh Exp $
Pt.Proposed Rating:Yellow (celaine)
Pt.Accepted Rating:Yellow (celaine)