|
GreenCloud Simulator
|
#include <taskalloc.h>

Public Member Functions | |
| TaskAlloc (CloudTask *ct, int rd, int cap) | |
| virtual | ~TaskAlloc () |
| double | getMIPS () |
| double | getDeadline () |
| void | setExecTime (double execTime) |
| void | setCoreScheduler (CoreScheduler *cs) |
| CoreScheduler * | getCoreScheduler () |
| bool | operator== (const TaskAlloc &other) const |
| void | setComputingRate (double rate) |
| double | execTime () |
| void | updateMIPS () |
| void | removeAfterFailure () |
| void | print () |
Public Attributes | |
| CloudTask * | cloudTask |
| CoreScheduler * | core |
| double | executedSince_ |
Private Attributes | |
| int | rd |
| int | cap |
Definition at line 14 of file taskalloc.h.
| TaskAlloc::TaskAlloc | ( | CloudTask * | ct, |
| int | rd, | ||
| int | cap | ||
| ) |
Definition at line 16 of file taskalloc.cc.
|
virtual |
Definition at line 12 of file taskalloc.cc.
| double TaskAlloc::execTime | ( | ) |
Definition at line 73 of file taskalloc.cc.
| CoreScheduler * TaskAlloc::getCoreScheduler | ( | ) |
Definition at line 31 of file taskalloc.cc.
| double TaskAlloc::getDeadline | ( | ) |
Definition at line 24 of file taskalloc.cc.
| double TaskAlloc::getMIPS | ( | ) |
Definition at line 21 of file taskalloc.cc.
| bool TaskAlloc::operator== | ( | const TaskAlloc & | other | ) | const |
Definition at line 35 of file taskalloc.cc.
| void TaskAlloc::print | ( | ) |
Definition at line 50 of file taskalloc.cc.
| void TaskAlloc::removeAfterFailure | ( | ) |
| void TaskAlloc::setComputingRate | ( | double | rate | ) |
Definition at line 43 of file taskalloc.cc.
| void TaskAlloc::setCoreScheduler | ( | CoreScheduler * | cs | ) |
Definition at line 28 of file taskalloc.cc.
|
inline |
Definition at line 28 of file taskalloc.h.
| void TaskAlloc::updateMIPS | ( | ) |
Definition at line 54 of file taskalloc.cc.
|
private |
capacity
Definition at line 40 of file taskalloc.h.
| CloudTask* TaskAlloc::cloudTask |
Definition at line 17 of file taskalloc.h.
| CoreScheduler* TaskAlloc::core |
Definition at line 19 of file taskalloc.h.
| double TaskAlloc::executedSince_ |
last time instance of task execution
Definition at line 20 of file taskalloc.h.
|
private |
resource demand
Definition at line 39 of file taskalloc.h.
1.8.11