Definition: The treasury will keep track of the fees paid by team members by contest.  At present I do not plan for a more comprehensive version which would keep track of the different elements of the fees, such as lane charges, prize fund, secretary fees, treasurer fees, and possibly other local fees.

Issues:  The treasury must keep track of the members of each team, for each contest to properly set the amount due.  The League record will also have the total contest fee amount.  The number of contests is also needed to make sure all are accounted for.

Variables:  Variables here

  Modifier Class Name Value
    Integer serializableVersionUID 1234567

Characteristics:

  Tic name object
Member Member
Contest Number Integer
Team Team
Amount Due Float
Amount Paid by Check Float
Amount Paid by Cash Float

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)
  • Float getPaid(Member) returns the amount the Member has paid.
  • Float getDue(Member) returns the amount due from the Member.