seapodym-parallel
Fish dynamics models with parameter estimations
Loading...
Searching...
No Matches
SeapodymTaskManager Class Reference

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>

Public Member Functions

 SeapodymTaskManager (int numAgeGroups, int numWorkers, int numTimeSteps)
 
std::vector< int > getInitTaskIds (int workerId) const
 
int getNumSteps (int taskId) const
 
std::set< int > getDependencies (int taskId) const
 
int getNextTask (int taskId) const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ SeapodymTaskManager()

SeapodymTaskManager::SeapodymTaskManager ( int numAgeGroups,
int numWorkers,
int numTimeSteps )

Constructor

Parameters
numAgeGroupsnumber of age groups that are run concurrently
numWorkersnumber of workers
numTimeStepstotal number of time steps of the simulation
Returns
list of tasks

Member Function Documentation

◆ getDependencies()

std::set< int > SeapodymTaskManager::getDependencies ( int taskId) const

Get the dependencies of a new task on othe preceeding tasks

Parameters
taskIdtask ID
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
workerIdworker ID
Returns
list of tasks

◆ getNextTask()

int SeapodymTaskManager::getNextTask ( int taskId) const

Get the task that follows a terminated task

Parameters
taskIdtask ID
Returns
the next task

◆ getNumSteps()

int SeapodymTaskManager::getNumSteps ( int taskId) const

Get the number of current steps a task will run

Parameters
taskIdtask ID
Returns
number of steps

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