The SeapodymTaskManager knows how to distribute tasks across workers, how many times a tasks needs to be executed and what the next task should be given to a worker.
More...
#include <SeapodymTaskManager.h>
The SeapodymTaskManager knows how to distribute tasks across workers, how many times a tasks needs to be executed and what the next task should be given to a worker.
Class SeapodymTaskManager
◆ SeapodymTaskManager()
SeapodymTaskManager::SeapodymTaskManager |
( |
int | numAgeGroups, |
|
|
int | numWorkers, |
|
|
int | numTimeSteps ) |
Constructor
- Parameters
-
numAgeGroups | number of age groups that are run concurrently |
numWorkers | number of workers |
numTimeSteps | total number of time steps of the simulation |
- Returns
- list of tasks
◆ getDependencies()
std::set< int > SeapodymTaskManager::getDependencies |
( |
int | taskId | ) |
const |
Get the dependencies of a new task on othe preceeding tasks
- Parameters
-
- Returns
- all the other tasks that feed into this task
◆ getInitTaskIds()
std::vector< int > SeapodymTaskManager::getInitTaskIds |
( |
int | workerId | ) |
const |
Get the initial list of tasks
- Parameters
-
- Returns
- list of tasks
◆ getNextTask()
int SeapodymTaskManager::getNextTask |
( |
int | taskId | ) |
const |
Get the task that follows a terminated task
- Parameters
-
- Returns
- the next task
◆ getNumSteps()
int SeapodymTaskManager::getNumSteps |
( |
int | taskId | ) |
const |
Get the number of current steps a task will run
- Parameters
-
- Returns
- number of steps
The documentation for this class was generated from the following files: