de.kosi.model.game
Class Result

java.lang.Object
  |
  +--de.kosi.model.game.Result
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NormalResult, PercentageResult

public class Result
extends java.lang.Object
implements java.io.Serializable

This is the base class of results of games of Bridge.

ChangeLog:

 $Log: Result.java,v $
 Revision 1.8  2001/06/15 13:07:03  betacarotine
 added serial version UIDs to the Result-classes.

 Revision 1.7  2001/06/15 09:33:27  betacarotine
 Changed the Game-interface. Instead of
 	int getLatestLeader()   and
 	List getLatestTrick()
 we now have
 	Trick getLatestTrick()

 The internal representation and storage of the tricks is reimplemented too
 based on the new Trick-class.

 Revision 1.6  2001/06/06 09:22:35  betacarotine
 updated documentation

 Revision 1.5  2001/06/01 15:11:14  betacarotine
 readded these two nice files


 

Version:
$Revision: 1.8 $ ($Date: 2001/06/15 13:07:03 $)
Author:
PG KoSI, Fachbereich Informatik, Universitaet Oldenburg
See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version UID.
 
Constructor Summary
Result(Board board, java.util.List bids, Contract contract, java.util.List tricks)
          Constructs a new Result instance.
 
Method Summary
 java.util.List getBids()
          Returns the list of bids that have been made during the bidding phase.
 Board getBoard()
          Returns the board that the game was played on.
 Contract getContract()
          Returns the contract that has been negotited, or null, if the game got interrupted in the bidding phase.
 java.util.List getTricks()
          Returns the cards that have been played in the playing phase of the game in the order that they appeared on the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version UID.
Constructor Detail

Result

public Result(Board board,
              java.util.List bids,
              Contract contract,
              java.util.List tricks)
Constructs a new Result instance.
Parameters:
board - The board that the game was played on.
bids - The bids that have been made during the bidding phase of the game.
contract - The contract that has been negotiated or null, if the biding phase got interupted.
tricks - The tricks that have been played during the playing phase or null, if the game got interrupted while bidding.
Method Detail

getBoard

public Board getBoard()
Returns the board that the game was played on.
Returns:
The board that the game was played on.

getBids

public java.util.List getBids()
Returns the list of bids that have been made during the bidding phase.
Returns:
List of bids.

getContract

public Contract getContract()
Returns the contract that has been negotited, or null, if the game got interrupted in the bidding phase.
Returns:
A contract or null.

getTricks

public java.util.List getTricks()
Returns the cards that have been played in the playing phase of the game in the order that they appeared on the table.
Returns:
List of cards.