Initial Commit
[HECS.git] / SpaceHeating.h
blob8162615a93045f786cf37a942e296c04e62e74f2
1 /***************************************************************************
2 * *
3 * SpaceHeating.h Copyright (C) 2008 by Jon Rumble *
4 * j.w.rumble@reading.ac.uk *
5 * *
6 * *
7 * This file is part of HECS, *
8 * *
9 * HECS is free software: you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation, either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * *
15 * HECS is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
22 ***************************************************************************/
24 #ifndef SPACEHEATING_H
25 #define SPACEHEATING_H
27 #include "ConfigParser.h"
28 #include "Gains.h"
30 class SpaceHeating {
32 public:
33 SpaceHeating ();
34 SpaceHeating (const ConfigParser& config,Gains *gains);
35 ~SpaceHeating ();
38 void setFracHeatFromSecondary ( double val_in );
39 double getFracHeatFromSecondary ( );
40 void setEffcyMainHeatingSys ( int val_in );
41 int getEffcyMainHeatingSys ( );
42 void setEffcySecondaryHeatingSystem ( int val_in );
43 int getEffcySecondaryHeatingSystem ( );
44 void setSpaceHeatingFuelMainReq ( double val_in );
45 double getSpaceHeatingFuelMainReq ( );
46 void setSpaceHeatingFuelSecondary ( double val_in );
47 double getSpaceHeatingFuelSecondary ( );
49 void calcAll();
50 protected:
52 private:
53 double m_fracHeatFromSecondary;
54 int m_effcyMainHeatingSys;
55 int m_effcySecondaryHeatingSystem;
56 double m_spaceHeatingFuelMainReq;
57 double m_spaceHeatingFuelSecondary;
59 void initVars();
60 void calcSpaceHeatingFuelMain();
61 void calcSpaceHeatingFuelSec();
63 Gains *ptrGains;
64 ConfigParser cf;
68 #endif //END OF SPACEHEATING_H