MoMLSimpleApplication
instead.
MoMLSimpleApplication does not depend on anything in actor.gui@Deprecated public class MoMLSimpleApplication 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. For example to use this class, try:
java -classpath $PTII ptolemy.actor.gui.MoMLSimpleApplication ../../../ptolemy/domains/sdf/demo/OrthogonalCom/OrthogonalCom.xml
Red (eal) |
Red (cxh) |
_activeCount, _executionFinishedOrError, _manager, _parser, _sawThrowable, _toplevel, _workspace
Constructor and Description |
---|
MoMLSimpleApplication()
Deprecated.
A Nullary constructor is necessary so that we can extends this
base class with a subclass.
|
MoMLSimpleApplication(java.lang.String xmlFileName)
Deprecated.
Parse the xml file and run it.
|
changeExecuted, changeFailed, cleanup, executionError, executionFinished, main, managerStateChanged, rerun, waitForFinish
public MoMLSimpleApplication() throws java.lang.Exception
java.lang.Exception
- Not thrown in this base classpublic MoMLSimpleApplication(java.lang.String xmlFileName) throws java.lang.Throwable
xmlFileName
- A string that refers to an MoML file that
contains a Ptolemy II model. The string should be
a relative pathname.java.lang.Throwable
- If there was a problem parsing
or running the model.