Removed arrays from class diagram

This commit is contained in:
Felix Albrigtsen 2022-03-16 14:08:27 +01:00
parent faa9dfc1f8
commit 7d63fc2335
1 changed files with 6 additions and 11 deletions

View File

@ -6,9 +6,10 @@ title Tournament System - Group 1
class Match { class Match {
*match_id: Integer *match_id: Integer
tournament_id: Integer tournament_id: Integer
team_ids: Integer[] parent_id: Integer
team1_id: Integer
team2_id: Integer
winner_id: Integer winner_id: Integer
tier: Integer
Match constructor(tournament_id: Integer, team_ids: Integer[]) Match constructor(tournament_id: Integer, team_ids: Integer[])
void setWinner(winner_id: Integer) void setWinner(winner_id: Integer)
@ -16,13 +17,11 @@ class Match {
class Team { class Team {
*team_id: Integer *team_id: Integer
name: String name: String
tournament_ids: Integer[] tournament_ids Integer
Team constructor(name: String) Team constructor(name: String, tournamentId: Integer)
void joinTournament(tournament_id: Integer)
void addPlayer(player_id: Integer) void addPlayer(player_id: Integer)
void removePlayer(player_id: Integer) void removePlayer(player_id: Integer)
void leaveTournament(tournament_id: Integer)
} }
class Player { class Player {
*player_id: Integer *player_id: Integer
@ -40,12 +39,8 @@ class Tournament {
name: String name: String
start_date: Date start_date: Date
end_date: Date end_date: Date
manager_ids: Integer[]
team_ids: Integer[]
Tournament constructor(name: String, start_date: Date, end_date: Date) Tournament constructor(name: String, start_date: Date, end_date: Date)
void addTeam(team_id: Integer)
void removeTeam(team_id: Integer)
} }
@ -55,4 +50,4 @@ Player "1..*" -- "1..1" Team : "Belongs to"
Team "2..2" -- "1..*" Match : "Competes in" Team "2..2" -- "1..*" Match : "Competes in"
@enduml @enduml