public class PtolemyApplication extends MoMLApplication
ModelFrame
,
RunTableau
ConfigurationApplication.ConfigurationFilenameFilter, ConfigurationApplication.IgnoreErrorHandler
_basePath, _commandFlagsWithDescriptions, _commandOptions, _commandTemplate, _configuration, _exit, _parser, _printPDF, _run, _run20x, _statistics, _test
Constructor and Description |
---|
PtolemyApplication(java.lang.String arg)
Parse the specified command-line arguments, creating models
and frames to interact with them.
|
PtolemyApplication(java.lang.String[] args)
Parse the specified command-line arguments, creating models
and frames to interact with them.
|
Modifier and Type | Method and Description |
---|---|
protected Configuration |
_createDefaultConfiguration()
Return a default Configuration, which in this case is given by
the MoML file ptolemy/configs/runPanelConfiguration.xml.
|
protected Configuration |
_createEmptyConfiguration()
Return a default Configuration to use when there are no command-line
arguments, which in this case is the same as the default configuration
given by _createDefaultConfiguration, but with the additional
contents of the file ptolemy/configs/runWelcomeWindow.xml.
|
protected void |
_parseArgs(java.lang.String[] args)
Parse the command-line arguments.
|
static void |
main(java.lang.String[] args)
Create a new instance of this application, passing it the
command-line arguments.
|
_initializeApplication
_configurationUsage, _configurationUsage, _openModel, _openModel, _parseArg, _printPDF, _readConfiguration, _usage, closeModelWithoutSavingOrExiting, configurationDirectories, configurationDirectoryFullOrFirst, executionError, executionFinished, getActiveCount, managerStateChanged, models, openModel, openModelOrEntity, readConfiguration, runModels, setActiveCount, specToURL, throwArgsException, waitForFinish
public PtolemyApplication(java.lang.String[] args) throws java.lang.Exception
args
- The command-line arguments.
See ConfigurationApplication
for a
description of the command-line arguments.java.lang.Exception
- If command line arguments have problems.public PtolemyApplication(java.lang.String arg) throws java.lang.Exception
arg
- The command-line argument, typically the name of
the model to open.
See ConfigurationApplication
for a
description of the command-line arguments.java.lang.Exception
- If command line arguments have problems.public static void main(java.lang.String[] args)
args
- The command-line arguments.protected Configuration _createDefaultConfiguration() throws java.lang.Exception
_createDefaultConfiguration
in class ConfigurationApplication
java.lang.Exception
- If the configuration cannot be opened.protected Configuration _createEmptyConfiguration() throws java.lang.Exception
_createEmptyConfiguration
in class ConfigurationApplication
java.lang.Exception
- If the configuration cannot be opened.protected void _parseArgs(java.lang.String[] args) throws java.lang.Exception
_parseArgs
in class ConfigurationApplication
args
- The command-line arguments to be parsed.java.lang.Exception
- If an argument is not understood or triggers
an error.