Scheduler
|
#include <system.h>
Public Member Functions | |
~System () | |
TaskScheduler * | getScheduler () |
returns the task scheduler object More... | |
void | updateTemperature (double timeInterval) |
updates and logs the temperature of the processor. This function has to be called at least every time the task executed by the processor changes. More... | |
void | updateFreq () |
invokes the frequency governor to changes the frequency of the processor More... | |
Processor * | getProc () |
return the processor More... | |
void | end () |
prints reports More... | |
void | addRealTimeTask (std::shared_ptr< Process > p) |
add a real-time task to the system's list More... | |
std::vector< std::shared_ptr< Process > > | getStaticTaskSet () |
get the list of real-time tasks in the system More... | |
long long int | getJobsArrivalCount () |
returns the number of jobs issued since the beginning of the simulation More... | |
void | incrementJobsArrivalCount () |
increments the number of jobs issued since the beginning of simulation More... | |
void | printProcessesReport () |
Static Public Member Functions | |
static void | buildSystem (std::shared_ptr< SchedulerConfiguration > conf) |
static System * | getInstance () |
System::~System | ( | ) |
Definition at line 64 of file system.cpp.
void System::addRealTimeTask | ( | std::shared_ptr< Process > | p | ) |
add a real-time task to the system's list
p | the task to be added |
Definition at line 127 of file system.cpp.
|
static |
Definition at line 34 of file system.cpp.
void System::end | ( | ) |
prints reports
Definition at line 120 of file system.cpp.
|
static |
Definition at line 28 of file system.cpp.
long long int System::getJobsArrivalCount | ( | ) |
returns the number of jobs issued since the beginning of the simulation
Definition at line 139 of file system.cpp.
Processor * System::getProc | ( | ) |
return the processor
Definition at line 76 of file system.cpp.
TaskScheduler * System::getScheduler | ( | ) |
returns the task scheduler object
Definition at line 110 of file system.cpp.
std::vector< std::shared_ptr< Process > > System::getStaticTaskSet | ( | ) |
get the list of real-time tasks in the system
Definition at line 133 of file system.cpp.
void System::incrementJobsArrivalCount | ( | ) |
increments the number of jobs issued since the beginning of simulation
Definition at line 144 of file system.cpp.
void System::printProcessesReport | ( | ) |
Definition at line 89 of file system.cpp.
void System::updateFreq | ( | ) |
invokes the frequency governor to changes the frequency of the processor
Definition at line 102 of file system.cpp.
void System::updateTemperature | ( | double | timeInterval | ) |
updates and logs the temperature of the processor. This function has to be called at least every time the task executed by the processor changes.
Definition at line 71 of file system.cpp.