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...
 
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 requirement of the task. More...
 
unsigned long getMinNumCores () const
 Get the minimum number of cores required for running the task. More...
 
int getNumberOfChildren () const
 Get the number of children of a task. More...
 
int getNumberOfParents () const
 Get the number of parents of a task. More...
 
double getParallelEfficiency () const
 Get the parallel efficiency of the task. More...
 

Detailed Description

A computational task in a Workflow.

Member Function Documentation

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

Add an input file to the task.

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

Add an output file to the task.

Parameters
filethe file
unsigned int wrench::WorkflowTask::getFailureCount ( )

Get the number of times a task has failed.

Returns
a failure count
double wrench::WorkflowTask::getFlops ( ) const

Get the number of flops of the task.

Returns
a number of flops
std::string wrench::WorkflowTask::getID ( ) const

Get the id of the task.

Returns
an id as a string
unsigned long wrench::WorkflowTask::getMaxNumCores ( ) const

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

Returns
a number of cores
double wrench::WorkflowTask::getMemoryRequirement ( ) const

Get the memory requirement of the task.

Returns
a memory requirement (in bytes)
unsigned long wrench::WorkflowTask::getMinNumCores ( ) const

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

Returns
a number of cores
int wrench::WorkflowTask::getNumberOfChildren ( ) const

Get the number of children of a task.

Returns
a number of children
int wrench::WorkflowTask::getNumberOfParents ( ) const

Get the number of parents of a task.

Returns
a number of parents
double wrench::WorkflowTask::getParallelEfficiency ( ) const

Get the parallel efficiency of the task.

Returns
a parallel efficiency (number between 0.0 and 1.0)

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/workflow/WorkflowTask.h
  • /home/wrench/wrench/src/wrench/workflow/WorkflowTask.cpp