GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 78.5% 252 / 0 / 321
Functions: 77.4% 89 / 0 / 115
Branches: 45.8% 120 / 0 / 262

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