GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 79.9% 250 / 0 / 313
Functions: 76.6% 85 / 0 / 111
Branches: 41.2% 124 / 0 / 301

src/model/Shade.cpp
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 #include "Shade.hpp"
7 #include "Shade_Impl.hpp"
8
9 #include <utilities/idd/OS_WindowMaterial_Shade_FieldEnums.hxx>
10 #include <utilities/idd/IddEnums.hxx>
11
12 #include "../utilities/units/Unit.hpp"
13
14 #include "../utilities/core/Assert.hpp"
15
16 namespace openstudio {
17 namespace model {
18
19 namespace detail {
20
21 3 Shade_Impl::Shade_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) : ShadingMaterial_Impl(idfObject, model, keepHandle) {
22
4/6
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
3 OS_ASSERT(idfObject.iddObject().type() == Shade::iddObjectType());
23 3 }
24
25 ✗ Shade_Impl::Shade_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
26 ✗ : ShadingMaterial_Impl(other, model, keepHandle) {
27 ✗ OS_ASSERT(other.iddObject().type() == Shade::iddObjectType());
28 ✗ }
29
30 1 Shade_Impl::Shade_Impl(const Shade_Impl& other, Model_Impl* model, bool keepHandle) : ShadingMaterial_Impl(other, model, keepHandle) {}
31
32 ✗ const std::vector<std::string>& Shade_Impl::outputVariableNames() const {
33 ✗ static const std::vector<std::string> result;
34 ✗ return result;
35 }
36
37 ✗ IddObjectType Shade_Impl::iddObjectType() const {
38 ✗ return Shade::iddObjectType();
39 }
40
41 2 double Shade_Impl::visibleTransmittance() const {
42
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::VisibleTransmittance, true);
43
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
44
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
45 }
46
47 ✗ boost::optional<double> Shade_Impl::getVisibleTransmittance() const {
48 ✗ OptionalDouble od = visibleTransmittance();
49 ✗ return od;
50 }
51
52 2 double Shade_Impl::thermalHemisphericalEmissivity() const {
53
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::ThermalHemisphericalEmissivity, true);
54
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
55
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
56 }
57
58 2 double Shade_Impl::thickness() const {
59
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::Thickness, true);
60
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
61
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
62 }
63
64 ✗ double Shade_Impl::thermalConductivity() const {
65 ✗ OptionalDouble od = getDouble(OS_WindowMaterial_ShadeFields::Conductivity, true);
66 ✗ if (!od) {
67 ✗ LOG_AND_THROW("Conductivity not yet set for " << briefDescription() << ".");
68 }
69 ✗ return *od;
70 }
71
72 ✗ double Shade_Impl::thermalConductance() const {
73 ✗ return thermalConductivity() / thickness();
74 }
75
76 ✗ double Shade_Impl::thermalResistivity() const {
77 ✗ return 1.0 / thermalConductivity();
78 }
79
80 ✗ double Shade_Impl::thermalResistance() const {
81 ✗ return 1.0 / thermalConductance();
82 }
83
84 2 double Shade_Impl::thermalTransmittance() const {
85
1/1
✓ Branch 1 taken 2 times.
2 OptionalDouble od = getDouble(OS_WindowMaterial_ShadeFields::ThermalTransmittance, true);
86
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!od) {
87 ✗ LOG_AND_THROW("Thermal transmittance not yet set for " << briefDescription() << ".");
88 }
89
1/1
✓ Branch 1 taken 2 times.
4 return *od;
90 }
91
92 2 double Shade_Impl::solarTransmittance() const {
93
1/1
✓ Branch 1 taken 2 times.
2 OptionalDouble od = getDouble(OS_WindowMaterial_ShadeFields::SolarTransmittance, true);
94
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!od) {
95 ✗ LOG_AND_THROW("Solar transmittance not yet set for " << briefDescription() << ".");
96 }
97
1/1
✓ Branch 1 taken 2 times.
4 return *od;
98 }
99
100 ✗ double Shade_Impl::solarAbsorptance() const {
101 ✗ return 1.0 - solarTransmittance() - solarReflectance();
102 }
103
104 2 double Shade_Impl::solarReflectance() const {
105
1/1
✓ Branch 1 taken 2 times.
2 OptionalDouble od = getDouble(OS_WindowMaterial_ShadeFields::SolarReflectance, true);
106
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!od) {
107 ✗ LOG_AND_THROW("Solar reflectance not yet set for " << briefDescription() << ".");
108 }
109
1/1
✓ Branch 1 taken 2 times.
4 return *od;
110 }
111
112 ✗ double Shade_Impl::visibleAbsorptance() const {
113 ✗ return 1.0 - visibleTransmittance() - visibleReflectance();
114 }
115
116 ✗ boost::optional<double> Shade_Impl::interiorVisibleAbsorptance() const {
117 ✗ return visibleAbsorptance();
118 }
119
120 ✗ boost::optional<double> Shade_Impl::exteriorVisibleAbsorptance() const {
121 ✗ return visibleAbsorptance();
122 }
123
124 2 double Shade_Impl::visibleReflectance() const {
125
1/1
✓ Branch 1 taken 2 times.
2 OptionalDouble od = getDouble(OS_WindowMaterial_ShadeFields::VisibleReflectance, true);
126
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!od) {
127 ✗ LOG_AND_THROW("Visible reflectance not yet set for " << briefDescription() << ".");
128 }
129
1/1
✓ Branch 1 taken 2 times.
4 return *od;
130 }
131
132 ✗ bool Shade_Impl::setThermalConductivity(double value) {
133 ✗ return setDouble(OS_WindowMaterial_ShadeFields::Conductivity, value);
134 }
135
136 ✗ bool Shade_Impl::setThermalConductance(double value) {
137 ✗ return setThickness(thermalConductivity() / value);
138 }
139
140 ✗ bool Shade_Impl::setThermalResistivity(double value) {
141 ✗ return setThermalConductivity(1.0 / value);
142 }
143
144 ✗ bool Shade_Impl::setThermalResistance(double value) {
145 ✗ return setThickness(value / thermalResistivity());
146 }
147
148 2 double Shade_Impl::conductivity() const {
149
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::Conductivity, true);
150
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
151
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
152 }
153
154 3 double Shade_Impl::shadetoGlassDistance() const {
155
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::ShadetoGlassDistance, true);
156
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
157
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
158 }
159
160 2 bool Shade_Impl::isShadetoGlassDistanceDefaulted() const {
161 2 return isEmpty(OS_WindowMaterial_ShadeFields::ShadetoGlassDistance);
162 }
163
164 3 double Shade_Impl::topOpeningMultiplier() const {
165
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::TopOpeningMultiplier, true);
166
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
167
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
168 }
169
170 2 bool Shade_Impl::isTopOpeningMultiplierDefaulted() const {
171 2 return isEmpty(OS_WindowMaterial_ShadeFields::TopOpeningMultiplier);
172 }
173
174 3 double Shade_Impl::bottomOpeningMultiplier() const {
175
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::BottomOpeningMultiplier, true);
176
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
177
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
178 }
179
180 2 bool Shade_Impl::isBottomOpeningMultiplierDefaulted() const {
181 2 return isEmpty(OS_WindowMaterial_ShadeFields::BottomOpeningMultiplier);
182 }
183
184 3 double Shade_Impl::leftSideOpeningMultiplier() const {
185
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::LeftSideOpeningMultiplier, true);
186
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
187
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
188 }
189
190 2 bool Shade_Impl::isLeftSideOpeningMultiplierDefaulted() const {
191 2 return isEmpty(OS_WindowMaterial_ShadeFields::LeftSideOpeningMultiplier);
192 }
193
194 3 double Shade_Impl::rightSideOpeningMultiplier() const {
195
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::RightSideOpeningMultiplier, true);
196
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
197
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
198 }
199
200 2 bool Shade_Impl::isRightSideOpeningMultiplierDefaulted() const {
201 2 return isEmpty(OS_WindowMaterial_ShadeFields::RightSideOpeningMultiplier);
202 }
203
204 3 double Shade_Impl::airflowPermeability() const {
205
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_WindowMaterial_ShadeFields::AirflowPermeability, true);
206
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
207
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
208 }
209
210 2 bool Shade_Impl::isAirflowPermeabilityDefaulted() const {
211 2 return isEmpty(OS_WindowMaterial_ShadeFields::AirflowPermeability);
212 }
213
214 4 bool Shade_Impl::setSolarTransmittance(double solarTransmittance) {
215 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::SolarTransmittance, solarTransmittance);
216 4 return result;
217 }
218
219 4 bool Shade_Impl::setSolarReflectance(double solarReflectance) {
220 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::SolarReflectance, solarReflectance);
221 4 return result;
222 }
223
224 4 bool Shade_Impl::setVisibleTransmittance(double visibleTransmittance) {
225 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::VisibleTransmittance, visibleTransmittance);
226 4 return result;
227 }
228
229 4 bool Shade_Impl::setVisibleReflectance(double visibleReflectance) {
230 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::VisibleReflectance, visibleReflectance);
231 4 return result;
232 }
233
234 4 bool Shade_Impl::setThermalHemisphericalEmissivity(double thermalHemisphericalEmissivity) {
235 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::ThermalHemisphericalEmissivity, thermalHemisphericalEmissivity);
236 4 return result;
237 }
238
239 4 bool Shade_Impl::setThermalTransmittance(double thermalTransmittance) {
240 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::ThermalTransmittance, thermalTransmittance);
241 4 return result;
242 }
243
244 4 bool Shade_Impl::setThickness(double thickness) {
245 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::Thickness, thickness);
246 4 return result;
247 }
248
249 4 bool Shade_Impl::setConductivity(double conductivity) {
250 4 bool result = setDouble(OS_WindowMaterial_ShadeFields::Conductivity, conductivity);
251 4 return result;
252 }
253
254 1 bool Shade_Impl::setShadetoGlassDistance(double shadetoGlassDistance) {
255 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::ShadetoGlassDistance, shadetoGlassDistance);
256 1 return result;
257 }
258
259 1 void Shade_Impl::resetShadetoGlassDistance() {
260
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::ShadetoGlassDistance, "");
261
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
262 1 }
263
264 1 bool Shade_Impl::setTopOpeningMultiplier(double topOpeningMultiplier) {
265 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::TopOpeningMultiplier, topOpeningMultiplier);
266 1 return result;
267 }
268
269 1 void Shade_Impl::resetTopOpeningMultiplier() {
270
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::TopOpeningMultiplier, "");
271
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
272 1 }
273
274 1 bool Shade_Impl::setBottomOpeningMultiplier(double bottomOpeningMultiplier) {
275 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::BottomOpeningMultiplier, bottomOpeningMultiplier);
276 1 return result;
277 }
278
279 1 void Shade_Impl::resetBottomOpeningMultiplier() {
280
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::BottomOpeningMultiplier, "");
281
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
282 1 }
283
284 1 bool Shade_Impl::setLeftSideOpeningMultiplier(double leftSideOpeningMultiplier) {
285 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::LeftSideOpeningMultiplier, leftSideOpeningMultiplier);
286 1 return result;
287 }
288
289 1 void Shade_Impl::resetLeftSideOpeningMultiplier() {
290
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::LeftSideOpeningMultiplier, "");
291
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
292 1 }
293
294 1 bool Shade_Impl::setRightSideOpeningMultiplier(double rightSideOpeningMultiplier) {
295 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::RightSideOpeningMultiplier, rightSideOpeningMultiplier);
296 1 return result;
297 }
298
299 1 void Shade_Impl::resetRightSideOpeningMultiplier() {
300
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::RightSideOpeningMultiplier, "");
301
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
302 1 }
303
304 1 bool Shade_Impl::setAirflowPermeability(double airflowPermeability) {
305 1 bool result = setDouble(OS_WindowMaterial_ShadeFields::AirflowPermeability, airflowPermeability);
306 1 return result;
307 }
308
309 1 void Shade_Impl::resetAirflowPermeability() {
310
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_WindowMaterial_ShadeFields::AirflowPermeability, "");
311
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
312 1 }
313
314 } // namespace detail
315
316 3 Shade::Shade(const Model& model, double solarTransmittance, double solarReflectance, double visibleTransmittance, double visibleReflectance,
317 3 double thermalHemisphericalEmissivity, double thermalTransmittance, double thickness, double conductivity)
318 3 : ShadingMaterial(Shade::iddObjectType(), model) {
319
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::Shade_Impl>());
320
321 // TODO: Appropriately handle the following required object-list fields.
322 3 bool ok = true;
323 // ok = setHandle();
324
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
325
1/1
✓ Branch 1 taken 3 times.
3 ok = setSolarTransmittance(solarTransmittance);
326
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
327
1/1
✓ Branch 1 taken 3 times.
3 ok = setSolarReflectance(solarReflectance);
328
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
329
1/1
✓ Branch 1 taken 3 times.
3 ok = setVisibleTransmittance(visibleTransmittance);
330
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
331
1/1
✓ Branch 1 taken 3 times.
3 ok = setVisibleReflectance(visibleReflectance);
332
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
333
1/1
✓ Branch 1 taken 3 times.
3 ok = setThermalHemisphericalEmissivity(thermalHemisphericalEmissivity);
334
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
335
1/1
✓ Branch 1 taken 3 times.
3 ok = setThermalTransmittance(thermalTransmittance);
336
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
337
1/1
✓ Branch 1 taken 3 times.
3 ok = setThickness(thickness);
338
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
339
1/1
✓ Branch 1 taken 3 times.
3 ok = setConductivity(conductivity);
340
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
341 3 }
342
343 7606 IddObjectType Shade::iddObjectType() {
344
1/1
✓ Branch 1 taken 7606 times.
7606 return {IddObjectType::OS_WindowMaterial_Shade};
345 }
346
347 ✗ double Shade::thermalConductivity() const {
348 ✗ return getImpl<detail::Shade_Impl>()->thermalConductivity();
349 }
350
351 ✗ double Shade::thermalConductance() const {
352 ✗ return getImpl<detail::Shade_Impl>()->thermalConductance();
353 }
354
355 ✗ double Shade::thermalResistivity() const {
356 ✗ return getImpl<detail::Shade_Impl>()->thermalResistivity();
357 }
358
359 ✗ double Shade::thermalResistance() const {
360 ✗ return getImpl<detail::Shade_Impl>()->thermalResistance();
361 }
362
363 2 double Shade::visibleTransmittance() const {
364
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->visibleTransmittance();
365 }
366
367 2 double Shade::thermalHemisphericalEmissivity() const {
368
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->thermalHemisphericalEmissivity();
369 }
370
371 2 double Shade::thermalTransmittance() const {
372
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->thermalTransmittance();
373 }
374
375 2 double Shade::solarTransmittance() const {
376
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->solarTransmittance();
377 }
378
379 ✗ double Shade::solarAbsorptance() const {
380 ✗ return getImpl<detail::Shade_Impl>()->solarAbsorptance();
381 }
382
383 2 double Shade::solarReflectance() const {
384
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->solarReflectance();
385 }
386
387 ✗ double Shade::visibleAbsorptance() const {
388 ✗ return getImpl<detail::Shade_Impl>()->visibleAbsorptance();
389 }
390
391 2 double Shade::visibleReflectance() const {
392
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->visibleReflectance();
393 }
394
395 ✗ bool Shade::setThermalConductivity(double value) {
396 ✗ return getImpl<detail::Shade_Impl>()->setThermalConductivity(value);
397 }
398
399 ✗ bool Shade::setThermalConductance(double value) {
400 ✗ return getImpl<detail::Shade_Impl>()->setThermalConductance(value);
401 }
402
403 ✗ bool Shade::setThermalResistivity(double value) {
404 ✗ return getImpl<detail::Shade_Impl>()->setThermalResistivity(value);
405 }
406
407 ✗ bool Shade::setThermalResistance(double value) {
408 ✗ return getImpl<detail::Shade_Impl>()->setThermalResistance(value);
409 }
410
411 4 bool Shade::setThermalTransmittance(double thermalTransmittance) {
412
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setThermalTransmittance(thermalTransmittance);
413 }
414
415 // cppcheck-suppress [duplInheritedMember] for documentation purposes
416 2 double Shade::thickness() const {
417
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->thickness();
418 }
419
420 2 double Shade::conductivity() const {
421
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->conductivity();
422 }
423
424 3 double Shade::shadetoGlassDistance() const {
425
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->shadetoGlassDistance();
426 }
427
428 2 bool Shade::isShadetoGlassDistanceDefaulted() const {
429
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isShadetoGlassDistanceDefaulted();
430 }
431
432 3 double Shade::topOpeningMultiplier() const {
433
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->topOpeningMultiplier();
434 }
435
436 2 bool Shade::isTopOpeningMultiplierDefaulted() const {
437
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isTopOpeningMultiplierDefaulted();
438 }
439
440 3 double Shade::bottomOpeningMultiplier() const {
441
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->bottomOpeningMultiplier();
442 }
443
444 2 bool Shade::isBottomOpeningMultiplierDefaulted() const {
445
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isBottomOpeningMultiplierDefaulted();
446 }
447
448 3 double Shade::leftSideOpeningMultiplier() const {
449
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->leftSideOpeningMultiplier();
450 }
451
452 2 bool Shade::isLeftSideOpeningMultiplierDefaulted() const {
453
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isLeftSideOpeningMultiplierDefaulted();
454 }
455
456 3 double Shade::rightSideOpeningMultiplier() const {
457
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->rightSideOpeningMultiplier();
458 }
459
460 2 bool Shade::isRightSideOpeningMultiplierDefaulted() const {
461
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isRightSideOpeningMultiplierDefaulted();
462 }
463
464 3 double Shade::airflowPermeability() const {
465
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::Shade_Impl>()->airflowPermeability();
466 }
467
468 2 bool Shade::isAirflowPermeabilityDefaulted() const {
469
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::Shade_Impl>()->isAirflowPermeabilityDefaulted();
470 }
471
472 4 bool Shade::setSolarTransmittance(double solarTransmittance) {
473
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setSolarTransmittance(solarTransmittance);
474 }
475
476 4 bool Shade::setSolarReflectance(double solarReflectance) {
477
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setSolarReflectance(solarReflectance);
478 }
479
480 4 bool Shade::setVisibleTransmittance(double visibleTransmittance) {
481
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setVisibleTransmittance(visibleTransmittance);
482 }
483
484 4 bool Shade::setVisibleReflectance(double visibleReflectance) {
485
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setVisibleReflectance(visibleReflectance);
486 }
487
488 4 bool Shade::setThermalHemisphericalEmissivity(double thermalHemisphericalEmissivity) {
489
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setThermalHemisphericalEmissivity(thermalHemisphericalEmissivity);
490 }
491
492 // cppcheck-suppress [duplInheritedMember] for documentation purposes
493 4 bool Shade::setThickness(double thickness) {
494
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setThickness(thickness);
495 }
496
497 4 bool Shade::setConductivity(double conductivity) {
498
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::Shade_Impl>()->setConductivity(conductivity);
499 }
500
501 1 bool Shade::setShadetoGlassDistance(double shadetoGlassDistance) {
502
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setShadetoGlassDistance(shadetoGlassDistance);
503 }
504
505 1 void Shade::resetShadetoGlassDistance() {
506
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetShadetoGlassDistance();
507 1 }
508
509 1 bool Shade::setTopOpeningMultiplier(double topOpeningMultiplier) {
510
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setTopOpeningMultiplier(topOpeningMultiplier);
511 }
512
513 1 void Shade::resetTopOpeningMultiplier() {
514
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetTopOpeningMultiplier();
515 1 }
516
517 1 bool Shade::setBottomOpeningMultiplier(double bottomOpeningMultiplier) {
518
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setBottomOpeningMultiplier(bottomOpeningMultiplier);
519 }
520
521 1 void Shade::resetBottomOpeningMultiplier() {
522
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetBottomOpeningMultiplier();
523 1 }
524
525 1 bool Shade::setLeftSideOpeningMultiplier(double leftSideOpeningMultiplier) {
526
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setLeftSideOpeningMultiplier(leftSideOpeningMultiplier);
527 }
528
529 1 void Shade::resetLeftSideOpeningMultiplier() {
530
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetLeftSideOpeningMultiplier();
531 1 }
532
533 1 bool Shade::setRightSideOpeningMultiplier(double rightSideOpeningMultiplier) {
534
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setRightSideOpeningMultiplier(rightSideOpeningMultiplier);
535 }
536
537 1 void Shade::resetRightSideOpeningMultiplier() {
538
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetRightSideOpeningMultiplier();
539 1 }
540
541 1 bool Shade::setAirflowPermeability(double airflowPermeability) {
542
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::Shade_Impl>()->setAirflowPermeability(airflowPermeability);
543 }
544
545 1 void Shade::resetAirflowPermeability() {
546
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::Shade_Impl>()->resetAirflowPermeability();
547 1 }
548
549 /// @cond
550
1/1
✓ Branch 3 taken 2 times.
2 Shade::Shade(std::shared_ptr<detail::Shade_Impl> impl) : ShadingMaterial(std::move(impl)) {}
551 /// @endcond
552
553 } // namespace model
554 } // namespace openstudio
555