net.sourceforge.cilib.games.game.scoring
Class WinLoseDrawValueScoringStrategy

java.lang.Object
  extended by net.sourceforge.cilib.games.game.scoring.GameScoringStrategy
      extended by net.sourceforge.cilib.games.game.scoring.WinLoseDrawValueScoringStrategy

public class WinLoseDrawValueScoringStrategy
extends GameScoringStrategy

Author:
leo This class assigns a fitness based upon the win/lose/draw result of the game and a value assosiated with each outcome. If the outcome is a ScoreGameResult then assign the score attained as the fitness

Constructor Summary
WinLoseDrawValueScoringStrategy()
           
 
Method Summary
 void assignPlayerScores(Game game)
          Assign a Fitness to each Agent after the completion of a Game
 Double getDrawValue()
           
 Double getLoseValue()
           
 Double getWinValue()
           
 void initializeMeasurements(Game game)
          Initialize the game with the neccesary AgentMeasure's that the scoring strategy may require to calculate the Fitness for all the Agents
 void setDrawValue(Double drawValue)
           
 void setLoseValue(Double loseValue)
           
 void setWinValue(Double winValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WinLoseDrawValueScoringStrategy

public WinLoseDrawValueScoringStrategy()
Method Detail

initializeMeasurements

public void initializeMeasurements(Game game)
Initialize the game with the neccesary AgentMeasure's that the scoring strategy may require to calculate the Fitness for all the Agents

Specified by:
initializeMeasurements in class GameScoringStrategy
Parameters:
game - the game to initilaise

assignPlayerScores

public void assignPlayerScores(Game game)
Assign a Fitness to each Agent after the completion of a Game

Specified by:
assignPlayerScores in class GameScoringStrategy
Parameters:
game - the game object

getDrawValue

public Double getDrawValue()

setDrawValue

public void setDrawValue(Double drawValue)

getLoseValue

public Double getLoseValue()

setLoseValue

public void setLoseValue(Double loseValue)

getWinValue

public Double getWinValue()

setWinValue

public void setWinValue(Double winValue)


Copyright © 2009 CIRG. All Rights Reserved.