Class EAExecutionContexts

java.lang.Object
net.bmahe.genetics4j.core.spec.EAExecutionContexts

public class EAExecutionContexts extends Object
Defines multiple factory and helper methods to create and manage EAExecutionContexts
  • Constructor Details

    • EAExecutionContexts

      private EAExecutionContexts()
  • Method Details

    • standard

      public static <T extends Comparable<T>> ImmutableEAExecutionContext.Builder<T> standard()
    • enrichForScalarFitness

      public static <T extends Number & Comparable<T>> ImmutableEAExecutionContext.Builder<T> enrichForScalarFitness(ImmutableEAExecutionContext.Builder<T> builder)
      Enrich an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.

      This will enrich it with additional implementations for selecting, combining and mutating individuals.

      Type Parameters:
      T - Type of the fitness measurement
      Parameters:
      builder -
      Returns:
      Enriched EAExecutionContext builder
    • forScalarFitness

      public static <T extends Number & Comparable<T>> ImmutableEAExecutionContext.Builder<T> forScalarFitness()
      Create an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.

      This will enrich it with additional implementations for selecting, combining and mutating individuals.

      Type Parameters:
      T -
      Returns: