P
- The specific operator with a wildcard (?).public abstract class OperatorModule<P extends org.opt4j.core.optimizer.Operator>
extends org.opt4j.core.start.Opt4JModule
Operator
.Constructor and Description |
---|
OperatorModule() |
Modifier and Type | Method and Description |
---|---|
void |
addOperator(AbstractGenericOperator.OperatorPredicate predicate,
java.lang.Class<? extends P> operator)
Add an
Operator and apply it to each Genotype that
satisfies the predicate. |
void |
addOperator(java.lang.Class<? extends org.opt4j.core.Genotype> genotype,
java.lang.Class<? extends P> operator)
Add an
Operator and apply it to each Genotype that equals
the given class. |
void |
addOperator(java.lang.Class<? extends P> operator)
Add an
Operator . |
void |
addOperatorSelector(java.lang.Class<? extends org.opt4j.core.Genotype> genotype,
java.lang.Class<? extends org.opt4j.core.optimizer.Operator> operatorType,
java.lang.Class<? extends IOperatorSelector> selector)
Adds an
IOperatorSelector that decides which Operator is executed in case
multiple Operator s are registered for a Genotype . |
void |
addOperatorSelectorInstance(java.lang.Class<? extends org.opt4j.core.Genotype> genotype,
java.lang.Class<? extends org.opt4j.core.optimizer.Operator> operatorType,
IOperatorSelector selector)
Adds an
IOperatorSelector that decides which Operator is executed in case
multiple Operator s are registered for a Genotype . |
protected abstract com.google.inject.TypeLiteral<P> |
getOperatorTypeLiteral() |
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, config, configure, constant, multi
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public void addOperator(java.lang.Class<? extends P> operator)
Operator
.operator
- the operator to be addedpublic void addOperator(AbstractGenericOperator.OperatorPredicate predicate, java.lang.Class<? extends P> operator)
Operator
and apply it to each Genotype
that
satisfies the predicate.predicate
- the predicateoperator
- the operatorprotected abstract com.google.inject.TypeLiteral<P> getOperatorTypeLiteral()
public void addOperator(java.lang.Class<? extends org.opt4j.core.Genotype> genotype, java.lang.Class<? extends P> operator)
Operator
and apply it to each Genotype
that equals
the given class.genotype
- the genotype classoperator
- the operatorpublic void addOperatorSelector(java.lang.Class<? extends org.opt4j.core.Genotype> genotype, java.lang.Class<? extends org.opt4j.core.optimizer.Operator> operatorType, java.lang.Class<? extends IOperatorSelector> selector)
IOperatorSelector
that decides which Operator
is executed in case
multiple Operator
s are registered for a Genotype
.genotype
- Genotype
type for which the IOperatorSelector
is applicable.selector
- The IOperatorSelector
to add.public void addOperatorSelectorInstance(java.lang.Class<? extends org.opt4j.core.Genotype> genotype, java.lang.Class<? extends org.opt4j.core.optimizer.Operator> operatorType, IOperatorSelector selector)
IOperatorSelector
that decides which Operator
is executed in case
multiple Operator
s are registered for a Genotype
.genotype
- Genotype
type for which the IOperatorSelector
is applicable.selector
- The IOperatorSelector
to add.