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
The ProblemModule is an abstract module class for the binding of the Creator, Decoder, and Evaluator.
See Also:
  • 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 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.
      Parameters:
      creator - the creator
      decoder - the decoder
      evaluator - the evaluator