GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 20 / 0 / 20
Functions: 100.0% 8 / 0 / 8
Branches: -% 0 / 0 / 0

src/isomodel/Lighting.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef ISOMODEL_LIGHTING_HPP
7 #define ISOMODEL_LIGHTING_HPP
8
9 namespace openstudio {
10 namespace isomodel {
11 class Lighting
12 {
13 public:
14 1 double powerDensityOccupied() const {
15 1 return _powerDensityOccupied;
16 }
17 1 double powerDensityUnoccupied() const {
18 1 return _powerDensityUnoccupied;
19 }
20 1 double dimmingFraction() const {
21 1 return _dimmingFraction;
22 }
23 1 double exteriorEnergy() const {
24 1 return _exteriorEnergy;
25 }
26
27 1 void setPowerDensityOccupied(double value) {
28 1 _powerDensityOccupied = value;
29 1 }
30 1 void setPowerDensityUnoccupied(double value) {
31 1 _powerDensityUnoccupied = value;
32 1 }
33 1 void setDimmingFraction(double value) {
34 1 _dimmingFraction = value;
35 1 }
36 1 void setExteriorEnergy(double value) {
37 1 _exteriorEnergy = value;
38 1 }
39
40 private:
41 double _powerDensityOccupied = 0;
42 double _powerDensityUnoccupied = 0;
43 double _dimmingFraction = 0;
44 double _exteriorEnergy = 0;
45 };
46
47 } // namespace isomodel
48 } // namespace openstudio
49 #endif // ISOMODEL_LIGHTING_HPP
50