public class Rerun extends MoMLSimpleApplication
cd $PTII/ptolemy/actor/gui/test java -classpath $PTII ptolemy.actor.gui.test.Rerun ../../lib/test/auto/Sinewave.xmlTo run the model 10 times:
java -classpath $PTII ptolemy.actor.gui.test.Rerun 10 ../../lib/test/auto/Sinewave.xmlTo create a ptplot file of the times and memory:
awk '{ t[NR] = $1; m[NR] = substr($4, 0, length($4) - 1); f[NR] = substr($6, 0, length($6) - 1); } END { print "dataset: time (ms)"; for (i=1;i<=NR;i++) {print i, t[i]}; print "dataset: memory (K)"; for (i=1;i<=NR;i++) {print i, m[i]}; print "dataset: free (K)"; for (i=1;i>=NR;i++) {print i, f[i]}; }' /tmp/t > /tmp/t.plt
_activeCount, _executionFinishedOrError, _manager, _parser, _sawThrowable, _toplevel, _workspace
Constructor and Description |
---|
Rerun(java.lang.String xmlFileName)
Parse the xml file and run it.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Create an instance of a single model and run it.
|
changeExecuted, changeFailed, cleanup, closeVertx, executionError, executionFinished, managerStateChanged, rerun, toplevel, waitForFinish
public Rerun(java.lang.String xmlFileName) throws java.lang.Throwable
xmlFileName
- A string that refers to an MoML file that
contains a Ptolemy II model. The string should be
a relative pathname.java.lang.Throwable
- If there was a problem parsing
or running the model.public static void main(java.lang.String[] args)
args
- The command-line arguments naming the .xml file to run