GreenCloud Simulator
Main Page
Classes
Files
File List
File Members
greencloud
powermodel
powermodel.cc
Go to the documentation of this file.
1
/*
2
* powermodel.cc
3
*
4
* @date Sep 12, 2013
5
* @author Guzek:Mateusz
6
*/
7
8
#include "
powermodel.h
"
9
10
11
PowerModel::PowerModel
() {
12
13
}
14
15
PowerModel::~PowerModel
() {
16
17
}
18
19
void
PowerModel::setName
(
const
char
* name){
20
name_
=name;
21
}
22
void
PowerModel::print
() {
23
std::cout <<
"Abstract power model"
;
24
}
25
26
int
PowerModel::command
(
int
argc,
const
char
*
const
* argv)
27
{
28
29
if
(argc == 2) {
30
if
(strcmp(argv[1],
"print"
) == 0) {
31
32
/* print general info */
33
print
();
34
return
(TCL_OK);
35
}
36
}
37
return
(
PowerModel::command
(argc, argv));
38
}
39
PowerModel::PowerModel
PowerModel()
Definition:
powermodel.cc:11
PowerModel::print
virtual void print()
Definition:
powermodel.cc:22
PowerModel::~PowerModel
virtual ~PowerModel()
Definition:
powermodel.cc:15
PowerModel::setName
void setName(const char *name)
Definition:
powermodel.cc:19
PowerModel::name_
std::string name_
Definition:
powermodel.h:27
powermodel.h
PowerModel::command
virtual int command(int argc, const char *const *argv)
Definition:
powermodel.cc:26
Generated on Sat Jan 30 2016 10:58:35 for GreenCloud Simulator by
1.8.11