From 597701aaa58bae53f590756804fc1118215deeaa Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 16 Mar 2022 10:14:55 +0100 Subject: [PATCH 1/3] Update diagrams after superviser feedback --- documentation/classDiagram.puml | 2 -- documentation/domainModel.puml | 13 ++++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/documentation/classDiagram.puml b/documentation/classDiagram.puml index 523ffcc..2c3deaa 100644 --- a/documentation/classDiagram.puml +++ b/documentation/classDiagram.puml @@ -7,12 +7,10 @@ class Match { *match_id: Integer tournament_id: Integer team_ids: Integer[] - scores: Integer[] winner_id: Integer tier: Integer Match constructor(tournament_id: Integer, team_ids: Integer[]) - void setScore(team_id: Integer, score: Integer) void setWinner(winner_id: Integer) } class Team { diff --git a/documentation/domainModel.puml b/documentation/domainModel.puml index 1d96e42..b56c823 100644 --- a/documentation/domainModel.puml +++ b/documentation/domainModel.puml @@ -5,9 +5,9 @@ class Match { *match_id: Integer Tournament Teams - Scores Winner } + class Team { *team_id Name @@ -15,6 +15,7 @@ class Team { Players Matches } + class Player { *player_id Name @@ -37,10 +38,12 @@ class Administrator { Manager-status } -Team "2..*" -> "1..*" Tournament : "Plays in" -Tournament "1" --> "1..*" Match : contains -Player "1..*" --> "1..1" Team : "Belongs to" -Team "2..2" --> "1..*" Match : "Competes in" +Team "2..*" - "1..*" Tournament : "Plays in" +Tournament "1" -- "1..*" Match : contains +Player "1..*" -- "1..1" Team : "Belongs to" +Team "2..2" -- "1..*" Match : "Competes in" +Administrator "1..*" -- "0..*" Tournament : "Manages" +Administrator "1..*" -- "0..*" Team : "Manages" @enduml \ No newline at end of file From f61c5d4bf9c9f091bf45f229f2d3f66fdbbe0344 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 16 Mar 2022 10:28:38 +0100 Subject: [PATCH 2/3] Update diagrams after superviser feedback --- documentation/domainModel.puml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/documentation/domainModel.puml b/documentation/domainModel.puml index b56c823..512d09d 100644 --- a/documentation/domainModel.puml +++ b/documentation/domainModel.puml @@ -38,6 +38,10 @@ class Administrator { Manager-status } +class User { + +} + Team "2..*" - "1..*" Tournament : "Plays in" Tournament "1" -- "1..*" Match : contains Player "1..*" -- "1..1" Team : "Belongs to" @@ -45,5 +49,5 @@ Team "2..2" -- "1..*" Match : "Competes in" Administrator "1..*" -- "0..*" Tournament : "Manages" Administrator "1..*" -- "0..*" Team : "Manages" - +User "0..*" --> "0..*" Tournament : "View overview" @enduml \ No newline at end of file From afcd207dec87ca071b41c68537746d84ca89fe46 Mon Sep 17 00:00:00 2001 From: Jonas Haugland Date: Wed, 16 Mar 2022 10:45:07 +0100 Subject: [PATCH 3/3] Minor syntax fix --- documentation/useCaseDiagram.puml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/useCaseDiagram.puml b/documentation/useCaseDiagram.puml index 0d15652..c9e808a 100644 --- a/documentation/useCaseDiagram.puml +++ b/documentation/useCaseDiagram.puml @@ -3,7 +3,7 @@ title Tournament System - Group 1 skinparam actorStyle awesome package Administrators { - :Manager: as mgr + actor Manager as mgr actor Admin as adm note "Manager extends admin" as MgrNote @@ -33,5 +33,5 @@ adm --> TouCreateT adm --> TouEdit adm --> TouView -p1 --> TouView +p1 ---> TouView @enduml \ No newline at end of file