From 897b9138cf22ad45bab2bb03b1a40cba0bed6370 Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Tue, 15 Mar 2022 13:05:41 +0100 Subject: [PATCH] Sequence Diagrams --- documentation/sequenceDiagramCreate.puml | 0 documentation/sequenceDiagramLogin.puml | 43 ++++++++++++++++++++++++ documentation/sequenceDiagramManage.puml | 0 3 files changed, 43 insertions(+) create mode 100644 documentation/sequenceDiagramCreate.puml create mode 100644 documentation/sequenceDiagramLogin.puml create mode 100644 documentation/sequenceDiagramManage.puml diff --git a/documentation/sequenceDiagramCreate.puml b/documentation/sequenceDiagramCreate.puml new file mode 100644 index 0000000..e69de29 diff --git a/documentation/sequenceDiagramLogin.puml b/documentation/sequenceDiagramLogin.puml new file mode 100644 index 0000000..cb8f341 --- /dev/null +++ b/documentation/sequenceDiagramLogin.puml @@ -0,0 +1,43 @@ +@startuml Asura Tournament System +Actor User #lightblue +Actor Admin #palegreen +participant Website +database Server #brown +hide footbox + +User->Website: viewTournament(Tournament) +activate User +activate Website +Website->Server: fetchTournament(Tournament) +activate Server +Server-->Website: {status: success | failure} +alt status = success +Website-->User: displayTournament(Tournament) +else status = failure +Website-->User: displayError(error) +deactivate User +end + +Admin->Website: login(username, passwd) +activate Admin +Website->Server: Login Request +Server-->Website: {status: success | failure} +deactivate Server +alt status = success +Website-->Admin: "Login Successful" +end +Website->Admin: managementOptions(manage,edit,create,delete) +' Website-->Admin: Login successful +Admin->Website: createTournament(Tournament) +Website->Server: sendInfo(Tournament) +Server-->Website: {status: success | failure} +alt status = success +Website->Server: fetchTournament(Tournament) +Server-->Website: {status: success | failure} +' deactivate Server +Website-->Admin: displayTournament(Tournament) +Admin->Website: editTournament(Tournament) +' deactivate Admin +' deactivate Website +end +@enduml \ No newline at end of file diff --git a/documentation/sequenceDiagramManage.puml b/documentation/sequenceDiagramManage.puml new file mode 100644 index 0000000..e69de29