|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.opt4j.core.start.Opt4JModule
org.opt4j.core.problem.ProblemModule
public abstract class ProblemModule
The ProblemModule is an abstract module class for the binding of the
Creator, Decoder, and Evaluator.
Creator,
Decoder,
Evaluator| Field Summary |
|---|
| Fields inherited from class org.opt4j.core.start.Opt4JModule |
|---|
SINGLETON |
| Constructor Summary | |
|---|---|
ProblemModule()
|
|
| Method Summary | |
|---|---|
protected void |
addEvaluator(java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
Binds an additional Evaluator. |
protected void |
bindProblem(java.lang.Class<? extends Creator<? extends Genotype>> creator,
java.lang.Class<? extends Decoder<? extends Genotype,? extends java.lang.Object>> decoder,
java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
Binds a problem. |
| Methods inherited from class org.opt4j.core.start.Opt4JModule |
|---|
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, config, configure, constant, multi |
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProblemModule()
| Method Detail |
|---|
protected void bindProblem(java.lang.Class<? extends Creator<? extends Genotype>> creator,
java.lang.Class<? extends Decoder<? extends Genotype,? extends java.lang.Object>> decoder,
java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
Binds a problem. A value null is allowed. In this case, the
corresponding interface is not bound. Therefore, the binding for the
omitted interfaces has to be done in other modules.
Additional Evaluators can be bound using
addEvaluator(Class).
creator - the creatordecoder - the decoderevaluator - the evaluatorprotected void addEvaluator(java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
Evaluator.
evaluator - the evaluator to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||