WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | List of all members
wrench::WorkflowTask Class Reference

A computational task in a Workflow. More...

#include <WorkflowTask.h>

Inheritance diagram for wrench::WorkflowTask:

Public Member Functions

void addInputFile (std::shared_ptr< DataFile >file)
 Add an input file to the task. More...
 
void addOutputFile (std::shared_ptr< DataFile >file)
 Add an output file to the task. More...
 
std::vector< std::shared_ptr< WorkflowTask > > getChildren ()
 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...
 
const 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 ()
 Get the number of children of a task. More...
 
unsigned long getNumberOfParents ()
 Get the number of parents of a task. More...
 
std::shared_ptr< ParallelModelgetParallelModel () const
 Get the task's parallel model. More...
 
std::vector< std::shared_ptr< WorkflowTask > > getParents ()
 Get the parents of a task. More...
 
std::shared_ptr< WorkflowTaskgetSharedPtr ()
 
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 ( std::shared_ptr< DataFile file)

Add an input file to the task.

Parameters
filethe file
Exceptions
std::invalid_argument

◆ addOutputFile()

void wrench::WorkflowTask::addOutputFile ( std::shared_ptr< DataFile file)

Add an output file to the task.

Parameters
filethe file

◆ getChildren()

std::vector< std::shared_ptr< WorkflowTask > > wrench::WorkflowTask::getChildren ( )

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()

const 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 ( )

Get the number of children of a task.

Returns
a number of children

◆ getNumberOfParents()

unsigned long wrench::WorkflowTask::getNumberOfParents ( )

Get the number of parents of a task.

Returns
a number of parents

◆ getParallelModel()

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

Get the task's parallel model.

Returns
the parallel model

◆ getParents()

std::vector< std::shared_ptr< WorkflowTask > > wrench::WorkflowTask::getParents ( )

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: