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

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

public class AveFitnessCalculationStrategy
extends FitnessCalculationStrategy

This Fitness calulation strategy simply gets the average score attained regardless of win/lose or draw as the Fitness value.

Author:
leo
See Also:
Serialized Form

Constructor Summary
AveFitnessCalculationStrategy()
           
AveFitnessCalculationStrategy(FitnessCalculationStrategy other)
           
 
Method Summary
 Fitness calculateFitnessFromScoreBoard(EntityScoreboard score, int currentRound)
          Calculate the fitness from the scoreboard
 Object getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from class net.sourceforge.cilib.coevolution.score.fitnesscalculation.FitnessCalculationStrategy
getAmountHistoricGames, setAmountHistoricGames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AveFitnessCalculationStrategy

public AveFitnessCalculationStrategy()

AveFitnessCalculationStrategy

public AveFitnessCalculationStrategy(FitnessCalculationStrategy other)
Method Detail

calculateFitnessFromScoreBoard

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

Specified by:
calculateFitnessFromScoreBoard in class FitnessCalculationStrategy
Parameters:
score - the scoreboard
currentRound - current round of competition
Returns:
new fitness

getClone

public Object getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Returns:
An exact clone of the current object instance.
See Also:
Object.clone()


Copyright © 2009 CIRG. All Rights Reserved.