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<?>>
The
GenericOperator
is an interface for generic operators.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOperator
(AbstractGenericOperator.OperatorPredicate predicate, O operator) Adds an operator.getOperator
(Genotype genotype) Returns all classOperators.
-
Method Details
-
addOperator
Adds an operator.- Parameters:
predicate
- the operator predicateoperator
- TheOperator
-
getOperator
- Parameters:
genotype
- the genotype- Returns:
- the operator for this genotype
-
getOperators
Collection<O> getOperators()Returns all classOperators.- Returns:
- all classOperators
-