wrench::WorkflowTask Class Reference

A computational task in a Workflow. More...

#include <WorkflowTask.h>

Public Member Functions

void addInputFile (WorkflowFile *file)
 Add an input file to the task. More...
 
void addOutputFile (WorkflowFile *file)
 Add an output file to the task. More...
 
std::vector< WorkflowTask * > getChildren () const
 Get the children of a task. More...
 
unsigned int getFailureCount ()
 Get the number of times a task has failed. More...
 
double getFlops () const
 Get the number of flops of the task. More...
 
std::string getID () const
 Get the id of the task. More...
 
unsigned long getMaxNumCores () const
 Get the maximum number of cores that the task can use. More...
 
double getMemoryRequirement () const
 Get the memory_manager_service requirement of the task. More...
 
unsigned long getMinNumCores () const
 Get the minimum number of cores required for running the task. More...
 
unsigned long getNumberOfChildren () const
 Get the number of children of a task. More...
 
unsigned long getNumberOfParents () const
 Get the number of parents of a task. More...
 
std::shared_ptr< ParallelModelgetParallelModel ()
 Get the task's parallel model. More...
 
std::vector< WorkflowTask * > getParents () const
 Get the parents of a task. More...
 
void setParallelModel (std::shared_ptr< ParallelModel > model)
 Set the task's parallel model. More...
 

Detailed Description

A computational task in a Workflow.

Member Function Documentation

◆ addInputFile()

void wrench::WorkflowTask::addInputFile ( WorkflowFile file)

Add an input file to the task.

Parameters
filethe file
Exceptions
std::invalid_argument

◆ addOutputFile()

void wrench::WorkflowTask::addOutputFile ( WorkflowFile file)

Add an output file to the task.

Parameters
filethe file

◆ getChildren()

std::vector< WorkflowTask * > wrench::WorkflowTask::getChildren ( ) const

Get the children of a task.

Returns
a list of workflow tasks

◆ getFailureCount()

unsigned int wrench::WorkflowTask::getFailureCount ( )

Get the number of times a task has failed.

Returns
a failure count

◆ getFlops()

double wrench::WorkflowTask::getFlops ( ) const

Get the number of flops of the task.

Returns
a number of flops

◆ getID()

std::string wrench::WorkflowTask::getID ( ) const

Get the id of the task.

Returns
an id as a string

◆ getMaxNumCores()

unsigned long wrench::WorkflowTask::getMaxNumCores ( ) const

Get the maximum number of cores that the task can use.

Returns
a number of cores

◆ getMemoryRequirement()

double wrench::WorkflowTask::getMemoryRequirement ( ) const

Get the memory_manager_service requirement of the task.

Returns
a memory_manager_service requirement (in bytes)

◆ getMinNumCores()

unsigned long wrench::WorkflowTask::getMinNumCores ( ) const

Get the minimum number of cores required for running the task.

Returns
a number of cores

◆ getNumberOfChildren()

unsigned long wrench::WorkflowTask::getNumberOfChildren ( ) const

Get the number of children of a task.

Returns
a number of children

◆ getNumberOfParents()

unsigned long wrench::WorkflowTask::getNumberOfParents ( ) const

Get the number of parents of a task.

Returns
a number of parents

◆ getParallelModel()

std::shared_ptr< ParallelModel > wrench::WorkflowTask::getParallelModel ( )

Get the task's parallel model.

Returns
the parallel model

◆ getParents()

std::vector< WorkflowTask * > wrench::WorkflowTask::getParents ( ) const

Get the parents of a task.

Returns
a list of workflow tasks

◆ setParallelModel()

void wrench::WorkflowTask::setParallelModel ( std::shared_ptr< ParallelModel model)

Set the task's parallel model.

Parameters
modela parallel model

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