net.sourceforge.cilib.util.selection.weighing.entity
Class CurrentFitness<E extends Entity>

java.lang.Object
  extended by net.sourceforge.cilib.util.selection.weighing.entity.CurrentFitness<E>
Type Parameters:
E - The entity type.
All Implemented Interfaces:
EntityFitness<E>

public class CurrentFitness<E extends Entity>
extends Object
implements EntityFitness<E>

Obtain the current fitness of an entity.

Author:
Wiehann Matthysen

Constructor Summary
CurrentFitness()
           
 
Method Summary
 Fitness getFitness(E entity)
          Obtain the Fitness of the provided entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentFitness

public CurrentFitness()
Method Detail

getFitness

public Fitness getFitness(E entity)
Obtain the Fitness of the provided entity. Get the current fitness of the Entity.

Specified by:
getFitness in interface EntityFitness<E extends Entity>
Parameters:
entity - The entity to query.
Returns:
The obtained Fitness value.


Copyright © 2009 CIRG. All Rights Reserved.