Hi Josep Maria, I just created ptolemy/moml/MoMLCommandLineApplication.java, which takes command line arguments that set model parameters. MoMLCommandLineApplication.java extemds MoMLSimpleApplication.java This new code is in the Ptolemy II ptII development svn repository.
Using this within Kepler-1.0 might be a little tricky because after Kepler-1.0 was released, I moved ptolemy/actor/gui/MoMLSimpleApplication.java to ptolemy/moml/MoMLSimpleApplication.java To get ptolemy/moml/MoMLCommandLineApplication.java to work, I made some of the fields in ptolemy/moml/MoMLSimpleApplication.java public. I've left a tar file of the changes at http://ptolemy.eecs.berkeley.edu/~cxh/tmp2/moml.tgz To use this file, you would need to build Kepler-1.0 from source. Then untar these changes in the ptII/ptolemy/moml directory. Offhand, I'm not sure where that is, but you could search for MoMLParser.java, which is also located in ptII/ptolemy/moml directory. You would also need to modify src/org/kepler/loader/Kepler.java so that it invoked the new class. The line className = "ptolemy.actor.gui.MoMLSimpleApplication"; would become: className = "ptolemy.moml.MoMLCommandLineApplication"; I updated the Ptolemy II faq with a note about this, see http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#invoking%20Ptolemy%20II? I'm closing http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3529 that covers this enhancement. Let me know if you have problems getting this built, no need to cc the list . . . _Christopher Josep Maria Campanera Alsina wrote: > Well, > If that the solution, there is nothing I can do! I'll wait until next > version of Kepler for simultaneous GUI execution ! (by the way when > new version will come up?) > > But as it is said, if I run the workflow without GUI and cache it > works: OK! kepler.sh -runwf -nogui -nocache workflow.xml & > > However in that case parameters cannot be included, like -x 4 -y > "foo". I posted also this bug in the email list months ago. Chad > Berkley answered: "The problem is that headless kepler uses the > MoMLSimpleApplication which does not accept command line params. > We're going to add a bug about this and try to get it addressed soon. > I'll keep you updated." Any update regarding this problem? > > Thank you very much, > > Josep Maria, > > > 2009/2/26 Christopher Brooks <cxh at eecs.berkeley.edu>: >> Hi Josep, >> I'm just returning from vacation and catching up on my email, so >> I'm not sure if this was handled or not. >> >> There is a problem with running multiple versions of Kepler because >> of the hsqldb database. For details, see >> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2315 >> >> When you started up the second GUI, did you see a stack trace? >> >> I believe that in Kepler-1.0.0, various efforts were made to create >> shell scripts that would run commands without the GUI and without >> hsqldb, thus avoiding this issue. >> There are some instructions at >> https://dev.kepler-project.org/developers/reference/executing-kepler-from-the-command-line >> but I could not run Kepler-1.0.0 from the command line twice >> and avoid the bug. >> >> Another trick would be to run each instances of Kepler from a separate >> user account. >> >> In the devel tree, the build system is being reworked and some >> of these issues are being addressed. You could take a look at >> http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/2009-February/013822.html >> for more information. >> >> _Christopher >> >> Josep Maria Campanera Alsina wrote: >>> Dear users, >>> >>> I've launched a 3-days long workflow with the GUI that uses job >>> command actors in order to submit computational chemistry jobs to a >>> cluster computer. I've noticed that if I open a new GUI and I want to >>> launch a new workflow that run also a job submission it does not work. >>> Rapidly, the new workflow shows the wrapping up message without >>> executing the workflow. >>> >>> Why is that? How can I overcome this? I would like to run >>> simultaneously several workflows with the job submission capability. >>> Is that possible? If I launch both workflows in a non-graphical mode >>> they will run? >>> >>> Thanks a lot, >>> >>> Josep Maria Campanera, >>> >>> I'm running Kepler 1.0.0 (May 2008) under Linux (openSUSE 10.2, X86-64) >>> >>> --------------------------------------------- >>> Josep Maria Campanera Alsina >>> Professor Lector >>> Departament de Fisicoqu?mica >>> Facultat de Farm?cia >>> Universitat de Barcelona >>> Avgda Joan XXIII, s/n >>> 08028 Barcelona ? Catalonia ? Spain >>> Tel: +34 93 4035985 >>> Fax: +34 93 4035987 >>> campanera at ub.edu >>> -------------------------------------------- >>> _______________________________________________ >>> Kepler-users mailing list >>> Kepler-users at kepler-project.org >>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users >> -- >> Christopher Brooks (cxh at eecs berkeley edu) University of California >> CHESS Executive Director US Mail: 337 Cory Hall >> Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, 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 >> > > > -- Christopher Brooks (cxh at eecs berkeley edu) University of California CHESS Executive Director US Mail: 337 Cory Hall Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, 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