|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
public abstract class SelectionOperator
This abstract class represents a selection operator.
The behavior of a selection operator is to select the individuals of the population that will be used during the reproduction phase.
The classes that extend this operator will implement the method
#select(EvolutionaryAlgorithm algorithm, List
. This method receives
a list of individuals and return a selected individual. This method is executed from the method
operate(EvolutionaryAlgorithm algorithm, List
until the children
population is filled.
Constructor Summary | |
---|---|
SelectionOperator()
|
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the specific element that implements this method. |
java.util.List<Individual> |
operate(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
Execute this operator over a group of individuals. |
protected abstract Individual |
select(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectionOperator()
Method Detail |
---|
public java.util.List<Individual> operate(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals) throws OperatorException
Operator
This method will recive two parameters. The current algorithm, to visit it if it is necessary, for example, to get some parameter of the current execution. And a list of individuals on wich we will apply this operator.
operate
in interface Operator
algorithm
- the current algorithm, to visit when it is necessary.individuals
- list of individuals on wich we will apply the operator.
OperatorException
- when occurs some type of error during the execution of this operator.protected abstract Individual select(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals)
public java.lang.String toString()
toString
in class java.lang.Object
public void configure(org.apache.commons.configuration.Configuration conf)
Configurable
configure
in interface Configurable
conf
- a Configuration object.Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |