pelib
2.0.0
|
#include <Taskgraph.hpp>
Public Member Functions | |
Taskgraph () | |
Taskgraph (const Taskgraph *graph) | |
Taskgraph (const Taskgraph &graph) | |
Taskgraph (const set< Task > &tasks, const set< Link > &links) | |
Taskgraph (const Algebra &algebra) | |
virtual | ~Taskgraph () |
virtual Taskgraph * | clone () const |
virtual Algebra | buildAlgebra () const |
virtual Algebra | buildAlgebra (const Platform &arch) const |
virtual string | getName () const |
virtual void | setName (const string name) |
virtual string | getDeadlineCalculator () const |
virtual double | getDeadline (const Platform &arch) const |
virtual void | setDeadlineCalculator (const string deadlineCalculator) |
virtual const set< Task > & | getTasks () const |
virtual set< Task > & | getTasks () |
virtual const Task & | findTask (const string &taskId) const |
virtual const set< Link > & | getLinks () const |
virtual set< Link > & | getLinks () |
virtual Taskgraph & | operator= (const Taskgraph ©) |
Protected Member Functions | |
virtual void | setLinks (const set< Link > &link) |
Protected Attributes | |
string | name |
string | deadlineCalculator |
set< Task > | tasks |
set< Link > | links |
Models a high-level description of a streaming application
Definition at line 41 of file Taskgraph.hpp.
Constructor
Definition at line 48 of file Taskgraph.cpp.
pelib::Taskgraph::Taskgraph | ( | const Taskgraph * | graph | ) |
Copy constructor
Definition at line 125 of file Taskgraph.cpp.
pelib::Taskgraph::Taskgraph | ( | const Taskgraph & | graph | ) |
Copy constructor
Definition at line 133 of file Taskgraph.cpp.
pelib::Taskgraph::Taskgraph | ( | const set< Task > & | tasks, |
const set< Link > & | links | ||
) |
Constructor
Definition at line 52 of file Taskgraph.cpp.
pelib::Taskgraph::Taskgraph | ( | const Algebra & | algebra | ) |
Constructor
algebra | Algebraic representation of a streaming application |
Definition at line 141 of file Taskgraph.cpp.
pelib::Taskgraph::~Taskgraph | ( | ) | [virtual] |
Destructor
Definition at line 71 of file Taskgraph.cpp.
Algebra pelib::Taskgraph::buildAlgebra | ( | ) | const [virtual] |
Builds an algebraic representation of this taskgraph, assuming 1 core
Definition at line 225 of file Taskgraph.cpp.
Algebra pelib::Taskgraph::buildAlgebra | ( | const Platform & | arch | ) | const [virtual] |
Builds an algebraic representation of this taskgraph, for the Platform given as parameter
Definition at line 237 of file Taskgraph.cpp.
Taskgraph * pelib::Taskgraph::clone | ( | ) | const [virtual] |
Returns a pointer to a copy of this taskgraph
Implements pelib::Record.
Definition at line 219 of file Taskgraph.cpp.
const Task & pelib::Taskgraph::findTask | ( | const string & | taskId | ) | const [virtual] |
Fins a task in this application using its string identifier
Definition at line 377 of file Taskgraph.cpp.
double pelib::Taskgraph::getDeadline | ( | const Platform & | arch | ) | const [virtual] |
Computes the deadline for this application given an execution platform
Definition at line 354 of file Taskgraph.cpp.
string pelib::Taskgraph::getDeadlineCalculator | ( | ) | const [virtual] |
Get the formula that computes the deadline for each pipeline stage running this application
Definition at line 334 of file Taskgraph.cpp.
const set< Link > & pelib::Taskgraph::getLinks | ( | ) | const [virtual] |
Gets all links between tasks in this application
Definition at line 391 of file Taskgraph.cpp.
set< Link > & pelib::Taskgraph::getLinks | ( | ) | [virtual] |
Gets all links between tasks in this application
Definition at line 397 of file Taskgraph.cpp.
string pelib::Taskgraph::getName | ( | ) | const [virtual] |
Get the name of the application i.e. what it computes
Definition at line 322 of file Taskgraph.cpp.
const set< Task > & pelib::Taskgraph::getTasks | ( | ) | const [virtual] |
Returns the number of tasks in this application
Definition at line 365 of file Taskgraph.cpp.
set< Task > & pelib::Taskgraph::getTasks | ( | ) | [virtual] |
Returns the number of tasks in this application
Definition at line 371 of file Taskgraph.cpp.
Copies all tasks and set links to task copies in the taskgraph instance that receives the assignment
Definition at line 403 of file Taskgraph.cpp.
void pelib::Taskgraph::setDeadlineCalculator | ( | const string | deadlineCalculator | ) | [virtual] |
Sets the formula that computes the deadline for this applicaion
Definition at line 340 of file Taskgraph.cpp.
void pelib::Taskgraph::setLinks | ( | const set< Link > & | link | ) | [protected, virtual] |
Definition at line 77 of file Taskgraph.cpp.
void pelib::Taskgraph::setName | ( | const string | name | ) | [virtual] |
Set the name of the application i.e. what it computes
Definition at line 328 of file Taskgraph.cpp.
string pelib::Taskgraph::deadlineCalculator [protected] |
Definition at line 120 of file Taskgraph.hpp.
set<Link> pelib::Taskgraph::links [protected] |
Definition at line 122 of file Taskgraph.hpp.
string pelib::Taskgraph::name [protected] |
Definition at line 120 of file Taskgraph.hpp.
set<Task> pelib::Taskgraph::tasks [protected] |
Definition at line 121 of file Taskgraph.hpp.