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

The Taskscore assigns tasks to TaskWorkers. More...

#include <TaskScore.h>

Public Types

enum  Status { PENDING = -1 , RUNNING = -2 , SUCCEEDED = -3 , FAILED = -4 }

Public Member Functions

 TaskScore (MPI_Comm comm, int numTasks)
void store (int taskId, int status)
void print () const
void free ()
 ~TaskScore ()
std::set< int > get (int status) const

Detailed Description

The Taskscore assigns tasks to TaskWorkers.

Class Taskscore

Constructor & Destructor Documentation

◆ TaskScore()

TaskScore::TaskScore ( MPI_Comm comm,
int numTasks )

Constructor

Parameters
commcommunicator
numTasksnumber of tasks

◆ ~TaskScore()

TaskScore::~TaskScore ( )
inline

Destructor

Member Function Documentation

◆ free()

void TaskScore::free ( )
inline

Free the MPI window

◆ get()

std::set< int > TaskScore::get ( int status) const

Get the IDs of the tasks with status condition

Parameters
statusone of PENDING, RUNNING, SUCCEEDED or FAILED
Returns
set of IDs

◆ print()

void TaskScore::print ( ) const

Print

◆ store()

void TaskScore::store ( int taskId,
int status )

Store a score

Parameters
taskIndtask Id
statusone of PENDING, RUNNING, SUCCEEDED or FAILED
Note
this should be called by the remote process

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