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
public abstract class ProblemModule extends Opt4JModule
TheProblemModuleis an abstract module class for the binding of theCreator,Decoder, andEvaluator.- See Also:
Creator,Decoder,Evaluator,org.opt4j.core.problem
-
-
Field Summary
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description ProblemModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindProblem(Class<? extends Creator> creator, Class<? extends Decoder> decoder, Class<? extends Evaluator> evaluator)Binds a problem.-
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
-
-
-
-
Method Detail
-
bindProblem
protected void bindProblem(Class<? extends Creator> creator, Class<? extends Decoder> decoder, Class<? extends Evaluator> evaluator)
Binds a problem. A valuenullis 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
-
-