Initial Commit
[HECS.git] / SolarGains.h
blobc4a3585fae6113b78ae450b9b82f1b53f9b0aa43
1 /***************************************************************************
2 * *
3 * SolarGains.h Copyright (C) 2008 by Jon Rumble *
4 * j.w.rumble@reading.ac.uk *
5 * *
6 * This file is part of HECS, *
7 * *
8 * HECS is free software: you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation, either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * HECS is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
20 ***************************************************************************/
23 #ifndef SOLARGAINS_H
24 #define SOLARGAINS_H
26 #include <QString>
27 class SolarGains
30 public:
32 // Constructors/Destructors
36 /**
37 * CONSTRUCTORS
39 SolarGains( const int overshadow,
40 const int orientation,
41 const double area,
42 const int frameType,
43 const int glazingType,
44 const char season
47 ~SolarGains();
48 SolarGains() {};
50 /**
51 * METHODS
53 void initVars();
55 void setAccessFactor ( double var_in );
56 double getAccessFactor ( );
57 void setArea ( double var_in );
58 double getArea ( );
59 void setSolarFlux ( int var_in );
60 int getSolarFlux ( );
61 void setGlazTransmitanceFactor ( double var_in );
62 double getGlazTransmitanceFactor ( );
63 void setFrameFactor ( double var_in );
64 double getFrameFactor ( );
65 void setSolarGains ( double var_in );
66 double getSolarGains ( );
68 void calcSolarGains ();
71 private:
72 // Private attributes
74 // Solar Gains
75 double m_accessFactor;
76 double m_area;
77 int m_solarFlux;
78 double m_glazTransmitanceFactor;
79 double m_frameFactor;
80 double m_solarGains;
81 char m_season;
82 int m_frameType;
83 int m_overshadow;
84 int m_glazingType;
85 int m_orientation;
87 //Lookup Tables
94 #endif // SOLARGAINS_H