|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.model.tournament.Match
This class represents a pairing of two pairs and the boards to be played by them. In each round of a Bridge tournament this class is needed for every table.
ChangeLog:
$Log: Match.java,v $ Revision 1.3 2001/07/31 12:55:27 betacarotine worked on the tournament Revision 1.2 2001/07/31 12:15:24 betacarotine worked on the tournament Revision 1.1.1.1 2001/04/29 18:05:18 jiriki Imported sources from zola. Revision 1.4 2001/04/25 12:47:06 login Implemented stopwatch Revision 1.3 2001/04/25 12:05:40 login Worked on TournamentImpl Revision 1.2 2001/04/20 15:10:14 login updated docs Revision 1.1 2001/03/15 20:14:32 login Renamed the class Round to Match Revision 1.2 2001/03/06 15:58:45 login updated documentation
Constructor Summary | |
Match(Board[] boardSet,
Pair northSouth,
Pair eastWest)
Creates a new instance of this class. |
Method Summary | |
void |
appealToJudge(java.lang.String reason)
Appeal to a judge. |
void |
gameFinished(Result result)
Called by the game when it has just been finished. |
Board |
getBoard(int index)
Returns the board that is stored at the given index. |
Pair |
getEastWest()
Returns the pair that is seated east-west. |
Pair |
getNorthSouth()
Returns the pair that is seated north-south. |
int |
getNumberOfBoards()
Returns the number of boards that are to be played by the two pairs. |
void |
setCallback(MatchCallback callback)
Set a callback function that will be called when the match finishes. |
void |
start(TournamentImpl tournament)
Start the match. |
void |
terminate()
Terminate the match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Match(Board[] boardSet, Pair northSouth, Pair eastWest)
boardSet
- The set of boards to be played on by the
pairs. May not be null
and should at least contain
one Board
instance.northSouth
- The pair seated north-south. May not be
null
.eastWest
- The pair seated east-west. May not be
null
.Method Detail |
public void start(TournamentImpl tournament)
tournament
- Tournament this match belongs to.public void terminate()
public void setCallback(MatchCallback callback)
callback
- An interface as wrapper for the callback function.public int getNumberOfBoards()
public Board getBoard(int index)
index
- The index the wanted board is stored at.public Pair getNorthSouth()
public Pair getEastWest()
public void appealToJudge(java.lang.String reason)
GameContainer
appealToJudge
in interface GameContainer
de.kosi.model.game.GameContainer
reason
- Reason for calling a judge.public void gameFinished(Result result)
gameFinished
in interface GameContainer
result
- The result of the game.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |