wrench::WorkflowFile Class Reference

A data file used/produced by a WorkflowTask in a Workflow. More...

#include <WorkflowFile.h>

Public Member Functions

std::string getID ()
 Get the file id. More...
 
std::map< std::string, WorkflowTask * > getInputOf ()
 Get the list of tasks that use this file as input. More...
 
WorkflowTaskgetOutputOf ()
 Get the task that outputs this file. More...
 
double getSize ()
 Get the file size. More...
 
WorkflowgetWorkflow ()
 Get the workflow that this file is a part of. More...
 
bool isOutput ()
 Returns true if the file is the output of some task, false otherwise. More...
 

Detailed Description

A data file used/produced by a WorkflowTask in a Workflow.

Member Function Documentation

◆ getID()

std::string wrench::WorkflowFile::getID ( )

Get the file id.

Returns
the id

◆ getInputOf()

std::map< std::string, WorkflowTask * > wrench::WorkflowFile::getInputOf ( )

Get the list of tasks that use this file as input.

Returns
a map of tasks index by task ids

◆ getOutputOf()

WorkflowTask * wrench::WorkflowFile::getOutputOf ( )

Get the task that outputs this file.

Returns
a task

◆ getSize()

double wrench::WorkflowFile::getSize ( )

Get the file size.

Returns
a size in bytes

◆ getWorkflow()

Workflow * wrench::WorkflowFile::getWorkflow ( )

Get the workflow that this file is a part of.

Returns
a workflow

◆ isOutput()

bool wrench::WorkflowFile::isOutput ( )

Returns true if the file is the output of some task, false otherwise.

Returns
true or false

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