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

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

public class TotalFitnessCalculationStrategy
extends FitnessCalculationStrategy

the fitness is the total Fitness over all the fitness values attained in each round

Author:
leo
See Also:
Serialized Form

Constructor Summary
TotalFitnessCalculationStrategy()
           
TotalFitnessCalculationStrategy(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

TotalFitnessCalculationStrategy

public TotalFitnessCalculationStrategy()

TotalFitnessCalculationStrategy

public TotalFitnessCalculationStrategy(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.