pelib
2.0.0
|
#include <DeadlineFormula.hpp>
Public Member Functions | |
DeadlineFormula (string formula) | |
virtual double | calculate (const Taskgraph &tg, const Platform &arch) const |
Computes a deadline from a mathematical expression in a string
Definition at line 30 of file DeadlineFormula.hpp.
DeadlineFormula::DeadlineFormula | ( | string | formula | ) |
Constructor
formula | String mathematical formula to be intepreted to compute a deadline |
Definition at line 42 of file DeadlineFormula.cpp.
double DeadlineFormula::calculate | ( | const Taskgraph & | tg, |
const Platform & | arch | ||
) | const [virtual] |
Interpret and computes a deadline given instances of a Taskgraph and of a Platform
tg | Taskgraph containing the tasks to run withing the deadline to compure |
arch | Platform that runs the tasks |
Implements pelib::DeadlineCalculator.
Definition at line 45 of file DeadlineFormula.cpp.