#include <resource.h>
Definition at line 82 of file resource.h.
Definition at line 74 of file resource.cc.
int setCapacity(std::vector< Capacity > cap)
double Resource::getArch |
( |
| ) |
|
|
inline |
Definition at line 119 of file resource.cc.
std::vector< Capacity > capacity
Definition at line 129 of file resource.cc.
130 std::cerr <<
"Type:\t"<<
type;
132 std::cerr <<
"Architecture:\t"<<
arch;
134 std::cerr <<
"Capacities:\t";
135 std::vector <Capacity>::iterator iter;
138 std::cerr << (*iter) <<
",";
std::vector< Capacity > capacity
int Resource::setCapacity |
( |
std::vector< Capacity > |
cap | ) |
|
|
protected |
Definition at line 110 of file resource.cc.
std::vector< Capacity > capacity
int Resource::setType |
( |
const char * |
t | ) |
|
|
protected |
Definition at line 103 of file resource.cc.
static res_type translateType(const char *t)
void Resource::sortCapacity |
( |
| ) |
|
|
protected |
Definition at line 115 of file resource.cc.
std::vector< Capacity > capacity
res_type Resource::translateType |
( |
const char * |
t | ) |
|
|
static |
Definition at line 85 of file resource.cc.
87 if(strcmp(t,
"Computing") == 0){
89 }
else if(strcmp(t,
"Memory") == 0){
91 }
else if(strcmp(t,
"Storage") == 0){
93 }
else if(strcmp(t,
"Networking") == 0){
96 std::cerr <<
"Unknown resource type" << t;
std::vector<Capacity> Resource::capacity |
Capacities of resources, e.g. MIPS for each core, B for each disk in an array
Definition at line 87 of file resource.h.
Type of resource, see enum ( e.g. CPU, Memory, Disk, Network Interface)
Definition at line 95 of file resource.h.
The documentation for this class was generated from the following files: