Assuming toplevel is a NamedObj referring to the top-level
of your model, you can do something like:

  String moml = "<property name=\"parameterName\" value=\"newValue\"/>";
  ChangeRequest request = new MoMLChangeRequest(moml, ...);
  toplevel.requestChange(request);


Hope this helps.
Edward


josu jugo wrote:
Hi

I am trying to call ptolemy from another java program and I want to change parameters defined in the moml file from this java application.

Any in the list knows a procedure valid for this purpose?

Thanks

josu

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: ptolemy-hackers-requ...@ptolemy.eecs.berkeley.edu
begin:vcard
fn:Edward A. Lee
n:Lee;Edward A.
org:UC Berkeley;EECS
adr:;;545Q Cory Hall;Berkeley;CA;94720-1770;USA
email;internet:e...@eecs.berkeley.edu
title:Robert S. Pepper Distinguished Professor
tel;work:+1-510-643-3728
tel;fax:+1-510-642-5745
x-mozilla-html:FALSE
url:http://www.eecs.berkeley.edu/Faculty/Homepages/lee.html
version:2.1
end:vcard

Reply via email to