import java.util.Map;
import java.util.Observable;
import java.util.Set;
import java.util.TreeMap;
/*Tournament.java is runnable, main method asks what tournament to create, then calls TournamentModel constructor 
 * TournamentModel is the brains of the class, 
 * 			calls singleton class Brackets with # of brackets, size and type (hold info abt bracket)
 * TournamentView displays the bracket, and can tell the Model the results of matches
 */
import java.util.TreeSet;

public class TournamentModel extends Observable{
	private Set<Person>[] competitors;		//Each index is a bracket #
	
	public void setup(int num, int size){		//If dflt no param constructor, init brackets
		competitors = new Set[num];
		
		for(int i = 0; i < num; i++) competitors[i] = new TreeSet<Person>();
		
		Brackets.setBrackets(num,size);
		setChanged();
		notifyObservers();
	}
	public TournamentModel(int num, int size){		//Number, size of brackets, plus if the brackets are double or single elim
		Brackets.setBrackets(num,size);
		setChanged();
		notifyObservers();
	}
	public void addPerson(Person person, int bracket){
		competitors[bracket].add(person);
		Brackets.getBracket(bracket).addPerson(person);
		setChanged();
		notifyObservers();
	}
	public void advancePerson(Person person, int bracket, String notes){
		Brackets.getBracket(bracket).recordWin(person, notes);
	}
	public Set<Person> getCompetitors(int bracket){
		return competitors[bracket];
	}
	public Bracket getBracket(int num){
		return Brackets.getBracket(num);
	}
	public int getNumBrackets(){return Brackets.getNum();}
}

@@ -1439,83 +1439,8 @@
 %0A%09%7D%0A
-%09public Bracket getBracket(int num)%7B%0A%09%09return Brackets.getBracket(num);%0A%09%7D%0A
 %09pub

Remove b/c singletong makes getter useless