aboutsummaryrefslogtreecommitdiff
path: root/docs/formal/uml/Aktivitätsdiagram.plantuml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/formal/uml/Aktivitätsdiagram.plantuml')
-rw-r--r--docs/formal/uml/Aktivitätsdiagram.plantuml57
1 files changed, 57 insertions, 0 deletions
diff --git a/docs/formal/uml/Aktivitätsdiagram.plantuml b/docs/formal/uml/Aktivitätsdiagram.plantuml
new file mode 100644
index 0000000..45a2783
--- /dev/null
+++ b/docs/formal/uml/Aktivitätsdiagram.plantuml
@@ -0,0 +1,57 @@
+@startuml
+!define LIGHTBLUE
+
+!includeurl https://raw.githubusercontent.com/Drakemor/RedDress-PlantUML/master/style.puml
+
+start
+
+:Flash initialiseren;
+
+if (Flash veraltet) then (Ja)
+ :Flash leeren;
+ :Flash initialiseren;
+endif
+
+partition "Netzwerk initialierung" {
+ :Access Point konfiguration laden;
+ :Station konfiguration laden;
+ :Wifi starten;
+ :mDNS einrichten;
+ if (Station Konfiguration vorhanden) then (Ja)
+ :Station modus aktivieren;
+ :Verbindung mit Netzwerk aufbauen;
+ if (Verbindung erfolgreich) then (Ja)
+ else (Nein)
+ :Access-Point+Station Modus aktivieren;
+ endif
+ else (Nein)
+ :Access-Point+Station Modus aktivieren;
+ endif
+}
+
+
+:HTTP Server initialisieren;
+
+repeat
+ if (läuft HTTP Server) then (Nein)
+ :Starte HTTP Server;
+ fork
+ fork again
+ partition "HTTP Server" {
+ repeat:Erwarte Anfrage
+ if(Existiert Route für Anfragen Pfad) then (Ja)
+ :Rufe Routen Methode auf;
+ else (Nein)
+ :Gebe einen 404 Fehler-code zurück;
+ endif
+ repeat while
+ kill
+ }
+ end merge
+ else (Ja)
+ endif
+ :Schlafe 5 Sekunden;
+repeat while
+
+
+@enduml \ No newline at end of file