public class MultithreadedEvaluator extends Object implements SynchronousParallelTaskExecutor
| Constructor and Description |
|---|
MultithreadedEvaluator(int threads)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Object[] taskParameters)
Adds a solution to be evaluated to a list of tasks
|
Object |
parallelExecution()
Evaluates a list of solutions
|
void |
start(Object problem)
Constructor
|
void |
stop()
Shutdown the executor
|
public MultithreadedEvaluator(int threads)
threads - Number of requested threads. A value of 0 implicates to request the maximum
number of available threads in the system.public void start(Object problem)
start in interface SynchronousParallelTaskExecutorproblem - problem to solvepublic void addTask(Object[] taskParameters)
addTask in interface SynchronousParallelTaskExecutorpublic Object parallelExecution()
parallelExecution in interface SynchronousParallelTaskExecutorpublic void stop()
stop in interface SynchronousParallelTaskExecutorCopyright © 2015. All rights reserved.