es.udc.gii.common.eaf.algorithm.operator.selection
Class UniformSelection

java.lang.Object
  extended by es.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
      extended by es.udc.gii.common.eaf.algorithm.operator.selection.UniformSelection
All Implemented Interfaces:
Operator, Configurable

public class UniformSelection
extends SelectionOperator

This class implements a uniform selection opetator. Every individual of the population has the same probability to be selected. Each time that the operator is executed, a random index is generated from an uniform distribution.

Configuration:

 <Operator><p>
      <Class>es.udc.gii.common.eaf.algorithm.operator.UniformSelection</Class>
 </Operator>
 
 

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

Constructor Summary
UniformSelection()
          Creates a new instance of UniformSelection
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
          Configures the specific element that implements this method.
protected  Individual select(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals)
           
 
Methods inherited from class es.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
operate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniformSelection

public UniformSelection()
Creates a new instance of UniformSelection

Method Detail

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Description copied from interface: Configurable
Configures the specific element that implements this method.

Specified by:
configure in interface Configurable
Overrides:
configure in class SelectionOperator
Parameters:
conf - a Configuration object.
See Also:
Configuration

select

protected Individual select(EvolutionaryAlgorithm algorithm,
                            java.util.List<Individual> individuals)
Specified by:
select in class SelectionOperator