pelib  2.0.0
pelib::Taskgraph Class Reference

#include <Taskgraph.hpp>

Inheritance diagram for pelib::Taskgraph:
[legend]

List of all members.

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 Taskgraphclone () 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 TaskfindTask (const string &taskId) const
virtual const set< Link > & getLinks () const
virtual set< Link > & getLinks ()
virtual Taskgraphoperator= (const Taskgraph &copy)

Protected Member Functions

virtual void setLinks (const set< Link > &link)

Protected Attributes

string name
string deadlineCalculator
set< Tasktasks
set< Linklinks

Detailed Description

Models a high-level description of a streaming application

Definition at line 41 of file Taskgraph.hpp.


Constructor & Destructor Documentation

Constructor

Definition at line 48 of file Taskgraph.cpp.

Copy constructor

Definition at line 125 of file Taskgraph.cpp.

Copy constructor

Definition at line 133 of file Taskgraph.cpp.

pelib::Taskgraph::Taskgraph ( const set< Task > &  tasks,
const set< Link > &  links 
)

Constructor

Parameters:
tasksSet of tasks in the application
linksSet of links between tasks in the application

Definition at line 52 of file Taskgraph.cpp.

pelib::Taskgraph::Taskgraph ( const Algebra algebra)

Constructor

Parameters:
algebraAlgebraic representation of a streaming application

Definition at line 141 of file Taskgraph.cpp.

Destructor

Definition at line 71 of file Taskgraph.cpp.


Member Function Documentation

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.

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.

Taskgraph & pelib::Taskgraph::operator= ( const Taskgraph copy) [virtual]

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.


Member Data Documentation

Definition at line 120 of file Taskgraph.hpp.

Definition at line 122 of file Taskgraph.hpp.

Definition at line 120 of file Taskgraph.hpp.

Definition at line 121 of file Taskgraph.hpp.


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