net.sourceforge.cilib.coevolution.score.fitnesscalculation
Class FitnessCalculationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.coevolution.score.fitnesscalculation.FitnessCalculationStrategy
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AveFitnessCalculationStrategy, PercentageWonFitnessCalculationStrategy, TotalFitnessCalculationStrategy

public abstract class FitnessCalculationStrategy
extends Object
implements Cloneable

Author:
leo Defines how fitness values stored in the scoreboard are combined to get a single fitness value
See Also:
Serialized Form

Constructor Summary
FitnessCalculationStrategy()
           
FitnessCalculationStrategy(FitnessCalculationStrategy other)
           
 
Method Summary
abstract  Fitness calculateFitnessFromScoreBoard(EntityScoreboard score, int currentRound)
          Calculate the fitness from the scoreboard
 int getAmountHistoricGames()
           
 void setAmountHistoricGames(int amountHistoricGames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.cilib.util.Cloneable
getClone
 

Constructor Detail

FitnessCalculationStrategy

public FitnessCalculationStrategy()

FitnessCalculationStrategy

public FitnessCalculationStrategy(FitnessCalculationStrategy other)
Method Detail

calculateFitnessFromScoreBoard

public abstract Fitness calculateFitnessFromScoreBoard(EntityScoreboard score,
                                                       int currentRound)
Calculate the fitness from the scoreboard

Parameters:
score - the scoreboard
currentRound - current round of competition
Returns:
new fitness

getAmountHistoricGames

public int getAmountHistoricGames()

setAmountHistoricGames

public void setAmountHistoricGames(int amountHistoricGames)


Copyright © 2009 CIRG. All Rights Reserved.