<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Chen,<br>
The SequenceToArray actor has a length PortParameter.<br>
ArrayToSequence does not have a length PortParameter, the length is
part of the type of the input port.<br>
However, in Ptolemy, ArrayToSequence has an enforceArrayLength
parameter.
<a class="moz-txt-link-freetext" href="http://sisyphus.eecs.berkeley.edu:8079/hudson/job/ptII/javadoc/ptolemy/domains/sdf/lib/ArrayToSequence.html">http://sisyphus.eecs.berkeley.edu:8079/hudson/job/ptII/javadoc/ptolemy/domains/sdf/lib/ArrayToSequence.html</a>
says:<br>
<br>
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
This actor reads an array at the input and writes the array
elements as a sequence to the output. The parameter <i>arrayLength</i>
can be used to specify the length of arrays that the actor will
accept. If the <i>enforceArrayLength</i> parameter true, then if
an input array does not match <i>arrayLength</i>, 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 <i>enforceArrayLength</i> parameter can be set to
false, in which case the <i>arrayLength</i> parameter will be
ignored.</blockquote>
<br>
_Christopher<br>
<br>
<div class="moz-cite-prefix">On 6/20/13 7:39 PM, Chen Zheng wrote:<br>
</div>
<blockquote
cite="mid:CAG-v80APy4Du0D-oJiz6NY1hRVNB-_Npc6p58OTujhqJ+Yjn3A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Hi there,</div>
<div style=""><br>
</div>
<div style="">Now I am using the array-to-sequence actor to
process an array contains several string items. How can I
specify the arrayLength argument in this actor automatically?</div>
<div style=""><br>
</div>
<div style="">I tried to add a new input port and pass the
length from array-length actor, but this array-to-sequence
actor does not work in this way.</div>
<div style=""><br>
</div>
<div style="">Any suggestion?</div>
<div style=""><br>
</div>
<div style="">Kind regards</div>
<div style="">Chen</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kepler-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
Academic Program Manager & Software Engineer US Mail: 337 Cory Hall
CHESS/iCyPhy/Ptolemy/TerraSwarm Berkeley, CA 94720-1774
<a class="moz-txt-link-abbreviated" href="mailto:cxh@eecs.berkeley.edu">cxh@eecs.berkeley.edu</a>, 707.332.0670 (Office: 545Q Cory)
</pre>
</body>
</html>