[kepler-dev] Question on linking two multiports
Ilkay Altintas
altintas at sdsc.edu
Fri May 4 16:45:07 PDT 2007
Norbert, Christopher,
Thanks for the tips. They might be a quick hack solution for what I
would like to do, but I'm afraid it is not dynamic enough. (If I
understood it correctly.)
I'm trying to get data from a sensor dat logger and send the channel
data through a multiport. So the width of the link will change each
time I access to the data logger server dynamically.
I tried to set it up in the actor code, but of course it is not the
port which has the width so I couldn't set it up from the port.
So maybe I can get the relations the actor is linked to at runtime
and set the width of that relation. Do you think this would choke?
Thanks!
-ilkay
On May 4, 2007, at 12:27 PM, Christopher Brooks wrote:
> Another trick is to place a relation between the two, connect
> the relation to either port, then right click on the relation and set
> the width. The width will be displayed numerically next to the
> relation.
>
> This called a bus relation, it was introduced with this change
> to ptolemy/vergil/kernel/RelationController.java:
>> revision 1.23
>> date: 2005/06/27 23:01:56; author: eal; state: Exp; lines: +32 -3
>> Display bus relations better.
>
> This change is present in Ptolemy II 6.0. I'm not sure about 5.0
>
> See also
> http://www.mail-archive.com/ptolemy-
> hackers at bennett.eecs.berkeley.edu/msg00271.html
>
> I'm not sure why we don't display the width of links. It could be
> because links are not first class objects? We can set the width of
> a link to values other than 1, but there is no obvious change. I
> believe Edward had a fix for this, but it was lost.
>
> _Christopher
>
> Norbert writes:
> --------
>
> Hi Ilkay,
>
> Yes, there is. You should set the single link's width to the
> desired
> number. I am not sure if current kepler allows you to double
> click on a
> link, but you can edit the xml file and edit the width
> property's value in
>
> <relation name="relation"
> class="ptolemy.actor.TypedIORelation">
> <property name="width"
> class="ptolemy.data.expr.Parameter" value="2"
>>
> </property>
> </relation>
>
> of the given relation/link.
>
> Best regards
> Norbert
>
>
> On Fri, 4 May 2007, Ilkay Altintas wrote:
>
>> Hi Hackers,
>>
>> Is there a way to send a group of data channels from a multiport to
>> another multiport in a single relation, i.e., without having to
>> create multiple links between them?
>>
>> Thanks on advance,
>> -ilkay
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/
>> kepler-dev
>>
>
> Norbert Podhorszki
> ------------------------------------
> University of California, Davis
> Department of Computer Science
> 1 Shields Ave, 2236 Kemper Hall
> Davis, CA 95616
> (530) 752-5076
> pnorbert at cs.ucdavis.edu
> ----------------------------------
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/
> kepler-dev
> --------
--
Ilkay ALTINTAS
Lab Director, Scientific Workflow Automation Technologies (SWAT)
San Diego Supercomputer Center(SDSC), UCSD
9500 Gilman Drive, MC: 0505 La Jolla, CA 92093-0505
phone: (858) 822-5453 fax: (858) 534-8303
web: http://users.sdsc.edu/~altintas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20070504/40f60eef/attachment.html>
More information about the Kepler-dev
mailing list