es.udc.gii.common.eaf.algorithm.operator.selection
Class SelectionOperator
java.lang.Object
es.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
- All Implemented Interfaces:
- Operator, Configurable
- Direct Known Subclasses:
- DeterministicTournamentSelection, ExtintionOperator, LinearRankingSelection, TournamentSelection, UniformSelection
public abstract class SelectionOperator
- extends java.lang.Object
- implements Operator
Class SelectionOperator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelectionOperator
public SelectionOperator()
operate
public java.util.List<Individual> operate(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
throws OperatorException
- Description copied from interface:
Operator
- Execute this operator over a group of individuals. This method will be
invoked by the current algorithm during its execution. It will be applied on
a list of individuals and will return a list of modified individuals.
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.
- Specified by:
operate
in interface Operator
- Parameters:
algorithm
- the current algorithm, to visit when it is necessary.individuals
- list of individuals on wich we will apply the operator.
- Returns:
- the result of apply this operator to a individuals' lisr.
- Throws:
OperatorException
- when occurs some type of error during the execution of this operator.
select
protected abstract Individual select(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Specified by:
configure
in interface Configurable