
ArrayToSequence |
ptolemy.domains.sdf.lib.ArrayToSequence |
This actor reads an array at the input and writes the array elements
as a sequence to the output. The parameter arrayLength can be
used to specify the length of arrays that the actor will accept.
If the enforceArrayLength parameter true, then if an input
array does not match arrayLength, 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 enforceArrayLength
parameter can be set to false, in which case the arrayLength
parameter will be ignored.
This actor is polymorphic. It can accept ArrayTokens with any element
type and send out tokens corresponding to that type.
Author(s): Yuhong Xiong
Version:$Id: ArrayToSequence.java,v 1.49 2005/07/08 19:58:42 cxh Exp $
Pt.Proposed Rating:Yellow (yuhong)
Pt.Accepted Rating:Yellow (neuendor)
arrayLength
The size of the input array. This is an integer that defaults
to 1.
enforceArrayLength
If true, then enforce the arrayLength parameter by
throwing an exception if it is violated. This is a boolean
that defaults to true.