Class FitnessEvaluatorBulkAsync<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.evaluation.FitnessEvaluatorBulkAsync<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
FitnessEvaluator<T>
public class FitnessEvaluatorBulkAsync<T extends Comparable<T>>
extends Object
implements FitnessEvaluator<T>
Wrapper around
FitnessBulkAsync
for
computing the fitness of a population-
Field Summary
Modifier and TypeFieldDescriptionprivate final EAConfigurationBulkAsync
<T> private final ExecutorService
static final org.apache.logging.log4j.Logger
-
Constructor Summary
ConstructorDescriptionFitnessEvaluatorBulkAsync
(EAConfigurationBulkAsync<T> _eaConfigurationBulkAsync, ExecutorService _executorService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bmahe.genetics4j.core.evaluation.FitnessEvaluator
postEvaluation, preEvaluation
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
eaConfigurationBulkAsync
-
executorService
-
-
Constructor Details
-
FitnessEvaluatorBulkAsync
public FitnessEvaluatorBulkAsync(EAConfigurationBulkAsync<T> _eaConfigurationBulkAsync, ExecutorService _executorService)
-
-
Method Details
-
evaluate
Description copied from interface:FitnessEvaluator
Compute the fitness for a list of genotypes- Specified by:
evaluate
in interfaceFitnessEvaluator<T extends Comparable<T>>
- Parameters:
genotypes
- Population to evaluate- Returns:
- Their associated fitnesses
-