|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.actor.gui.MoMLApplication
ptolemy.vergil.VergilApplication
This application opens run control panels for models specified on the command line.
The exact facilities that are available are determined by an optional command line argument that names a directory in ptolemy/configs that contains a configuration.xml file. For example, if we call vergil -ptiny, then we will use ptolemy/configs/ptiny/configuration.xml and ptolemy/configs/ptiny/intro.htm. The default configuration is ptolemy/configs/full/configuration.xml, which is loaded before any other command-line arguments are processed.
This application also takes an optional command line argument pair
-conf configurationFile.xml that names a configuration
to be read. For example,
$PTII/bin/vergil -conf ptolemy/configs/ptiny/configuration.xmland
$PTII/bin/vergil -ptinyare equivalent
If there are no command-line arguments at all, then the configuration file is augmented by the MoML file ptolemy/configs/vergilWelcomeWindow.xml.
ModelFrame,
RunTableau,
PtExecuteApplication
| Red (eal) |
| Yellow (eal) |
| Field Summary | |
protected static java.lang.String[][] |
_commandOptions
The command-line options that take arguments. |
| Fields inherited from class ptolemy.actor.gui.MoMLApplication |
_basePath, _commandFlags, _commandTemplate, _config, _parser, _test |
| Constructor Summary | |
VergilApplication(java.lang.String[] args)
Parse the specified command-line arguments, creating models and frames to interact with them. |
|
VergilApplication(java.lang.String basePath,
java.lang.String[] args)
Parse the specified command-line arguments, creating models and frames to interact with them. |
|
| Method Summary | |
protected Configuration |
_createDefaultConfiguration()
Return a default Configuration. |
protected Configuration |
_createEmptyConfiguration()
Return a default Configuration to use when there are no command-line arguments, which in this case is given by the default configuration augmented by the MoML file _basePath/vergilWelcomeWindow.xml. |
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 a new instance of this application, passing it the command-line arguments. |
static void |
openLibrary(Configuration configuration,
java.io.File file)
Open the MoML file at the given location as a new library in the actor library for this application. |
| Methods inherited from class ptolemy.actor.gui.MoMLApplication |
_configurationUsage, _parseArg, _readConfiguration, specToURL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String[][] _commandOptions
| Constructor Detail |
public VergilApplication(java.lang.String[] args)
throws java.lang.Exception
args - The command-line arguments.
java.lang.Exception - If command line arguments have problems.
public VergilApplication(java.lang.String basePath,
java.lang.String[] args)
throws java.lang.Exception
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.
java.lang.Exception - If command line arguments have problems.| Method Detail |
public static void main(java.lang.String[] args)
args - The command-line arguments.
public static void openLibrary(Configuration configuration,
java.io.File file)
throws java.lang.Exception
java.lang.Exception
protected Configuration _createDefaultConfiguration()
throws java.lang.Exception
StringUtilities.preferencesDirectory()
If the configuration contains a top level Parameter named
_hideUserLibrary, then we do not open the user library.
_createDefaultConfiguration in class MoMLApplicationjava.lang.Exception - If the configuration cannot be opened.
protected Configuration _createEmptyConfiguration()
throws java.lang.Exception
_createEmptyConfiguration in class MoMLApplicationjava.lang.Exception - If the configuration cannot be opened.
protected void _parseArgs(java.lang.String[] args)
throws java.lang.Exception
_parseArgs in class MoMLApplicationjava.lang.Exception - If an argument is not understood or triggers
an error.protected java.lang.String _usage()
_usage in class MoMLApplication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||