|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
es.udc.gii.common.eaf.algorithm.operator.replace.ReplaceOperator
public abstract class ReplaceOperator
Constructor Summary | |
---|---|
ReplaceOperator()
Creates a new instance of ReplaceOperator |
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 java.util.List<Individual> |
replace(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> toPopulation)
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplaceOperator()
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 java.util.List<Individual> replace(EvolutionaryAlgorithm algorithm, java.util.List<Individual> toPopulation)
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 |