Merge branch 'documentation' of gitlab.stud.idi.ntnu.no:felixalb/dcst1008-2022-group1 into documentation

This commit is contained in:
Kristoffer Juelsenn 2022-03-16 11:23:57 +01:00
commit a09d4c342c
3 changed files with 14 additions and 9 deletions

View File

@ -7,12 +7,10 @@ class Match {
*match_id: Integer *match_id: Integer
tournament_id: Integer tournament_id: Integer
team_ids: Integer[] team_ids: Integer[]
scores: Integer[]
winner_id: Integer winner_id: Integer
tier: Integer tier: Integer
Match constructor(tournament_id: Integer, team_ids: Integer[]) Match constructor(tournament_id: Integer, team_ids: Integer[])
void setScore(team_id: Integer, score: Integer)
void setWinner(winner_id: Integer) void setWinner(winner_id: Integer)
} }
class Team { class Team {

View File

@ -5,9 +5,9 @@ class Match {
*match_id: Integer *match_id: Integer
Tournament Tournament
Teams Teams
Scores
Winner Winner
} }
class Team { class Team {
*team_id *team_id
Name Name
@ -15,6 +15,7 @@ class Team {
Players Players
Matches Matches
} }
class Player { class Player {
*player_id *player_id
Name Name
@ -37,10 +38,16 @@ class Administrator {
Manager-status Manager-status
} }
Team "2..*" -> "1..*" Tournament : "Plays in" class User {
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"
User "0..*" --> "0..*" Tournament : "View overview"
@enduml @enduml

View File

@ -3,7 +3,7 @@ title Tournament System - Group 1
skinparam actorStyle awesome skinparam actorStyle awesome
package Administrators { package Administrators {
:Manager: as mgr actor Manager as mgr
actor Admin as adm actor Admin as adm
note "Manager extends admin" as MgrNote note "Manager extends admin" as MgrNote
@ -33,5 +33,5 @@ adm --> TouCreateT
adm --> TouEdit adm --> TouEdit
adm --> TouView adm --> TouView
p1 --> TouView p1 ---> TouView
@enduml @enduml