ptolemy.actor.gui
Class MoMLApplication
java.lang.Object
ptolemy.actor.gui.ConfigurationApplication
ptolemy.actor.gui.MoMLApplication
- All Implemented Interfaces:
- ExecutionListener
- Direct Known Subclasses:
- PtExecuteApplication, PtolemyApplication, VergilApplication
public class MoMLApplication
- extends ConfigurationApplication
An application that sets the look and feel to the native look
and feel and then reads one or more
files specified on the command line, or instantiates one or
more Java classes specified by the -class option.
This class sets the look and feel of the user interface (UI) to
the native look and feel. Thus, this class invokes Java's user
interface code which means that this class should be run in an
environment that has a display. To run in a environment
that has no display, see the Configuration
parent class.
For complete usage, see the Configuration
parent class.
- Since:
- Ptolemy II 0.4
- Version:
- $Id: MoMLApplication.java 54721 2009-06-26 22:32:23Z cxh $
- Author:
- Edward A. Lee and Steve Neuendorffer, Contributor: Christopher Hylands
- See Also:
Configuration
- Accepted Rating:
- Proposed Rating:
Fields inherited from class ptolemy.actor.gui.ConfigurationApplication |
_basePath, _commandFlagsWithDescriptions, _commandOptions, _commandTemplate, _configuration, _exit, _parser, _printPDF, _run, _statistics, _test |
Constructor Summary |
MoMLApplication(java.lang.String[] args)
Parse the specified command-line arguments, instanting classes
and reading files that are specified. |
MoMLApplication(java.lang.String basePath,
java.lang.String[] args)
Parse the specified command-line arguments, instanting classes
and reading files that are specified. |
Methods inherited from class ptolemy.actor.gui.ConfigurationApplication |
_configurationUsage, _configurationUsage, _createDefaultConfiguration, _createEmptyConfiguration, _openModel, _openModel, _parseArg, _parseArgs, _printPDF, _readConfiguration, _usage, executionError, executionFinished, main, managerStateChanged, models, readConfiguration, runModels, specToURL, throwArgsException, waitForFinish |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoMLApplication
public MoMLApplication(java.lang.String[] args)
throws java.lang.Exception
- Parse the specified command-line arguments, instanting classes
and reading files that are specified.
- Parameters:
args
- The command-line arguments.
- Throws:
java.lang.Exception
- If command line arguments have problems.
MoMLApplication
public MoMLApplication(java.lang.String basePath,
java.lang.String[] args)
throws java.lang.Exception
- Parse the specified command-line arguments, instanting classes
and reading files that are specified.
- Parameters:
basePath
- The basePath to look for configurations
in, usually "ptolemy/configs", but other tools might
have other configurations in other directoriesargs
- The command-line arguments.
- Throws:
java.lang.Exception
- If command line arguments have problems.
_initializeApplication
protected void _initializeApplication()
- Set the look and feel to the native look and feel.
This method is called by early in the constructor,
so the object may not be completely constructed, so
derived classes should not access fields from a
parent class.
- Overrides:
_initializeApplication
in class ConfigurationApplication