net.sourceforge.cilib.coevolution
Class StandardFitnessSharingStrategy
java.lang.Object
net.sourceforge.cilib.coevolution.FitnessSharingStrategy
net.sourceforge.cilib.coevolution.StandardFitnessSharingStrategy
- All Implemented Interfaces:
- Serializable, Cloneable
public class StandardFitnessSharingStrategy
- extends FitnessSharingStrategy
example of implementation of an FitnessSharingStrategy.
- Author:
- Julien Duhain
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardFitnessSharingStrategy
public StandardFitnessSharingStrategy()
StandardFitnessSharingStrategy
public StandardFitnessSharingStrategy(StandardFitnessSharingStrategy copy)
getClone
public StandardFitnessSharingStrategy getClone()
- Description copied from interface:
Cloneable
- 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.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class FitnessSharingStrategy
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
modifyFitness
public Fitness modifyFitness(CoevolutionAlgorithm ca,
Entity ent)
- in this case, assign the number of victory to the fitness of the Entity.
- Specified by:
modifyFitness
in class FitnessSharingStrategy
ent
- Entity whose fitness is to be calculated
- Returns:
- the modified fitness.
Copyright © 2009 CIRG. All Rights Reserved.