Package org.opt4j.operators.selection
Interface IOperatorSelector
-
- All Known Implementing Classes:
RandomOperatorSelector
,RoundRobinOperatorSelector
public interface IOperatorSelector
Defines a strategy that selects oneOperator
out ofn
Operator
s applicable for a singleGenotype
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <O extends org.opt4j.core.optimizer.Operator<?>>
Oselect(java.util.List<O> applicableOperators, org.opt4j.core.Genotype genotype)
Selects oneOperator
out ofn
Operator
s applicable for a singleGenotype
.
-
-
-
Method Detail
-
select
<O extends org.opt4j.core.optimizer.Operator<?>> O select(java.util.List<O> applicableOperators, org.opt4j.core.Genotype genotype)
Selects oneOperator
out ofn
Operator
s applicable for a singleGenotype
.- Parameters:
applicableOperators
- list of applicableOperator
s.genotype
-Genotype
for which theOperator
shall be applied.- Returns:
- selected
Operator
from the input list.
-
-