-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatistics.h
41 lines (31 loc) · 996 Bytes
/
statistics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @project VUT FIT - IMS project
* @author Juraj Holub <xholub40@stud.fit.vutbr.cz>
* @author Matej Parobek <xparob00@stud.fit.vutbr.cz>
* @date November 2019
*/
#ifndef IMS_PROJECT_STATISTICS_H
#define IMS_PROJECT_STATISTICS_H
#include "year_cycle.h"
class Statistics {
private:
YearCycle * yearCycle;
unsigned dailyConsumption;
unsigned consumedSolarEnergy;
unsigned consumedFosilEnergy;
unsigned consumedEnergy;
unsigned energyWaste;
unsigned numberOfProcessesPerDay;
const double COST_OF_NATURAL_GAS_ENERGY_PER_KWH = 1.71; //CZK
const double COST_OF_SOLAR_PANEL_SET = 82000; //CZK
const double GRAMMS_OF_CO2_PRODUCTION_PER_KWH_OF_NATURAL_GAS = 202;
public:
Statistics(YearCycle *yearCycle, unsigned dailyConsumption, unsigned numberOfprocessesPerDay);
void consumeSolarEnergy();
unsigned calculateFosilEnergy();
void consumeEnergy();
void wasteSolarEnergy();
void divideStatisticsByNumberOfProcesses();
void Output();
};
#endif //IMS_PROJECT_STATISTICS_H