Class OpenCLFitness<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.gpu.spec.fitness.OpenCLFitness<T>
- Direct Known Subclasses:
MultiStageFitness
,SingleKernelFitness
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
afterAllEvaluations
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) void
afterEvaluation
(long generation, List<Genotype> genotypes) void
afterEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) void
void
beforeAllEvaluations
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) void
beforeEvaluation
(long generation, List<Genotype> genotypes) void
beforeEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) abstract CompletableFuture
<List<T>> compute
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
OpenCLFitness
public OpenCLFitness()
-
-
Method Details
-
beforeAllEvaluations
public void beforeAllEvaluations() -
beforeAllEvaluations
public void beforeAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) -
beforeEvaluation
-
beforeEvaluation
public void beforeEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) -
compute
public abstract CompletableFuture<List<T>> compute(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) -
afterEvaluation
public void afterEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) -
afterEvaluation
-
afterAllEvaluations
public void afterAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) -
afterAllEvaluations
public void afterAllEvaluations()
-