Uses of Class
edu.ntnu.idatt1002.k1g4.Team
Packages that use Team
Package
Description
-
Uses of Team in edu.ntnu.idatt1002.k1g4
Methods in edu.ntnu.idatt1002.k1g4 that return TeamModifier and TypeMethodDescriptionMatch.getTeamOne()
Get team one.Match.getTeamTwo()
Get team two.Methods in edu.ntnu.idatt1002.k1g4 that return types with arguments of type TeamModifier and TypeMethodDescriptionDivision.getCompetingTeams()
Creates and return a deep copy of competing teams list.Methods in edu.ntnu.idatt1002.k1g4 with parameters of type TeamModifier and TypeMethodDescriptionboolean
Add a team to the list of competing teams.boolean
Cup.addTeamInDivision
(Division division, Team team) Finds the correct division and adds a team to the division.int
Get score of a teamvoid
Match.incrementScore
(Team teamToIncreaseScore) Increments score for a team.boolean
Division.removeTeam
(Team team) Remove a team.boolean
Cup.removeTeamInDivision
(Division division, Team team) Finds the correct division and removes a team from the division.void
Match.setTeamOne
(Team teamOne) Sets team one.void
Match.setTeamTwo
(Team teamTwo) Sets team two.Method parameters in edu.ntnu.idatt1002.k1g4 with type arguments of type TeamModifier and TypeMethodDescriptionvoid
Division.setCompetingTeams
(HashMap<Integer, Team> competingTeams) Sets competing teams in a division.Constructors in edu.ntnu.idatt1002.k1g4 with parameters of type TeamModifierConstructorDescriptionInstantiates a new Match.Match
(Team teamOne, Team teamTwo, LocalDateTime startTime, long duration, String field) Instantiates a new Match.Match
(Team teamOne, Team teamTwo, LocalDateTime startTime, long duration, String field, boolean isWalkover) First constructor for match.Instantiates a new Team.Constructor parameters in edu.ntnu.idatt1002.k1g4 with type arguments of type Team -
Uses of Team in edu.ntnu.idatt1002.k1g4.client
Methods in edu.ntnu.idatt1002.k1g4.client that return TeamMethods in edu.ntnu.idatt1002.k1g4.client with parameters of type TeamModifier and TypeMethodDescriptionstatic void
Model.setCurrentTeam
(Team newCurrentTeam) sets the current teamMethod parameters in edu.ntnu.idatt1002.k1g4.client with type arguments of type TeamModifier and TypeMethodDescriptionstatic boolean
Model.createMatch
(javafx.scene.control.ComboBox<Team> teamOneComBox, javafx.scene.control.ComboBox<Team> teamTwoComBox, javafx.scene.control.TextField startTimeField, javafx.scene.control.DatePicker startDateField, javafx.scene.control.TextField fieldField, javafx.scene.control.Spinner<Integer> durationField, javafx.scene.control.RadioButton isKnockout) Creates a new match with the given fields. -
Uses of Team in edu.ntnu.idatt1002.k1g4.dao
Methods in edu.ntnu.idatt1002.k1g4.dao that return TeamModifier and TypeMethodDescriptionTeamDAO.getTeamById
(int teamId, int divisionId) Gets the team by id.TeamDAO.getTeamByName
(String name) Gets a team by the name of the team.Methods in edu.ntnu.idatt1002.k1g4.dao that return types with arguments of type TeamModifier and TypeMethodDescriptionTeamDAO.getTeams()
Gets all teams.TeamDAO.getTeamsByDivision
(int divisionId) Gets teams in a division.Methods in edu.ntnu.idatt1002.k1g4.dao with parameters of type TeamModifier and TypeMethodDescriptionvoid
Adds a team.void
TeamDAO.updateCompeting
(Team team, int divisionId) Method to update if a team is competing.