MatrixToSequence
ptolemy.domains.sdf.lib.MatrixToSequence

This actor unbundles a matrix into a sequence of output tokens. On each firing, it writes the elements of the array to the output as a sequence of output tokens. and writes one output matrix token with the specified number of rows and columns. If the enforceMatrixSize parameter true, then if an input matrix does not match rows and columns, then the fire() method will throw an exception. This feature is important in domains, such as SDF, that do static scheduling based on production and consumption rates. For other domains, such as DE and PN, the enforceMatrixSize parameter can be set to false, in which case the rows and columns parameters will be ignored. This actor is polymorphic. It can accept any matrix input and the output will have the type of the elements of the matrix.



Author(s): Edward Lee
Version:$Id: MatrixToSequence.java,v 1.23 2005/07/08 19:58:45 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (neuendor)




rows
The number of rows in the input. This is an integer that defaults to 1.

columns
The number of columns in the input. This is an integer that defaults to 1.

enforceMatrixSize
If true, then enforce the rows and columns parameters by throwing an exception if it is violated. This is a boolean that defaults to true.