Interface GenericOperator<O extends Operator<?>>

Type Parameters:
O - the operator
All Known Implementing Classes:
AbstractGenericOperator, AlgebraGenericImplementation, CopyGenericImplementation, CrossoverGenericImplementation, DiversityGenericImplementation, MutateGenericImplementation, NeighborGenericImplementation

public interface GenericOperator<O extends Operator<?>>
The GenericOperator is an interface for generic operators.
  • Method Details

    • addOperator

      void addOperator(AbstractGenericOperator.OperatorPredicate predicate, O operator)
      Adds an operator.
      Parameters:
      predicate - the operator predicate
      operator - The Operator
    • getOperator

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

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