GreenCloud Simulator
|
#include <cpu.h>
Public Member Functions | |
CPU () | |
virtual | ~CPU () |
double | getCurrentMIPS () |
double | getNominalMIPS () |
virtual int | setSpecification (ResourceSpec *resspec) |
void | setProvider (ResourceProvider *provider) |
void | setDVFS (int eDVFS_enabled_) |
virtual double | getUtilization () |
virtual void | print () |
virtual int | command (int argc, const char *const *argv) |
Public Member Functions inherited from DcResource | |
DcResource () | |
virtual | ~DcResource () |
virtual double | getPower () |
virtual double | getMaxPower () |
Public Member Functions inherited from Resource | |
Resource (res_type t, double a, std::vector< Capacity > cap) | |
void | print () |
virtual | ~Resource () |
res_type | getType () |
double | getArch () |
Public Attributes | |
std::vector< CoreScheduler * > | cores_schedulers_ |
Public Attributes inherited from DcResource | |
ResourceSpec * | specification |
Public Attributes inherited from Resource | |
std::vector< Capacity > | capacity |
Private Member Functions | |
void | getMIPS () |
Private Attributes | |
double | nominal_mips_ |
Additional Inherited Members | |
Static Public Member Functions inherited from Resource | |
static res_type | translateType (const char *t) |
Protected Member Functions inherited from Resource | |
Resource () | |
Resource & | operator= (const Resource &r) |
int | setType (const char *t) |
int | setCapacity (std::vector< Capacity > cap) |
void | sortCapacity () |
Protected Attributes inherited from Resource | |
res_type | type |
double | arch |
|
virtual |
|
private |
Definition at line 31 of file cpu.cc.
double CPU::getNominalMIPS | ( | ) |
|
virtual |
|
virtual |
void CPU::setProvider | ( | ResourceProvider * | provider | ) |
|
virtual |
Sets the resource specification of the resource.
Reimplemented from DcResource.
Definition at line 61 of file cpu.cc.
std::vector<CoreScheduler *> CPU::cores_schedulers_ |