es.udc.gii.common.eaf.plugin.individual
Class BestIndividual

java.lang.Object
  extended by es.udc.gii.common.eaf.plugin.individual.IndividualChooser
      extended by es.udc.gii.common.eaf.plugin.individual.BestIndividual
All Implemented Interfaces:
Configurable, Plugin

public class BestIndividual
extends IndividualChooser

A plugin for choosing the best individual from a list of individuals.

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)

Constructor Summary
BestIndividual()
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
          Configures this plugin.
 Individual get(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals, Individual reference)
          Returns the best individual chosen from a list of individuals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestIndividual

public BestIndividual()
Method Detail

get

public Individual get(EvolutionaryAlgorithm algorithm,
                      java.util.List<Individual> individuals,
                      Individual reference)
Returns the best individual chosen from a list of individuals.

Specified by:
get in class IndividualChooser
Parameters:
algorithm - Current evolutionary algorithm.
individuals - List of individuals from which to choose one.
reference - Individual that serves as a reference. (Not used and hence it can be set to null).
Returns:
The best individual from the passed list.

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Configures this plugin. No configuration is needed.

Parameters:
conf -
See Also:
Configuration