Hello Ben,<br><br>Thank you for your reply. <br><br>Output of my actor is displayed using a display actor in the format I required(i.e a record token) when I do not specify port types. However if I connect my actor to a record disassembler, there is a type error. Therefore, I have to set types of the output port as a Record Token where I have specified the exact type of every element/label of the record. This solves my problem.<br>
<br><div class="gmail_quote">On Mon, Feb 8, 2010 at 7:22 AM, ben leinfelder <span dir="ltr"><<a href="mailto:leinfelder@nceas.ucsb.edu">leinfelder@nceas.ucsb.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Supriya,<br>
It looks like you've correctly identified the types you're expecting on the ports.<br>
In many cases, the runtime type checking system will 'figure out' the correct type for the ports and you won't have to explicitly set them.<br>
It's non-trivial to define the RecordToken types since they can contain wildly heterogenous content.<br>
Is your workflow running without you specifying the port types?<br>
-ben<div><div></div><div class="h5"><br>
<br>
On Feb 4, 2010, at 6:22 PM, supriya gulati wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
<br>
Hello Everyone,<br>
<br>
I am trying to understand the type system in Kepler in order to construct a typed actor but I am having a hard time. I did refer to the Ptolemy II(Vol II) document for the type system but it looks a little complex.<br>
<br>
So the problem is that I need to develop an actor which has two input ports named input and window and one output port. Following is the data on all the ports:<br>
1)Input port: {data=x, timestamps=y}<br>
2)Window port:{a,b}<br>
3)output: {Wind={a,b},aggregation={z}}<br>
<br>
So here Input port and output port has record tokens and window port is an array of two values. Data, timestamps and Wind and aggregation refers to labels in the record type. x is a scalar token, y is a double, a and b are both double, z is scalar. Also the label for aggregation can be min, max, sum etc depending on what value user selects in the parameter field.<br>

<br>
Can somebody please help me on setting the types for all the ports?<br>
-- <br>
Regards,<br>
Supriya<br></div></div>
_______________________________________________<br>
Kepler-dev mailing list<br>
<a href="mailto:Kepler-dev@kepler-project.org" target="_blank">Kepler-dev@kepler-project.org</a><br>
<a href="http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev" target="_blank">http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Supriya<br>