$darkmode
DENOPTIM
denoptim.task.TasksBatchManager Class Reference

Class that manages the submission of a batch of tasks. More...

Collaboration diagram for denoptim.task.TasksBatchManager:
[legend]

Public Member Functions

 TasksBatchManager ()
 Constructs a new task manager meant to run tasks in batches. More...
 
List< CandidateexecuteTasks (List< Task > syncronisedTasks, int numOfProcessors) throws DENOPTIMException
 Execute the list of tasks. More...
 
void stop ()
 

Private Attributes

List< TasktaskList
 
ExecutorService eservice
 
List< Future< Object > > futures
 

Detailed Description

Class that manages the submission of a batch of tasks.

Author
Vishwesh Venkatraman

Definition at line 39 of file TasksBatchManager.java.

Constructor & Destructor Documentation

◆ TasksBatchManager()

denoptim.task.TasksBatchManager.TasksBatchManager ( )

Constructs a new task manager meant to run tasks in batches.

Definition at line 50 of file TasksBatchManager.java.

Member Function Documentation

◆ executeTasks()

List< Candidate > denoptim.task.TasksBatchManager.executeTasks ( List< Task syncronisedTasks,
int  numOfProcessors 
) throws DENOPTIMException

Execute the list of tasks.

Parameters
syncronisedTasks
numOfProcessors
Returns
if successful return the list of molecules with fitness
Exceptions
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().

Here is the caller graph for this function:

◆ stop()

void denoptim.task.TasksBatchManager.stop ( )

Member Data Documentation

◆ eservice

ExecutorService denoptim.task.TasksBatchManager.eservice
private

◆ futures

List<Future<Object> > denoptim.task.TasksBatchManager.futures
private

◆ taskList

List<Task> denoptim.task.TasksBatchManager.taskList
private

The documentation for this class was generated from the following file: