jni
Class VergilApplication
java.lang.Object
ptolemy.actor.gui.MoMLApplication
jni.VergilApplication
- public class VergilApplication
- extends MoMLApplication
This application opens run control panels for models specified on the
command line. The exact facilities that are available are determined
by the configuration file ptolemy/configs/vergilConfiguration.xml,
which is loaded before any command-line arguments are processed.
If there are no command-line arguments at all, then the configuration
file is augmented by the MoML file ptolemy/configs/vergilWelcomeWindow.xml.
- Since:
- Ptolemy II 1.0
- Version:
- $Id: VergilApplication.java,v 1.12 2004/04/13 02:57:19 cxh Exp $
- Author:
- Edward A. Lee and Steve Neuendorffer
- See Also:
ModelFrame,
RunTableau
- Accepted Rating:
- Proposed Rating:
|
Constructor Summary |
VergilApplication(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, which in this case is given by
the MoML file ptolemy/configs/vergilConfiguration.xml. |
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 ptolemy/configs/vergilWelcomeWindow.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VergilApplication
public VergilApplication(java.lang.String[] args)
throws java.lang.Exception
- Parse the specified command-line arguments, creating models
and frames to interact with them.
- Parameters:
args - The command-line arguments.
- Throws:
java.lang.Exception - If command line arguments have problems.
main
public static void main(java.lang.String[] args)
- Create a new instance of this application, passing it the
command-line arguments.
- Parameters:
args - The command-line arguments.
_createDefaultConfiguration
protected Configuration _createDefaultConfiguration()
throws java.lang.Exception
- Return a default Configuration, which in this case is given by
the MoML file ptolemy/configs/vergilConfiguration.xml.
- Overrides:
_createDefaultConfiguration in class MoMLApplication
- Returns:
- A default configuration.
- Throws:
java.lang.Exception - If the configuration cannot be opened.
_createEmptyConfiguration
protected Configuration _createEmptyConfiguration()
throws java.lang.Exception
- 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 ptolemy/configs/vergilWelcomeWindow.xml.
- Overrides:
_createEmptyConfiguration in class MoMLApplication
- Returns:
- A configuration for when there no command-line arguments.
- Throws:
java.lang.Exception - If the configuration cannot be opened.
_parseArgs
protected void _parseArgs(java.lang.String[] args)
throws java.lang.Exception
- Parse the command-line arguments. This overrides the base class
only to set the usage information.
- Overrides:
_parseArgs in class MoMLApplication
- Throws:
java.lang.Exception - If an argument is not understood or triggers
an error.