Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / org / uwi / SimThread.js
index 6834fd0..cab1f82 100644 (file)
@@ -1,45 +1,45 @@
-Clazz.declarePackage ("org.uwi");\r
-Clazz.load (["swingjs.JSThread"], "org.uwi.SimThread", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.boltzmann = null;\r
-Clazz.instantialize (this, arguments);\r
-}, org.uwi, "SimThread", swingjs.JSThread);\r
-Clazz.makeConstructor (c$, \r
-function (boltzmann) {\r
-Clazz.superConstructor (this, org.uwi.SimThread, [null, "BoltzmannThread"]);\r
-this.boltzmann = boltzmann;\r
-}, "org.uwi.Boltzmann");\r
-Clazz.overrideMethod (c$, "run", \r
-function () {\r
-this.run1 (0);\r
-});\r
-Clazz.overrideMethod (c$, "run1", \r
-function (state) {\r
-while (!Thread.interrupted ()) {\r
-try {\r
-switch (state) {\r
-case 0:\r
-this.boltzmann.sjs_initSimulation ();\r
-state = 1;\r
-continue;\r
-case 1:\r
-var repainted = this.boltzmann.sjs_checkRepaint ();\r
-if (!this.boltzmann.sjs_loopSimulation ()) {\r
-state = 2;\r
-continue;\r
-}if (repainted && this.sleepAndReturn (0, state)) return;\r
-break;\r
-case 2:\r
-this.boltzmann.sjs_finalizeGraph ();\r
-return;\r
-}\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-state = 2;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}\r
-}, "~N");\r
-});\r
+Clazz.declarePackage ("org.uwi");
+Clazz.load (["swingjs.JSThread"], "org.uwi.SimThread", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.boltzmann = null;
+Clazz.instantialize (this, arguments);
+}, org.uwi, "SimThread", swingjs.JSThread);
+Clazz.makeConstructor (c$, 
+function (boltzmann) {
+Clazz.superConstructor (this, org.uwi.SimThread, [null, "BoltzmannThread"]);
+this.boltzmann = boltzmann;
+}, "org.uwi.Boltzmann");
+Clazz.overrideMethod (c$, "run", 
+function () {
+this.run1 (0);
+});
+Clazz.overrideMethod (c$, "run1", 
+function (state) {
+while (!Thread.interrupted ()) {
+try {
+switch (state) {
+case 0:
+this.boltzmann.sjs_initSimulation ();
+state = 1;
+continue;
+case 1:
+var repainted = this.boltzmann.sjs_checkRepaint ();
+if (!this.boltzmann.sjs_loopSimulation ()) {
+state = 2;
+continue;
+}if (repainted && this.sleepAndReturn (0, state)) return;
+break;
+case 2:
+this.boltzmann.sjs_finalizeGraph ();
+return;
+}
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+state = 2;
+} else {
+throw e;
+}
+}
+}
+}, "~N");
+});