GreenCloud Simulator
resourceconsumer.h
Go to the documentation of this file.
1 /*
2  * resourceconsumer.h
3  *
4  * @date Mar 11, 2013
5  * @author Guzek:Mateusz
6  */
7 
8 #ifndef RESOURCECONSUMER_H_
9 #define RESOURCECONSUMER_H_
10 
11 #include "resdemand.h"
12 #include "resource.h"
13 
14 #include <stdlib.h>
15 #include <vector>
16 #include <string.h>
17 #include "dcresource.h"
18 
19 
21 
22 public:
24  ResourceConsumer(unsigned int size, std::vector<Resource *> dem, bool isTask, bool isVM);
25 
26 
27  bool isTask;
28  bool isVM;
29  virtual ~ResourceConsumer();
30 
31  double size_;
32  unsigned int getSize();
33  void setSize(unsigned int size);
34  double currProcRate_;
37  std::vector<ResDemand *> res_demands;
39  void setCurrentPerformance(std::vector<double> newPerf);
40 
41  void addUsedCapacity(double * cap);
42 
43 };
44 
45 #endif /* RESOURCECONSUMER_H_ */
void setCurrentPerformance(std::vector< double > newPerf)
void setSize(unsigned int size)
unsigned int getSize()
std::vector< ResDemand * > res_demands
void addUsedCapacity(double *cap)
virtual ~ResourceConsumer()