Package org.opt4j.core.problem
Class ProblemModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.core.problem.ProblemModule
- All Implemented Interfaces:
com.google.inject.Module
The
ProblemModule
is an abstract module class for the binding of the
Creator
, Decoder
, and Evaluator
.- See Also:
-
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opt4j.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
-
Constructor Details
-
ProblemModule
public ProblemModule()
-
-
Method Details
-
bindProblem
protected void bindProblem(Class<? extends Creator> creator, Class<? extends Decoder> decoder, Class<? extends Evaluator> evaluator) Binds a problem. A valuenull
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.- Parameters:
creator
- the creatordecoder
- the decoderevaluator
- the evaluator
-