public class RoundRobinOperatorSelector extends java.lang.Object implements IOperatorSelector
Operator
out of the given Operator
s by a round robin
principle. The list of passed applicable Operator
s is assumed to have a fixed order:
the selection index is bound to the Genotype
to be modified.Constructor and Description |
---|
RoundRobinOperatorSelector() |
Modifier and Type | Method and Description |
---|---|
<O extends org.opt4j.core.optimizer.Operator<?>> |
select(java.util.List<O> applicableOperators,
org.opt4j.core.Genotype genotype)
Selects one
Operator out of n Operator s applicable for a single
Genotype . |
public <O extends org.opt4j.core.optimizer.Operator<?>> O select(java.util.List<O> applicableOperators, org.opt4j.core.Genotype genotype)
IOperatorSelector
Operator
out of n
Operator
s applicable for a single
Genotype
.select
in interface IOperatorSelector
applicableOperators
- list of applicable Operator
s.genotype
- Genotype
for which the Operator
shall be applied.Operator
from the input list.