public class MoMLSimpleStatisticalApplication extends MoMLSimpleApplication
MoMLApplication sets the look and feel, which starts up Swing, so we can't use MoMLApplication for non-graphical simulations.
We implement the ChangeListener interface so that this class will get exceptions thrown by failed change requests.
Below is an example use of this class:
java -classpath $PTII ptolemy.actor.gui.MoMLSimpleStatisticalApplication -iterations 2 ../../../ptolemy/domains/sdf/demo/OrthogonalCom/OrthogonalCom.xml
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
_commandFlags
The command-line options that are either present or not.
|
protected java.lang.String[][] |
_commandOptions
The command-line options that take arguments.
|
protected java.lang.String |
_commandTemplate
The form of the command line.
|
protected static boolean |
_test
If true, then auto exit after a few seconds.
|
_activeCount, _executionFinishedOrError, _manager, _parser, _sawThrowable, _toplevel, _workspace
Constructor and Description |
---|
MoMLSimpleStatisticalApplication(java.lang.String[] args)
Parse the xml file and run it.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_parseArg(java.lang.String arg)
Parse a command-line argument.
|
protected void |
_parseArgs(java.lang.String[] args)
Parse the command-line arguments.
|
protected java.lang.String |
_usage()
Return a string summarizing the command-line arguments.
|
static void |
main(java.lang.String[] args)
Create an instance of a single model and run it.
|
changeExecuted, changeFailed, cleanup, closeVertx, executionError, executionFinished, managerStateChanged, rerun, toplevel, waitForFinish
protected java.lang.String[] _commandFlags
protected java.lang.String[][] _commandOptions
protected java.lang.String _commandTemplate
protected static boolean _test
public MoMLSimpleStatisticalApplication(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- If there was a problem parsing
or running the model.protected boolean _parseArg(java.lang.String arg) throws java.lang.Exception
arg
- The command-line argument to be parsed.java.lang.Exception
- If something goes wrong.protected void _parseArgs(java.lang.String[] args) throws java.lang.Exception
args
- The command-line arguments to be parsed.java.lang.Exception
- If an argument is not understood or triggers
an error.public static void main(java.lang.String[] args)
args
- The command-line arguments naming the .xml file to runprotected java.lang.String _usage()