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