Interface GenericOperator<O extends org.opt4j.core.optimizer.Operator<?>>

    • Method Detail

      • addOperatorSelector

        void addOperatorSelector​(java.util.AbstractMap.SimpleEntry<java.lang.Class<? extends org.opt4j.core.Genotype>,​java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>>> selectorKey,
                                 IOperatorSelector selector)
        Adds an IOperatorSelector that decides which Operator is executed in case multiple Operators are registered for a Genotype.
        Parameters:
        genotype - Genotype type for which the IOperatorSelector is applicable.
        selector - The IOperatorSelector to add.
      • getOperator

        O getOperator​(org.opt4j.core.Genotype genotype)
        Returns the Operator for a specific Genotype.
        Parameters:
        genotype - the genotype
        Returns:
        the operator for this genotype
      • getOperators

        java.util.Collection<O> getOperators()
        Returns all classOperators.
        Returns:
        all classOperators