aboutsummaryrefslogtreecommitdiff
path: root/docs/formal/uml/Aktivitätsdiagram.plantuml
blob: 45a2783115b7bf5c9f626c09a44b1bf8f634ec70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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