|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operator
An Operator represents an operation that takes place on a list of indivuduals during the evolution process. Examples of operators include reproduction, crossover, and mutation.
This interface contains two methods: operate and setParameters. The first one is responsible for performing the operator on the current algorithm and the current list of individuals. The second one, setParameters is responsible for configure the operator with the values established on the configuration file. For example, using a XML configuration file this will contain a tag like this:
<Operator> <Class>es.udc.gii.common.eaf.algorithm.operator .reproduction.crossover.Order1CrossOver</Class> <Probability>100</Probability> </Operator>
Method Summary | |
---|---|
java.util.List<Individual> |
operate(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
Execute this operator over a group of individuals. |
Methods inherited from interface es.udc.gii.common.eaf.config.Configurable |
---|
configure |
Method Detail |
---|
java.util.List<Individual> operate(EvolutionaryAlgorithm algorithm, java.util.List<Individual> individuals) throws OperatorException
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.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |