[kepler-dev] Reg. IF_THEN_ELSE loop

Edward A. Lee eal at eecs.berkeley.edu
Mon Mar 27 09:04:26 PST 2006


The BooleanToAnything actor can convert true/false into two
distinct strings.

Alternatively, you can control a BooleanSwitch actor and route
tokens to one of two subsystems.

A third alternative is to use the newly added Case actor,
in actor/hoc in the Ptolemy II default configuration...
I'm not sure whether this is visible in the Kepler library...

Edward

At 06:07 PM 3/26/2006, Sivagowri Swaminathan wrote:
>Hi all
>
>I have a problem implementing an if-then-else kind of workflow and would
>like to get help regarding the same.
>
>I want to implement a logic such as this:
>
>if some constant's value = x, then I need to display some message else I
>need to display some other msg.
>
>The comparator and the booleans equals actor(operator) actually outputs
>results such as true/false. how do I create an action based on the output
>from the actors?
>
>I running behind on a deadline and would like to get help on this asap.
>
>Thanx
>Siva
>
>
>_______________________________________________
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev

------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  




More information about the Kepler-dev mailing list