de.kosi.model.game
Class PassedThroughResult

java.lang.Object
  |
  +--de.kosi.model.game.Result
        |
        +--de.kosi.model.game.PercentageResult
              |
              +--de.kosi.model.game.PassedThroughResult
All Implemented Interfaces:
java.io.Serializable

public class PassedThroughResult
extends PercentageResult

This result is used if the playing phase of the game did not take place because every player passed in the first round of the bidding.

ChangeLog:

 $Log: PassedThroughResult.java,v $
 Revision 1.5  2001/06/27 11:53:21  betacarotine
 Worked on the Rubber and added comments.

 Revision 1.4  2001/06/15 13:07:03  betacarotine
 added serial version UIDs to the Result-classes.

 Revision 1.3  2001/06/01 14:49:54  betacarotine
 improved the result handling, added tournament scoring

 Revision 1.2  2001/05/30 10:19:18  pizarro
 Updated Documentation.

 Revision 1.1  2001/05/25 14:51:23  betacarotine
 Added a result handling mechanism for the game.


 

Version:
$Revision: 1.5 $ ($Date: 2001/06/27 11:53:21 $)
Author:
PG KoSI, Fachbereich Informatik, Universitaet Oldenburg
See Also:
Serialized Form

Field Summary
static java.util.List FOUR_TIMES_PASSED
          This List will contain for pass bids.
static long serialVersionUID
          The serial version UID
 
Constructor Summary
PassedThroughResult(Board board)
          Constructs a result for the given board when all players passed at the beginning of the game.
 
Method Summary
 double getPercentEastWest()
          Returns the percent valuation of the EastWest pair which is 50 percent when every player passed in the first round of the bidding.
 double getPercentNorthSouth()
          Returns the percent valuation of the NorthSouth pair which is 50 percent when every player passed in the first round of the bidding.
 
Methods inherited from class de.kosi.model.game.Result
getBids, getBoard, getContract, getTricks
 
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
The serial version UID

FOUR_TIMES_PASSED

public static final java.util.List FOUR_TIMES_PASSED
This List will contain for pass bids.
Constructor Detail

PassedThroughResult

public PassedThroughResult(Board board)
Constructs a result for the given board when all players passed at the beginning of the game.
Parameters:
board - The board to construct the result for.
Method Detail

getPercentNorthSouth

public double getPercentNorthSouth()
Returns the percent valuation of the NorthSouth pair which is 50 percent when every player passed in the first round of the bidding.
Overrides:
getPercentNorthSouth in class PercentageResult
Returns:
The percent valuation of the NorthSouth pair

getPercentEastWest

public double getPercentEastWest()
Returns the percent valuation of the EastWest pair which is 50 percent when every player passed in the first round of the bidding.
Overrides:
getPercentEastWest in class PercentageResult
Returns:
The percent valuation of the EastWest pair