diff --git a/README.md b/README.md index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a97654a2a7a465a76953641b5b89953b474aab30 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,49 @@ +# SPAS + +## Purpose + +This program is used for modelling the flow rate through bronchial to pulmonary (arterial) shunts (BPS). A synonym is systemic to pulmonary arterial shunt (SPAS). The modelling parameters can be obtained from angiograms. + +## Installation + +1. If not already present, install a java runtime environment (JRE). SPAS was tested with the version by [ORACLE](https://www.java.com/en/download/) and with the open source alternative [Kaffee](https://github.com/kaffe/kaffe). + +2. Download the java archive [SPAS.jar](https://git.fh-muenster.de/pv238554/spas/-/blob/dac96fe1112e81ce34b0f65e1b69d8f89f7b9857/build/SPAS.jar). + +3. Open a terminal and execute: +``` +java -jar JPIV.jar +``` + +## Usage + +1. In the modelling frame, repeatedly click on the white tiles to select either + +- a bronchial vessel section, +- a healthy side branch, or +- a bronchial to pulmonary shunt (BPS). + +2. Define length and diameter for bronchial vessels and BPS or just the root diameter for healthy branches. + +3. Combine symbols until you end up with a network like shown in the figure. + + + +4. Finally hit the button »Berechnung starten« to calculate the flow rates. The results are displayed in the second line of each model element. + +## Working with the source + +If you want to alter the source code, fork this repository. + +Compile: + +``` +javac -d ./build/ ./src/SPAS/*.java +``` + +Bundle the jar-archive: + +``` +cd build +jar -cvfe SPAS.jar SPAS/JFrame ./ +``` diff --git a/dist/SPAS.jar b/build/SPAS.jar similarity index 61% rename from dist/SPAS.jar rename to build/SPAS.jar index 920c7aa6d099447dc1f1603697412848e19f8c24..37d91f4573bd0cd0e912b5ca1d65ec4a227ea8a6 100644 Binary files a/dist/SPAS.jar and b/build/SPAS.jar differ diff --git a/build/SPAS/JFrame.class b/build/SPAS/JFrame.class index 0eead6eb70e1776afe251343f275d32a482e7103..462a9d784661b7ed698873f7d9dc0762df5e6151 100644 Binary files a/build/SPAS/JFrame.class and b/build/SPAS/JFrame.class differ diff --git a/public/html/Kapitel_1_1.html b/public/html/Kapitel_1_1.html index 29f5835cd84ce6205127fc136218b0f31647fa20..d3f2d12098b5ed2dd36e5e2fce797119eecfab60 100644 --- a/public/html/Kapitel_1_1.html +++ b/public/html/Kapitel_1_1.html @@ -10,7 +10,7 @@ <a href="Kapitel_1_2.html">weiter</a> <h3>1.1 Starten des Programms</h3> <p> - Das Programm SPAS wurde in der Programmiersprache Java geschrieben. SPAS kann daher innerhalb jedes gängigen Betriebssystems ausgeführt werden, wenn eine Java-Laufzeitumgebung (Java-Runtime-Environment, JRE) vorhanden ist. Viele Betriebssysteme werden bereits mit einer integrierten JRE ausgeliefert. Auf den Webseiten der Firma Sun (http://java.com) kann die aktuelle Version kostenlos heruntergeladen werden. + Das Programm SPAS wurde in der Programmiersprache Java geschrieben. SPAS kann daher innerhalb jedes gängigen Betriebssystems ausgeführt werden, wenn eine Java-Laufzeitumgebung (Java-Runtime-Environment, JRE) vorhanden ist. Viele Betriebssysteme werden bereits mit einer integrierten JRE ausgeliefert. Auf den Webseiten der ORACLE (http://java.com) kann die aktuelle Version kostenlos heruntergeladen werden. </p> <a href="../Hilfe.html">zurück</a> <a href="Kapitel_1_2.html">weiter</a> diff --git a/src/SPAS/JFrame.java b/src/SPAS/JFrame.java index 6ab282e9e3cbf5facaf86f30e5dc9f6aa8a2af53..2b713b1161cba3154b2c6fa2f654e78ef8513883 100644 --- a/src/SPAS/JFrame.java +++ b/src/SPAS/JFrame.java @@ -3622,7 +3622,7 @@ implements Printable { "Strömungslehre der Universität Essen (Prof. Dr.-Ing. F. Peters)\n" + "durchgeführt.\n\n" + "Autor: Peter Vennemann\n\n" + - "Information: http://www.spas.vennemann-online.de\n\n", + "Information: https://fh.ms/spas\n\n", "über das Programm",JOptionPane.INFORMATION_MESSAGE); } @@ -3752,7 +3752,7 @@ implements Printable { private void starteHilfe() { try { String s = null; - s = "http://www.spas.vennemann-online.de/Hilfe.html"; + s = "https://spas-c1571b.fh-muenster.io/Hilfe.html"; URL url = new URL(s); javax.swing.JFrame f = new javax.swing.JFrame("Dokumentation zu SPAS 1.0"); java.awt.event.WindowListener wL =