Class ProblemModule

    • Constructor Detail

      • ProblemModule

        public ProblemModule()
    • Method Detail

      • bindProblem

        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).

        Parameters:
        creator - the creator
        decoder - the decoder
        evaluator - the evaluator
      • addEvaluator

        protected void addEvaluator​(java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
        Binds an additional Evaluator.
        Parameters:
        evaluator - the evaluator to use
      • addEvaluator

        public static void addEvaluator​(com.google.inject.Binder binder,
                                        java.lang.Class<? extends Evaluator<? extends java.lang.Object>> evaluator)
        Binds an additional Evaluator to a given Binder.
        Parameters:
        binder - the guice binder to use
        evaluator - the evaluator to use
        See Also:
        AbstractModule.binder()
      • bindProblem

        public static void bindProblem​(com.google.inject.Binder binder,
                                       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).

        Parameters:
        binder - the guice binder
        creator - the creator
        decoder - the decoder
        evaluator - the evaluator
        See Also:
        AbstractModule.binder()