Re: Changing parameter in ptolemy from a java application

2009-02-12 Thread Christopher Brooks

Hi Josu,
See
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#invoking%20Ptolemy%20II?

for information about how to invoke Ptolemy II from the command line
and use in command line arguments that set parameters.

_Christopher

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


--
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director  US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/TrustBerkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: ptolemy-hackers-requ...@ptolemy.eecs.berkeley.edu


Re: Changing parameter in ptolemy from a java application

2009-02-12 Thread Edward A. Lee


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