Package org.opt4j.operator
Interface GenericOperator<O extends Operator<?>>
-
- Type Parameters:
O
- the operator
- All Known Implementing Classes:
AbstractGenericOperator
,AlgebraGenericImplementation
,CopyGenericImplementation
,CrossoverGenericImplementation
,DiversityGenericImplementation
,MutateGenericImplementation
,NeighborGenericImplementation
public interface GenericOperator<O extends Operator<?>>
TheGenericOperator
is an interface for generic operators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOperator(AbstractGenericOperator.OperatorPredicate predicate, O operator)
Adds an operator.O
getOperator(Genotype genotype)
Collection<O>
getOperators()
Returns all classOperators.
-
-
-
Method Detail
-
addOperator
void addOperator(AbstractGenericOperator.OperatorPredicate predicate, O operator)
Adds an operator.- Parameters:
predicate
- the operator predicateoperator
- TheOperator
-
getOperator
O getOperator(Genotype genotype)
- Parameters:
genotype
- the genotype- Returns:
- the operator for this genotype
-
getOperators
Collection<O> getOperators()
Returns all classOperators.- Returns:
- all classOperators
-
-