A computational task in a Workflow.
More...
#include <WorkflowTask.h>
A computational task in a Workflow.
◆ addInputFile()
void wrench::WorkflowTask::addInputFile |
( |
WorkflowFile * |
file | ) |
|
Add an input file to the task.
- Parameters
-
- Exceptions
-
◆ addOutputFile()
void wrench::WorkflowTask::addOutputFile |
( |
WorkflowFile * |
file | ) |
|
Add an output file to the task.
- Parameters
-
◆ 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()
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 |
( |
| ) |
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 |
( |
| ) |
const |
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
-
The documentation for this class was generated from the following files: