1 Clazz.declarePackage ("org.uwi");
\r
2 Clazz.load (["swingjs.JSThread"], "org.uwi.SimThread", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.boltzmann = null;
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, org.uwi, "SimThread", swingjs.JSThread);
\r
7 Clazz.makeConstructor (c$,
\r
8 function (boltzmann) {
\r
9 Clazz.superConstructor (this, org.uwi.SimThread, [null, "BoltzmannThread"]);
\r
10 this.boltzmann = boltzmann;
\r
11 }, "org.uwi.Boltzmann");
\r
12 Clazz.overrideMethod (c$, "run",
\r
16 Clazz.overrideMethod (c$, "run1",
\r
18 while (!Thread.interrupted ()) {
\r
22 this.boltzmann.sjs_initSimulation ();
\r
26 var repainted = this.boltzmann.sjs_checkRepaint ();
\r
27 if (!this.boltzmann.sjs_loopSimulation ()) {
\r
30 }if (repainted && this.sleepAndReturn (0, state)) return;
\r
33 this.boltzmann.sjs_finalizeGraph ();
\r
37 if (Clazz.exceptionOf (e, Exception)) {
\r