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/runConfiguration.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/ptexecute -conf ptolemy/configs/full/configuration.xml ../../domains/sdf/demo/Butterfly/Butterfly.xmland
$PTII/bin/ptexecute -full ../../domains/sdf/demo/Butterfly/Butterfly.xmlare equivalent
If no configuration is specified on the command line, then the MoML file ptolemy/configs/runConfiguration.xml is loaded before other command line arguments are processed.
If one of the command-line arguments is -exit, then System.exit() is called when all the models are finished running. System.exit() returns 0 if all the models finished without throwing an exception, otherwise it returns an integer that represents the number of models that threw an exception. The main() method calls System.exit() as well and returns an integer that represents the number of models that threw an exception.
If there are no command-line arguments at all, then this class does nothing.
This class will bring up the GUI and usually requires access to a display. The {@link ptolemy.actor.gui.MoMLSimpleApplication}class will run models in a non-graphical context. @author Edward A. Lee, Steve Neuendorffer Christopher Hylands @version $Id: PtExecuteApplication.java,v 1.62 2007/12/07 06:24:51 cxh Exp $ @since Ptolemy II 1.0 @Pt.ProposedRating Yellow (eal) @Pt.AcceptedRating Red (eal) @see ModelFrame @see RunTableau
|
|