public class FitnessEvaluationWorker
extends java.lang.Object
EvolutionEngine
. This responsibility is abstracted away from the
evolution engine to permit the possibility of creating multiple instances
across several machines, all fed by a single shared work queue, using
Terracotta (http://www.terracotta.org) or similar.Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
A FitnessWorker cannot be garbage-collected if its thread pool has not
been shutdown.
|
static void |
main(java.lang.String[] args)
Entry-point for running this class standalone, as an additional node for
fitness evaluations.
|
void |
setThreadCount(int threads) |
<T extends java.lang.Comparable<? super T>> |
submit(org.uncommonseditedbyjoosbuijs.watchmaker.framework.FitnessEvalutationTask<T> task) |
public void setThreadCount(int threads)
public <T extends java.lang.Comparable<? super T>> java.util.concurrent.Future<EvaluatedCandidate<T>> submit(org.uncommonseditedbyjoosbuijs.watchmaker.framework.FitnessEvalutationTask<T> task)
public static void main(java.lang.String[] args)
args
- Program arguments, should be empty.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- Any exception or error that occurs during finalisation.