|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.copernicus.java.TestApplication
public class TestApplication
A simple application that reads in a .xml file as a command line argument and runs it. This is similar to MoMLSimpleApplication, but forces the number of iterations to be 100000. This makes for good comparison with generated code since it reduces the relative affect of initialization differences between Ptolemy II and the generated code.
Red (eal) |
Red (cxh) |
Field Summary | |
---|---|
protected static long |
_parseStartTime
The time that creating the model started |
Constructor Summary | |
---|---|
TestApplication(java.lang.String xmlFilename)
Parse the xml file and run it. |
Method Summary | |
---|---|
void |
changeExecuted(ChangeRequest change)
React to a change request has been successfully executed by doing nothing. |
void |
changeFailed(ChangeRequest change,
java.lang.Exception exception)
React to a change request that has resulted in an exception. |
static void |
main(java.lang.String[] args)
Create an instance of a single model and run it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static long _parseStartTime
Constructor Detail |
---|
public TestApplication(java.lang.String xmlFilename) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void changeExecuted(ChangeRequest change)
changeExecuted
in interface ChangeListener
change
- The change that has been executed, or null if
the change was not done via a ChangeRequest.public void changeFailed(ChangeRequest change, java.lang.Exception exception)
changeFailed
in interface ChangeListener
change
- The change that was attempted or null if
the change was not done via a ChangeRequest.exception
- The exception that resulted.public static void main(java.lang.String[] args)
args
- The command-line arguments naming the .xml file to run
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |