#include <resourcespec.h>
Definition at line 24 of file resourcespec.h.
| ResourceSpec::ResourceSpec |
( |
| ) |
|
Definition at line 19 of file resourcespec.cc.
std::vector< Capacity > capacity
std::vector< int > power_states
| ResourceSpec::~ResourceSpec |
( |
| ) |
|
|
virtual |
| int ResourceSpec::addCapacity |
( |
double |
cap | ) |
|
| int ResourceSpec::addPowerState |
( |
int |
ps | ) |
|
| int ResourceSpec::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
Definition at line 74 of file resourcespec.cc.
78 if (strcmp(argv[1],
"print") == 0) {
82 }
else if (argc == 3) {
83 if (strcmp(argv[1],
"add-capacity") == 0) {
86 }
else if(strcmp(argv[1],
"add-power-state") == 0){
89 }
else if(strcmp(argv[1],
"set-type") == 0){
95 }
else if(strcmp(argv[1],
"set-name") == 0){
98 }
else if(strcmp(argv[1],
"set-arch") == 0){
101 }
else if (strcmp(argv[1],
"set-power-model") == 0) {
virtual int command(int argc, const char *const *argv)
int setType(const char *t)
int setArch(const char *name)
int addCapacity(double cap)
int setName(const char *name)
void setPowerModel(PowerModel *model)
int addPowerState(int ps)
| void ResourceSpec::print |
( |
| ) |
|
Definition at line 57 of file resourcespec.cc.
58 std::cerr <<
"ResourceSpec:\t";
62 std::vector <int>::iterator iter;
63 std::cerr <<
"Power states:\t";
66 std::cerr << (*iter) <<
",";
std::vector< int > power_states
| int ResourceSpec::setArch |
( |
const char * |
name | ) |
|
| int ResourceSpec::setName |
( |
const char * |
name | ) |
|
| void ResourceSpec::setPowerModel |
( |
PowerModel * |
model | ) |
|
|
private |
| std::string ResourceSpec::name_ |
| std::vector<int> ResourceSpec::power_states |
The documentation for this class was generated from the following files: