de.kosi.model.tournament
Class Pair

java.lang.Object
  |
  +--de.kosi.model.tournament.Pair

public class Pair
extends java.lang.Object

This is the KoSI internal representation of a pair of two UserImpls. This is needed because a game of Bridge is played by two opposing pairs. The pair contains no Player attributes but rather UserImpls because it is needed before the Player instances have to be created, e.g. for a tournament synopsis.

ChangeLog:

 $Log: Pair.java,v $
 Revision 1.1.1.1  2001/04/29 18:05:18  jiriki
 Imported sources from zola.

 Revision 1.2  2001/03/06 15:42:06  login
 updated dox


 

Version:
$Revision: 1.1.1.1 $ ($Date: 2001/04/29 18:05:18 $)
Author:
Timo, Niklas, Ole

Constructor Summary
Pair(UserImpl northEast, UserImpl southWest)
          Creates a new pair of users.
 
Method Summary
 UserImpl getNorthEast()
          Returns the user that will be seated north or east.
 UserImpl getSouthWest()
          Returns the user that will be seated south or west.
 java.lang.String toString()
          Returns a string-representation of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(UserImpl northEast,
            UserImpl southWest)
Creates a new pair of users.
Parameters:
northEast - The user that always will be seated north or east. May not be null.
southWest - The user that always will be seated south or west. May not be null.
Method Detail

getNorthEast

public UserImpl getNorthEast()
Returns the user that will be seated north or east.
Returns:
A UserImpl instance.

getSouthWest

public UserImpl getSouthWest()
Returns the user that will be seated south or west.
Returns:
A UserImpl instance.

toString

public java.lang.String toString()
Returns a string-representation of this instance.
Overrides:
toString in class java.lang.Object
Returns:
A string-representation of this instance.