[kepler-users] while-like structure in Kepler
Edward A. Lee
eal at eecs.berkeley.edu
Thu Jul 26 05:58:01 PDT 2007
Interesting...
Have you looked at the Case actor? I'm not sure it's
in the Kepler library, but you can instantiate it from
its classname, ptolemy.actors.lib.hoc.Case
Edward
At 03:31 PM 7/25/2007, Emir Mahmut BAHSI wrote:
>Hi all,
>I am working on conditional structures on existing workflow managers currently. My goal was to implement if, switch and while like structure by using existing actors in Kepler. Till now I could able to implement the first two ones. I attached both of their screen shots.
>In the first example(if example) it tries to download a file. If the first source does not work, it tries the second address.
>In the second example(switch example) there are three alternative addresses for downloading a file. It tries each one sequentially to download the file. Since number of alternatives can be increased by adding actors I call this example switch.
>What I want for the next step is, I try to implement a while structure for the same scenario. In this case, I want my code to keep trying to download a file from one source if that address is not working. It is kind of weird for this example because it will cause the server to down. However it may be useful for other scenarios in which loop condition depends on an event that happens inside the loop(like while structures in C, C++, and Java). I want that while structure to be a generic task which I can use in many cases. Do you have any suggestions for that? Please feel free to ask me the unclear parts if there is any. Thanks in advance.
>Any help will be appreciated.
>Thanks in advance.
>
>
>
>Emir Mahmut Bahsi
>Research assistant
>Dept of Computer Science at LSU
>Room 231, Johnston Hall
>Louisiana State University
>Baton Rouge, LA 70803
><mailto:embahsi at cct.lsu.edu>embahsi at cct.lsu.edu
>
>
>
>Shape Yahoo! in your own image. <http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>Join our Network Research Panel today!
>
>_______________________________________________
>Kepler-users mailing list
>Kepler-users at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
------------
Edward A. Lee
Chair of EECS and Robert S. Pepper Distinguished Professor
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
More information about the Kepler-users
mailing list