Skip to content
Snippets Groups Projects
Commit 234ff29c authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Merge branch 'master' into 'master'

# Conflicts:
#   src/main/java/projekt/enigma/App.java
parents 217ae4b1 6b231cea
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ import java.io.IOException;
/**
* JavaFX App
* Startklasse fuer JavaFX Application, durch die Erweiterung um die Klasse Application.
* Baut die Benutzeroberflaeche in ihren Grundstrukturen auf.
*/
public class App extends Application {
......
This diff is collapsed.
......@@ -10,9 +10,9 @@ public class Main {
public static void main(String[] args) throws SQLException {
Thread app = new Thread(new ThreadApp());
// Thread funk = new Thread(new ThreadFunkraum());
Thread funk = new Thread(new ThreadFunkraum());
app.start();
// funk.start();
funk.start();
}
}
......@@ -2,14 +2,18 @@ package projekt.enigma.threads;
import projekt.enigma.App;
import java.sql.SQLException;
/**
* Thread fuer die Benutzeroberflaeche, wird durch das Interface Runnable erweitert
*/
public class ThreadApp implements Runnable {
private String[] args;
/**
* Ueberschriebene Funktion - fuehrt die Klasse App aus
*/
@Override
public void run() {
System.out.println("ThreadApp" + Thread.currentThread());
System.out.println("ThreadApp " + Thread.currentThread());
App app = new App();
app.main(args);
......
package projekt.enigma.threads;
import org.apache.http.HttpException;
import projekt.enigma.model.Codierer;
import projekt.enigma.model.Funkraum;
import java.io.IOException;
/**
* Thread fuer den Funkraum, wird durch das Interface Runnable erweitert
*/
public class ThreadFunkraum implements Runnable {
String kenngruppe = new Codierer().getKenngruppe();
// String funkspruch;
/**
* Ueberschriebene Funktion - fuehrt die Klasse Funkraum aus und startet
*/
@Override
public void run() {
Funkraum funkraum = new Funkraum();
System.out.println("Threadfunkraum" + Thread.currentThread());
System.out.println("Threadfunkraum" + Thread.currentThread());
funkraum.empfangeFunkspruch(kenngruppe);
// try {
// funkraum.sendeFunkspruch(funkspruch, kenngruppe);
// } catch (HttpException he) {
// System.err.println("Error");
// } catch (IOException io) {
// System.err.println("Error");
// }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment