Class Schedule

java.lang.Object
|
+--Schedule

public class Schedule
extends java.lang.Object

A Schedule represents a season of Games among a set of teams.


Field Summary
static int GAMES
          The number of Games in the Schedule.
 
Constructor Summary
Schedule()
          Creates a new Schedule object that stores the results for GAMES Games
The created Schedule will have scores for all the Games of a season.
 
Method Summary
 Game getGame(int i)
          Returns the specified Game in the Schedule
There are GAMES Games that are 0-indexed.
 java.lang.String[] getTeams()
          Returns an array that includes all of the teams that play in the Schedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAMES

public static final int GAMES
The number of Games in the Schedule.

See Also:
Constant Field Values
Constructor Detail

Schedule

public Schedule()
Creates a new Schedule object that stores the results for GAMES Games
The created Schedule will have scores for all the Games of a season.

Method Detail

getTeams

public java.lang.String[] getTeams()
Returns an array that includes all of the teams that play in the Schedule

Returns:
the team names

getGame

public Game getGame(int i)
Returns the specified Game in the Schedule
There are GAMES Games that are 0-indexed.

Parameters:
i - a Game (number) in the Schdeule
Returns:
Game i from the Schdeule