Uses of Class
edu.ntnu.idatt1002.k1g4.Division
Package
Description
-
Uses of Division in edu.ntnu.idatt1002.k1g4
Modifier and TypeMethodDescriptionCup.getEqualDivision
(Division division) Helper method to get the division that is equal to the object that is provided This is to solve the problems with compositionModifier and TypeMethodDescriptionCup.getDivisions()
Returns a list of divisions with composition.Modifier and TypeMethodDescriptionboolean
Cup.addDivision
(Division division) Method which adds division to the list of divisions.boolean
Cup.addMatchInDivision
(Division division, Match match) Finds the correct division and adds a match to the division.boolean
Cup.addTeamInDivision
(Division division, Team team) Finds the correct division and adds a team to the division.Cup.getEqualDivision
(Division division) Helper method to get the division that is equal to the object that is provided This is to solve the problems with compositionvoid
Cup.removeDivision
(Division division) Method which removes division to the list of divisions.boolean
Cup.removeMatchInDivision
(Division division, Match match) Finds the correct division and adds a match to the division.boolean
Cup.removeTeamInDivision
(Division division, Team team) Finds the correct division and removes a team from the division.Modifier and TypeMethodDescriptionvoid
Cup.setDivisions
(ArrayList<Division> divisions) Sets divisions.ModifierConstructorDescriptionCup
(String name, String location, ArrayList<Division> divisions, LocalDateTime startTime, LocalDateTime endTime) Instantiates a new Cup. -
Uses of Division in edu.ntnu.idatt1002.k1g4.client
Modifier and TypeMethodDescriptionstatic Division
Model.getCurrentDivision()
Returns the division that is currently selectedModifier and TypeMethodDescriptionstatic void
Model.setCurrentDivision
(Division newDivision) Selects a new division as the current one -
Uses of Division in edu.ntnu.idatt1002.k1g4.dao
Modifier and TypeMethodDescriptionDivisionDAO.getDivisionsByCup
(int cupId) Gets all divisions with respective data in a cup.Modifier and TypeMethodDescriptionvoid
DivisionDAO.addDivision
(Division division) Method to add a division to the database.