GreenCloud Simulator
powermodel.h
Go to the documentation of this file.
1 /*
2  * PowerModel.h
3  *
4  * @date Sep 12, 2013
5  * @author Guzek:Mateusz
6  */
7 
8 #ifndef POWERMODEL_H_
9 #define POWERMODEL_H_
10 class DcResource;
11 
12 #include <stdlib.h>
13 #include <iostream>
14 #include <tclcl.h>
15 
16 /*An abstract class for power models.*/
17 class PowerModel : public TclObject {
18 public:
19  PowerModel();
20  virtual ~PowerModel();
21  virtual void print();
22  virtual int command(int argc, const char*const* argv);
23  virtual double estimate(int size, double* predictors) = 0;
24  virtual double getMaxPower() = 0;
25  virtual void addComponent(DcResource* component) = 0;
26  void setName(const char* name);
27  std::string name_;
28 };
29 
30 #endif /* POWERMODEL_H_ */
virtual void addComponent(DcResource *component)=0
virtual void print()
Definition: powermodel.cc:22
virtual ~PowerModel()
Definition: powermodel.cc:15
virtual double getMaxPower()=0
void setName(const char *name)
Definition: powermodel.cc:19
virtual double estimate(int size, double *predictors)=0
std::string name_
Definition: powermodel.h:27
virtual int command(int argc, const char *const *argv)
Definition: powermodel.cc:26