VectorDisassembler
ptolemy.actor.lib.VectorDisassembler

An actor that disassembles a DoubleMatrixToken to a multiport output.

On each firing, read one column vector (i.e. a DoubleMatrixToken with one column) from the input port and send out individual DoubleTokens to each channel of the output port. If the width of the output port (say, n) is less than the number of rows (say, m) in the input token, then the first n elements in the vector 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 class throws an exception if the input is not a column vector.

For sequential domains like SDF, the combination of domains.sdf.lib.MatrixToDouble and a Distributor 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: VectorDisassembler.java,v 1.30 2005/10/28 20:15:12 cxh Exp $
Pt.Proposed Rating:Yellow (celaine)
Pt.Accepted Rating:Yellow (celaine)