GreenCloud Simulator
percomponentmodel.h
Go to the documentation of this file.
1 /*
2  * percomponentmodel.h
3  *
4  * @date Feb 25, 2014
5  * @author Guzek:Mateusz
6  *
7  */
8 
9 #ifndef PERCOMPONENTMODEL_H_
10 #define PERCOMPONENTMODEL_H_
11 class DcResource;
12 
13 #include "powermodel.h"
14 #include <stdlib.h>
15 #include <vector>
16 
17 class PerComponentModel : public PowerModel {
18 public:
20  virtual ~PerComponentModel();
21  virtual void print();
22  virtual int command(int argc, const char*const* argv);
23  virtual double estimate(int size, double* predictors);
24  virtual double getMaxPower();
25  virtual void addComponent(DcResource* component);
26  std::vector<DcResource*> modeled_components_;
27 };
28 
29 #endif /* PERCOMPONENTMODEL_H_ */
virtual int command(int argc, const char *const *argv)
virtual ~PerComponentModel()
virtual double estimate(int size, double *predictors)
virtual void print()
virtual double getMaxPower()
std::vector< DcResource * > modeled_components_
virtual void addComponent(DcResource *component)