GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/RefractionExtinctionGlazing.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 MODEL_REFRACTIONEXTINCTIONGLAZING_HPP
7 #define MODEL_REFRACTIONEXTINCTIONGLAZING_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Glazing.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 namespace detail {
17
18 class RefractionExtinctionGlazing_Impl;
19
20 } // namespace detail
21
22 /** RefractionExtinctionGlazing is a Glazing that wraps the OpenStudio IDD object 'OS:WindowMaterial:Glazing:RefractionExtinctionMethod'. */
23 class MODEL_API RefractionExtinctionGlazing : public Glazing
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 explicit RefractionExtinctionGlazing(const Model& model, double thickness = 0.1, double solarIndexofRefraction = 1.1,
30 double solarExtinctionCoefficient = 0.1, double visibleIndexofRefraction = 1.1,
31 double visibleExtinctionCoefficient = 0.1);
32 //double dirtCorrectionFactorforSolarandVisibleTransmittance = 0.1);
33
34 6 virtual ~RefractionExtinctionGlazing() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ RefractionExtinctionGlazing(const RefractionExtinctionGlazing& other) = default;
37 2 RefractionExtinctionGlazing(RefractionExtinctionGlazing&& other) = default;
38 1 RefractionExtinctionGlazing& operator=(const RefractionExtinctionGlazing&) = default;
39 ✗ RefractionExtinctionGlazing& operator=(RefractionExtinctionGlazing&&) = default;
40
41 //@}
42 /** @name Static Methods */
43 //@{
44
45 static IddObjectType iddObjectType();
46
47 //@}
48 /** @name Getters */
49 //@{
50
51 /** The conductivity of the material in W/m*K. */
52 double thermalConductivity() const;
53
54 /** The conductance of the material in W/m^2*K. */
55 double thermalConductance() const;
56
57 /** The resistivity of the material in m*K/W. */
58 double thermalResistivity() const;
59
60 /** The resistance of the material in m^2*K/W. */
61 double thermalResistance() const;
62
63 /** The thermal transmittance of the material (dimensionless fraction). */
64 double thermalTransmittance() const;
65
66 double thickness() const;
67
68 double solarIndexofRefraction() const;
69
70 double solarExtinctionCoefficient() const;
71
72 double visibleIndexofRefraction() const;
73
74 double visibleExtinctionCoefficient() const;
75
76 double infraredTransmittanceatNormalIncidence() const;
77
78 bool isInfraredTransmittanceatNormalIncidenceDefaulted() const;
79
80 double infraredHemisphericalEmissivity() const;
81
82 bool isInfraredHemisphericalEmissivityDefaulted() const;
83
84 double conductivity() const;
85
86 bool isConductivityDefaulted() const;
87
88 double dirtCorrectionFactorforSolarandVisibleTransmittance() const;
89
90 bool isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const;
91
92 bool solarDiffusing() const;
93
94 bool isSolarDiffusingDefaulted() const;
95
96 //@}
97 /** @name Setters */
98 //@{
99
100 /** Sets the conductivity of the material in W/m*K, if possible. */
101 bool setThermalConductivity(double value);
102
103 /** Sets the conductance of the material in W/m^2*K, if possible. Sets thickness to achieve conductivity. */
104 bool setThermalConductance(double value);
105
106 /** Sets the resistivity of the material in m*K/W, if possible. */
107 bool setThermalResistivity(double value);
108
109 /** Sets the resistance of the material in m^2*K/W, if possible. Sets thickness to achieve resistivity. */
110 bool setThermalResistance(double value);
111
112 bool setThermalTransmittance(double value);
113
114 bool setThickness(double thickness);
115
116 bool setSolarIndexofRefraction(double solarIndexofRefraction);
117
118 bool setSolarExtinctionCoefficient(double solarExtinctionCoefficient);
119
120 bool setVisibleIndexofRefraction(double visibleIndexofRefraction);
121
122 bool setVisibleExtinctionCoefficient(double visibleExtinctionCoefficient);
123
124 bool setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence);
125
126 void resetInfraredTransmittanceatNormalIncidence();
127
128 bool setInfraredHemisphericalEmissivity(double infraredHemisphericalEmissivity);
129
130 void resetInfraredHemisphericalEmissivity();
131
132 bool setConductivity(double conductivity);
133
134 void resetConductivity();
135
136 bool setDirtCorrectionFactorforSolarandVisibleTransmittance(double dirtCorrectionFactorforSolarandVisibleTransmittance);
137
138 void resetDirtCorrectionFactorforSolarandVisibleTransmittance();
139
140 bool setSolarDiffusing(bool solarDiffusing);
141
142 void setSolarDiffusingNoFail(bool solarDiffusing);
143
144 void resetSolarDiffusing();
145
146 //@}
147 /** @name Other */
148 //@{
149
150 //@}
151 protected:
152 /// @cond
153 using ImplType = detail::RefractionExtinctionGlazing_Impl;
154
155 explicit RefractionExtinctionGlazing(std::shared_ptr<detail::RefractionExtinctionGlazing_Impl> impl);
156
157 friend class detail::RefractionExtinctionGlazing_Impl;
158 friend class Model;
159 friend class IdfObject;
160 friend class openstudio::detail::IdfObject_Impl;
161 /// @endcond
162 private:
163 REGISTER_LOGGER("openstudio.model.RefractionExtinctionGlazing");
164 };
165
166 /** \relates RefractionExtinctionGlazing*/
167 using OptionalRefractionExtinctionGlazing = boost::optional<RefractionExtinctionGlazing>;
168
169 /** \relates RefractionExtinctionGlazing*/
170 using RefractionExtinctionGlazingVector = std::vector<RefractionExtinctionGlazing>;
171
172 } // namespace model
173 } // namespace openstudio
174
175 #endif // MODEL_REFRACTIONEXTINCTIONGLAZING_HPP
176