net.sourceforge.cilib.util.calculator
Class EntityBasedFitnessCalculator
java.lang.Object
net.sourceforge.cilib.util.calculator.EntityBasedFitnessCalculator
- All Implemented Interfaces:
- Serializable, FitnessCalculator<Entity>, Cloneable
public class EntityBasedFitnessCalculator
- extends Object
- implements FitnessCalculator<Entity>
A fitness calculator tht is specialised to determine the fitness of
an Entity instance.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityBasedFitnessCalculator
public EntityBasedFitnessCalculator()
getClone
public EntityBasedFitnessCalculator 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.
- Specified by:
getClone
in interface FitnessCalculator<Entity>
- Specified by:
getClone
in interface Cloneable
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
getFitness
public Fitness getFitness(Entity entity,
boolean count)
- Get the fitness, given the
position
.
- Specified by:
getFitness
in interface FitnessCalculator<Entity>
- Parameters:
entity
- The Type
to base the calculation on.count
- Whether or not the evaluation is to be counted.
- Returns:
- A
Fitness
object representing the fitness of the position
.
Copyright © 2009 CIRG. All Rights Reserved.