At 10:45 AM 3/12/2001 -0600, Sriram Narasimhan wrote:
>Hi ,
>
>I am trying to model a hybrid system in ptolemy. Since the number of modes is
>quite high, I don't want to enumerate all the modes. Instead I would like to
>create a new mode only when the transition to that mode starts firing. I am
>relatively new to ptolemy hacking, so I would appreciate any and all the help
>I can get.
>
>Sriram
>Vanderbilt University

This is an interesting question...

Ptolemy II supports model mutations during execution, so it is
certainly possible to do this.  However, there is no built-in
infrastructure that does it.  You could write Java code in
an actor that does it...  Ideally, you could construct
a ChangeRequest and queue that with any object in the hierarchy.
But I'm not sure this will yield the timing you require.

We are currently investigating implementations of higher-order
functions, which would behave in a similar way, constructing
submodels on the fly.  However, there is nothing released yet.
If you are coming to the miniconference next week, you might
want to talk to Jorn Janneck and Xiaojun Liu about this issue.

Edward Lee



>----------------------------------------------------------------------------
>Posted to the ptolemy-hackers mailing list.  Please send administrative
>mail for this list to: [EMAIL PROTECTED]

------------
Edward A. Lee, Professor
518 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0455, fax: 510-642-2739
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to