Package ptolemy.moml
Class MoMLSimpleTimeoutApplication
- java.lang.Object
-
- ptolemy.moml.MoMLSimpleApplication
-
- ptolemy.moml.MoMLSimpleTimeoutApplication
-
- All Implemented Interfaces:
ExecutionListener
,ChangeListener
public class MoMLSimpleTimeoutApplication extends MoMLSimpleApplication
A simple application that reads in a .xml file as a command line argument, runs it and terminates the run after a time out.- Since:
- Ptolemy II 10.0
- Version:
- $Id: MoMLSimpleTimeoutApplication.java 61755 2011-08-08 20:17:11Z cxh $
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (eal)
- Pt.ProposedRating:
- Red (cxh)
-
-
Field Summary
-
Fields inherited from class ptolemy.moml.MoMLSimpleApplication
_activeCount, _executionFinishedOrError, _manager, _parser, _sawThrowable, _toplevel, _workspace
-
-
Constructor Summary
Constructors Constructor Description MoMLSimpleTimeoutApplication(java.lang.String xmlFileName)
Parse the xml file and run it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
waitForFinish()
Wait for all executing runs to finish or 5 seconds to pass, then return.-
Methods inherited from class ptolemy.moml.MoMLSimpleApplication
changeExecuted, changeFailed, cleanup, closeVertx, executionError, executionFinished, main, managerStateChanged, rerun, toplevel
-
-
-
-
Constructor Detail
-
MoMLSimpleTimeoutApplication
public MoMLSimpleTimeoutApplication(java.lang.String xmlFileName) throws java.lang.Throwable
Parse the xml file and run it. After 5 seconds, call wrapup on the manager.- Parameters:
xmlFileName
- A string that refers to an MoML file that contains a Ptolemy II model. The string should be a relative pathname.- Throws:
java.lang.Throwable
- If there was a problem parsing or running the model.
-
-
Method Detail
-
waitForFinish
public void waitForFinish()
Wait for all executing runs to finish or 5 seconds to pass, then return.- Overrides:
waitForFinish
in classMoMLSimpleApplication
-
-