Yes, as Professor Lee stated, we use non-graphical tests in the nightly build, see $PTII/doc/coding/testing.htm or http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII2.0/ptII2.0.1/doc/coding/testing.htm
There are various ways to invoke Ptolemy II: Bring up the block diagram editor: $PTII/bin/vergil ptolemy/actor/lib/test/auto/Clock.xml Bring up just the run control panel: $PTII/bin/ptolemy ptolemy/actor/lib/test/auto/Clock.xml Invoke a model without invoking the run control panel $PTII/bin/ptexecute ptolemy/actor/lib/test/auto/Clock.xml Note that ptexecute runs actor.gui.PtExecuteApplication and it might end up invoking swing anyway Invoke the model without invoking the UI at all $PTII/bin/ptinvoke ptolemy.actor.gui.MoMLSimpleApplication ptolemy/actor/lib/test/auto/Clock.xml The above command line works remotely and does not require Swing. The above scripts are symbolic links to $PTII/bin/ptinvoke, which is created by configure from $PTII/bin/ptinvoke.in. Part of the nightly build is to run non-graphical models. These models are in the test/auto directories, for example ptolemy/actor/lib/test/auto The test suite uses MoMLSimpleApplication to run these tests. We have tried hard to support non-graphical models. I think that in Ptolemy II 2.0.1 the, TM domain and Modal Models might not work without a graphical head. One issue is that calling swing classes tend to initialize the graphical display, even if the called class does not actually do anything on the screen. The way to diagnose this sort of problem is to add the -verbose command line argument to the java command and see what classes are loaded when - often a Ptolemy class will be loaded and the the offending swing class will be loaded. -Christopher -------- Is it possible to disable the Ptolemy II's use of the java GUI frame work? By profiling a run (ptexecute) I found that Ptolemy spends about half of it s time in "sun.awt.motif.MToolkit.run" on a x86 Linux box. It's also annoying that Ptolemy needs X when you run simulations on remote machines. Kind regards Hans Henrik Happe --------------------------------------------------------------------------- - Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED] -------- ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]