Definition: The season is the top level object in the sense that the seson is selected first, then a league, then the other objects associated with the league.  The Season is also at the top of the file structure as well.  The Season name is freeform to allow any notation desired by the user.  Normally it represents the year (2012), for summer leagues, or the spanned years (2011-2012) for winter leagues.  By leaving the actual name open, the user is not forced to use that convention.  The season name will become a directory/folder name within the SBS, or home, directory/folder.

Variables:  Variables here

  Modifier Class Name Value
  public Integer serializableVersionUID 1234567
private boolean hasFolder

Characteristics:

  Tic name object
Season Name String
Is Default Boolean

Requirements:

 
  • Ticable
  • HasID, but might not be used.
  • Serializable
  • Comparable and Comparator
  • Observable
  • new, to create a new instance using Tic default values.
  • RecordIO

Required Methods:

 
  • A no argument constructor.
  • Setters and getters for the characteristics.
  • The compare(Object, Object), compareTo(Object), and equals(Object) methods. (Comparable and Comparator)
  • Save() and Load() methods for saving/loading to a delimited file. (RecordIO)
  • Get a specific object using the ID.  The object may be in memory or need to be retrieved from a data store (file). (HasID)
  • A getName() method to return the name of the season.
  • A boolean isDefault() method to determine if the season is the designated default season.
  • A method to determine if each Season has a matching directory for it.
  • A method to return the appropriate directory name for this Season.