$darkmode
DENOPTIM
|
Class that manages the submission of a batch of tasks. More...
Public Member Functions | |
TasksBatchManager () | |
Constructs a new task manager meant to run tasks in batches. More... | |
List< Candidate > | executeTasks (List< Task > syncronisedTasks, int numOfProcessors) throws DENOPTIMException |
Execute the list of tasks. More... | |
void | stop () |
Private Attributes | |
List< Task > | taskList |
ExecutorService | eservice |
List< Future< Object > > | futures |
Class that manages the submission of a batch of tasks.
Definition at line 39 of file TasksBatchManager.java.
denoptim.task.TasksBatchManager.TasksBatchManager | ( | ) |
Constructs a new task manager meant to run tasks in batches.
Definition at line 50 of file TasksBatchManager.java.
List< Candidate > denoptim.task.TasksBatchManager.executeTasks | ( | List< Task > | syncronisedTasks, |
int | numOfProcessors | ||
) | throws DENOPTIMException |
Execute the list of tasks.
syncronisedTasks | |
numOfProcessors |
DENOPTIMException |
Definition at line 63 of file TasksBatchManager.java.
References denoptim.task.TasksBatchManager.eservice, denoptim.task.TasksBatchManager.futures, and denoptim.task.TasksBatchManager.taskList.
Referenced by denoptim.ga.EvolutionaryAlgorithm.submitSyncParallelBatch().
void denoptim.task.TasksBatchManager.stop | ( | ) |
Definition at line 170 of file TasksBatchManager.java.
References denoptim.task.TasksBatchManager.eservice, denoptim.task.TasksBatchManager.futures, and denoptim.task.TasksBatchManager.taskList.
|
private |
Definition at line 42 of file TasksBatchManager.java.
Referenced by denoptim.task.TasksBatchManager.executeTasks(), and denoptim.task.TasksBatchManager.stop().
|
private |
Definition at line 43 of file TasksBatchManager.java.
Referenced by denoptim.task.TasksBatchManager.executeTasks(), and denoptim.task.TasksBatchManager.stop().
|
private |
Definition at line 41 of file TasksBatchManager.java.
Referenced by denoptim.task.TasksBatchManager.executeTasks(), and denoptim.task.TasksBatchManager.stop().