icyphy / ptII

Ptolemy II is an open-source software framework supporting experimentation with actor-oriented design.
https://ptolemy.eecs.berkeley.edu/ptolemyII
Other
99 stars 43 forks source link

Codegen should allow setting parameters from the command line #149

Open cxbrooks opened 15 years ago

cxbrooks commented 15 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#218 From: @cxbrooks Reported version: 7.1.devel CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 15 years ago

It would be nice if there was a way to set model parameters from the command line when running a codegen model.

Actually parsing the parameters could be difficult. It might be necessary to somehow mark parameters as being settable from the command line or something.

cxbrooks commented 15 years ago

We developed the ptolemy.moml.MoMLCommandLineApplication, which is a non-graphical application that reads in command-line arguments and runs a model.

We also looked in to passing command line arguments to Web Start (JNLP) files. Web Start is a standards based system used to deploy Java application in a secure manner where it is easy to update individual components. It turns out that parsing command line arguments via a URL is not permitted because the command line arguments are seen as being insecure. The workaround is to generate a .jnlp file for each invocation. We repurposed the Copernicus applet code generator to also generate JNLP files.