de.kosi.model.tournament
Interface PairTournament

All Superinterfaces:
java.rmi.Remote, java.io.Serializable, Tournament
All Known Implementing Classes:
PairTournamentImpl

public interface PairTournament
extends Tournament, java.rmi.Remote

PairTournament implements a tournament for pairs of players.

ChangeLog:

 
 $Log: PairTournament.java,v $
 Revision 1.4  2001/08/02 10:09:16  betacarotine
 Started implementing the preparetion of a tournament (form pairs etc.)

 Revision 1.3  2001/08/02 09:33:53  jiriki
 Worked on tournament

 Revision 1.2  2001/07/31 12:55:27  betacarotine
 worked on the tournament

 Revision 1.1.1.1  2001/04/29 18:05:18  jiriki
 Imported sources from zola.

 Revision 1.2  2001/04/17 20:19:13  wombat
 Updated documentation.


 

Version:
$Revision: 1.4 $ ($Date: 2001/08/02 10:09:16 $)

Field Summary
static int NORTH_EAST
          Constant indicating, that a member of a pair is playing north or east.
static int SOUTH_WEST
          Constant indicating, that a member of a pair is playing south or west.
 
Fields inherited from interface de.kosi.model.tournament.Tournament
APPLICATION, EXECUTION, FINISHED, PREPARATION
 
Method Summary
 PairResult getResult()
          Get the result of the tournament.
 void register(java.lang.String desiredPartner, int desiredDirection)
          Register.
 void unregister()
          Unregister.
 
Methods inherited from interface de.kosi.model.tournament.Tournament
addTournamentListener, getApplicationDeadline, getChatChannel, getConfiguration, getMatchTimeout, getOwnerName, getStartDate, getStatus, isOwner, removeTournamentListener, setApplicationDeadline, setMatchTimeout, setStartDate
 

Field Detail

NORTH_EAST

public static final int NORTH_EAST
Constant indicating, that a member of a pair is playing north or east.

SOUTH_WEST

public static final int SOUTH_WEST
Constant indicating, that a member of a pair is playing south or west.
Method Detail

register

public void register(java.lang.String desiredPartner,
                     int desiredDirection)
              throws java.rmi.RemoteException,
                     InvalidSessionException
Register. If two Players indicate that they want to play with each other, a pair is formed.
Parameters:
desiredPartner - Desired partner for this tournament.
desiredDirection - One of the constants NORTH_EAST or SOUTH_WEST.
Throws:
java.rmi.RemoteException - If the remote call fails.

unregister

public void unregister()
                throws java.rmi.RemoteException,
                       InvalidSessionException
Unregister.
Throws:
java.rmi.RemoteException - If the remote call fails.

getResult

public PairResult getResult()
                     throws java.rmi.RemoteException
Get the result of the tournament.
Returns:
Result.
Throws:
java.rmi.RemoteException - If the remote call fails.