java.lang.Object
edu.ntnu.idatt1002.k2g05.controllers.opentournament.utils.Group

public class Group extends Object
A Group is a group in a group play but can also be used in finals. It hols the columns which are going to be filled with nodes
  • Constructor Details

    • Group

      public Group(String name)
      Constructor for creating a new instance of a group
      Parameters:
      name - of the group
  • Method Details

    • getName

      public String getName()
      Gets the name of the group
      Returns:
      the name
    • getMatchColumns

      public List<MatchColumn> getMatchColumns()
      Gets all the matchColumns in the given group
      Returns:
    • addMatchColumn

      public boolean addMatchColumn(MatchColumn matchColumn)
      Method for adding a match column to the group.
      Parameters:
      matchColumn - to be added
      Returns:
      true if the list changed.