net.bluebones.boggle
Class Rubber

java.lang.Object
  extended by net.bluebones.boggle.Rubber
All Implemented Interfaces:
Serializable

public class Rubber
extends Object
implements Serializable

Class representing an ongoing series of games. Keeps track of cumulative scores of the participants.

Version:
0.3 $Revision: 1.3 $
Author:
Thomas David Baker, bakert@gmail.com>
See Also:
Serialized Form

Constructor Summary
Rubber()
          Initializes an empty Rubber.
 
Method Summary
 void addClient(NamedClient namedClient)
          Adds the specified client to this Rubber.
 void addScores(Round round)
          Adds the scores from round to this Rubber's totals.
 Map getScores()
          Gets the current scores.
 void remove(NamedClient client)
          Remove client from the Rubber.
 void removeAll(Collection clients)
          Remove all NamedClients in clients from this Rubber.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rubber

public Rubber()
Initializes an empty Rubber.

Method Detail

addClient

public void addClient(NamedClient namedClient)
Adds the specified client to this Rubber.

Parameters:
namedClient - NamedClient to add.

addScores

public void addScores(Round round)
Adds the scores from round to this Rubber's totals.

Parameters:
round - Round to add.

getScores

public Map getScores()
Gets the current scores.

Returns:
Map of NamedClient = int scores.

remove

public void remove(NamedClient client)
Remove client from the Rubber.

Parameters:
client - NamedClient to remove.

removeAll

public void removeAll(Collection clients)
Remove all NamedClients in clients from this Rubber.

Parameters:
clients - Collection to remove.