GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 55.6% 316 / 0 / 568
Functions: 53.2% 107 / 0 / 201
Branches: 27.2% 166 / 0 / 611

src/model/RoofVegetation.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 "RoofVegetation.hpp"
7 #include "RoofVegetation_Impl.hpp"
8
9 #include <utilities/idd/IddFactory.hxx>
10
11 #include <utilities/idd/OS_Material_RoofVegetation_FieldEnums.hxx>
12 #include <utilities/idd/IddEnums.hxx>
13
14 #include "../utilities/units/Unit.hpp"
15
16 #include "../utilities/core/Assert.hpp"
17 #include "../utilities/core/DeprecatedHelpers.hpp"
18
19 namespace openstudio {
20 namespace model {
21
22 namespace detail {
23
24 4 RoofVegetation_Impl::RoofVegetation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
25 4 : OpaqueMaterial_Impl(idfObject, model, keepHandle) {
26
4/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
4 OS_ASSERT(idfObject.iddObject().type() == RoofVegetation::iddObjectType());
27 4 }
28
29 ✗ RoofVegetation_Impl::RoofVegetation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
30 ✗ : OpaqueMaterial_Impl(other, model, keepHandle) {
31 ✗ OS_ASSERT(other.iddObject().type() == RoofVegetation::iddObjectType());
32 ✗ }
33
34 1 RoofVegetation_Impl::RoofVegetation_Impl(const RoofVegetation_Impl& other, Model_Impl* model, bool keepHandle)
35 1 : OpaqueMaterial_Impl(other, model, keepHandle) {}
36
37 3 double RoofVegetation_Impl::leafAreaIndex() const {
38
1/1
✓ Branch 1 taken 3 times.
3 OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::LeafAreaIndex, true);
39
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!od) {
40 ✗ LOG_AND_THROW("Leaf area index is not yet set for " << briefDescription() << ".");
41 }
42
1/1
✓ Branch 1 taken 3 times.
6 return *od;
43 }
44
45 3 double RoofVegetation_Impl::leafReflectivity() const {
46
1/1
✓ Branch 1 taken 3 times.
3 OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::LeafReflectivity, true);
47
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!od) {
48 ✗ LOG_AND_THROW("Leaf reflectivity is not yet set for " << briefDescription() << ".");
49 }
50
1/1
✓ Branch 1 taken 3 times.
6 return *od;
51 }
52
53 3 double RoofVegetation_Impl::leafEmissivity() const {
54
1/1
✓ Branch 1 taken 3 times.
3 OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::LeafEmissivity, true);
55
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!od) {
56 ✗ LOG_AND_THROW("Leaf emissivity is not yet set for " << briefDescription() << ".");
57 }
58
1/1
✓ Branch 1 taken 3 times.
6 return *od;
59 }
60
61 3 double RoofVegetation_Impl::minimumStomatalResistance() const {
62
1/1
✓ Branch 1 taken 3 times.
3 OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::MinimumStomatalResistance, true);
63
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!od) {
64 ✗ LOG_AND_THROW("Minimum stomatal resistance is not yet set for " << briefDescription() << ".");
65 }
66
1/1
✓ Branch 1 taken 3 times.
6 return *od;
67 }
68
69 2 std::string RoofVegetation_Impl::soilLayerName() const {
70
1/1
✓ Branch 1 taken 2 times.
2 OptionalString os = getString(OS_Material_RoofVegetationFields::SoilLayerName, true);
71
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!os) {
72 ✗ LOG_AND_THROW("Soil layer name is not yet set for " << briefDescription() << ".");
73 }
74
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return *os;
75 2 }
76
77 3 std::string RoofVegetation_Impl::roughness() const {
78
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Material_RoofVegetationFields::Roughness, true);
79
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
80
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
81 3 }
82
83 3 double RoofVegetation_Impl::thickness() const {
84
1/1
✓ Branch 1 taken 3 times.
3 OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::Thickness, true);
85
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!od) {
86 ✗ LOG_AND_THROW("Thickness is not yet set for " << briefDescription() << ".");
87 }
88
1/1
✓ Branch 1 taken 3 times.
6 return *od;
89 }
90
91 ✗ double RoofVegetation_Impl::thermalConductivity() const {
92 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::ConductivityofDrySoil, true);
93 ✗ if (!od) {
94 ✗ LOG_AND_THROW("Conductivity (of dry soil) is not yet set for " << briefDescription() << ".");
95 }
96 ✗ return *od;
97 }
98
99 ✗ double RoofVegetation_Impl::thermalConductance() const {
100 ✗ return thermalConductivity() / thickness();
101 }
102
103 ✗ double RoofVegetation_Impl::thermalResistivity() const {
104 ✗ return 1.0 / thermalConductivity();
105 }
106
107 ✗ double RoofVegetation_Impl::thermalResistance() const {
108 ✗ OS_ASSERT(thermalConductance());
109 ✗ return 1.0 / thermalConductance();
110 }
111
112 ✗ double RoofVegetation_Impl::density() const {
113 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::DensityofDrySoil, true);
114 ✗ if (!od) {
115 ✗ LOG_AND_THROW("Density (of dry soil) is not yet set for " << briefDescription() << ".");
116 }
117 ✗ return *od;
118 }
119
120 ✗ double RoofVegetation_Impl::specificHeat() const {
121 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil, true);
122 ✗ if (!od) {
123 ✗ LOG_AND_THROW("Specific heat (of dry soil) is not yet set for " << briefDescription() << ".");
124 }
125 ✗ return *od;
126 }
127
128 ✗ double RoofVegetation_Impl::thermalTransmittance() const {
129 ✗ return 0.0;
130 }
131
132 3 double RoofVegetation_Impl::thermalAbsorptance() const {
133
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::ThermalAbsorptance, true);
134
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
135
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
136 }
137
138 ✗ OptionalDouble RoofVegetation_Impl::thermalReflectance() const {
139 ✗ OptionalDouble result;
140 ✗ result = 1.0 - thermalAbsorptance();
141 ✗ return result;
142 }
143
144 ✗ double RoofVegetation_Impl::solarTransmittance() const {
145 ✗ return 0.0;
146 }
147
148 ✗ OptionalDouble RoofVegetation_Impl::solarReflectance() const {
149 ✗ OptionalDouble result;
150 ✗ OptionalDouble od = solarAbsorptance();
151 ✗ if (od) {
152 ✗ result = (1.0 - *od);
153 }
154 ✗ return result;
155 }
156
157 ✗ double RoofVegetation_Impl::visibleTransmittance() const {
158 ✗ return 0.0;
159 }
160
161 3 double RoofVegetation_Impl::visibleAbsorptance() const {
162
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::VisibleAbsorptance, true);
163
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
164
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
165 }
166
167 ✗ OptionalDouble RoofVegetation_Impl::visibleReflectance() const {
168 ✗ OptionalDouble result;
169 ✗ result = 1.0 - visibleAbsorptance();
170 ✗ return result;
171 }
172
173 ✗ double RoofVegetation_Impl::saturationVolumetricMoistureContent() const {
174 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer, true);
175 ✗ if (!od) {
176 ✗ LOG_AND_THROW("Volumetric moisture content of soil at saturation is not yet set for " << briefDescription() << ".");
177 }
178 ✗ return *od;
179 }
180
181 ✗ double RoofVegetation_Impl::residualVolumetricMoistureContent() const {
182 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer, true);
183 ✗ if (!od) {
184 ✗ LOG_AND_THROW("Residual volumetric moisture content is not yet set for " << briefDescription() << ".");
185 }
186 ✗ return *od;
187 }
188
189 ✗ double RoofVegetation_Impl::initialVolumetricMoistureContent() const {
190 ✗ OptionalDouble od = getDouble(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer, true);
191 ✗ if (!od) {
192 ✗ LOG_AND_THROW("Initial volumetric moisture content is not yet set for " << briefDescription() << ".");
193 }
194 ✗ return *od;
195 }
196
197 3 std::string RoofVegetation_Impl::moistureDiffusionCalculationMethod() const {
198
1/1
✓ Branch 1 taken 3 times.
3 OptionalString os = getString(OS_Material_RoofVegetationFields::MoistureDiffusionCalculationMethod, true);
199
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!os) {
200 ✗ LOG_AND_THROW("The moisture diffusion calculation method has not yet been set for " << briefDescription() << ".");
201 }
202
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return *os;
203 3 }
204
205 ✗ const std::vector<std::string>& RoofVegetation_Impl::outputVariableNames() const {
206 static const std::vector<std::string> result{"Green Roof Soil Temperature",
207 "Green Roof Vegetation Temperature",
208 "Green Roof Soil Root Moisture Ratio",
209 "Green Roof Soil Near Surface Moisture Ratio",
210 "Green Roof Soil Sensible Heat Transfer Rate per Area",
211 "Green Roof Vegetation Sensible Heat Transfer Rate per Area",
212 "Green Roof Vegetation Moisture Transfer Rate",
213 "Green Roof Soil Moisture Transfer Rate",
214 "Green Roof Vegetation Latent Heat Transfer Rate per Area",
215 "Green Roof Soil Latent Heat Transfer Rate per Area",
216 "Green Roof Cumulative Precipitation Depth",
217 "Green Roof Cumulative Irrigation Depth",
218 "Green Roof Cumulative Runoff Depth",
219 "Green Roof Cumulative Evapotranspiration Depth",
220 "Green Roof Current Precipitation Depth",
221 "Green Roof Current Irrigation Depth",
222 "Green Roof Current Runoff Depth",
223 ✗ "Green Roof Current Evapotranspiration Depth"};
224 ✗ return result;
225 ✗ }
226
227 ✗ IddObjectType RoofVegetation_Impl::iddObjectType() const {
228 ✗ return RoofVegetation::iddObjectType();
229 }
230
231 3 double RoofVegetation_Impl::heightofPlants() const {
232
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::HeightofPlants, true);
233
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
234
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
235 }
236
237 1 bool RoofVegetation_Impl::setLeafAreaIndex(double value) {
238 1 return setDouble(OS_Material_RoofVegetationFields::LeafAreaIndex, value);
239 }
240
241 1 bool RoofVegetation_Impl::setLeafReflectivity(double value) {
242 1 return setDouble(OS_Material_RoofVegetationFields::LeafReflectivity, value);
243 }
244
245 1 bool RoofVegetation_Impl::setLeafEmissivity(double value) {
246 1 return setDouble(OS_Material_RoofVegetationFields::LeafEmissivity, value);
247 }
248
249 1 bool RoofVegetation_Impl::setMinimumStomatalResistance(double value) {
250 1 return setDouble(OS_Material_RoofVegetationFields::MinimumStomatalResistance, value);
251 }
252
253 1 bool RoofVegetation_Impl::setSoilLayerName(const std::string& name) {
254 1 return setString(OS_Material_RoofVegetationFields::SoilLayerName, name);
255 }
256
257 6 bool RoofVegetation_Impl::setRoughness(const std::string& value) {
258 6 return setString(OS_Material_RoofVegetationFields::Roughness, value);
259 }
260
261 1 bool RoofVegetation_Impl::setThickness(double value) {
262 1 return setDouble(OS_Material_RoofVegetationFields::Thickness, value);
263 }
264
265 ✗ bool RoofVegetation_Impl::setThermalConductivity(double value) {
266 ✗ return setDouble(OS_Material_RoofVegetationFields::ConductivityofDrySoil, value);
267 }
268
269 ✗ bool RoofVegetation_Impl::setThermalConductance(double value) {
270 // change thickness to achieve conductance
271 ✗ return setThickness(thermalConductivity() / value);
272 }
273
274 ✗ bool RoofVegetation_Impl::setThermalResistivity(double value) {
275 ✗ return setThermalConductivity(1.0 / value);
276 }
277
278 ✗ bool RoofVegetation_Impl::setThermalResistance(double value) {
279 // change thickness to achieve resistance
280 ✗ return setThickness(value / thermalResistivity());
281 }
282
283 ✗ bool RoofVegetation_Impl::setDensity(double value) {
284 ✗ return setDouble(OS_Material_RoofVegetationFields::DensityofDrySoil, value);
285 }
286
287 ✗ bool RoofVegetation_Impl::setSpecificHeat(double value) {
288 ✗ return setDouble(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil, value);
289 }
290
291 ✗ bool RoofVegetation_Impl::setThermalTransmittance(double /*value*/) {
292 ✗ return false;
293 }
294
295 ✗ bool RoofVegetation_Impl::setThermalAbsorptance(OptionalDouble value) {
296 ✗ if (!value) {
297 ✗ return setString(OS_Material_RoofVegetationFields::ThermalAbsorptance, "");
298 }
299 ✗ return setDouble(OS_Material_RoofVegetationFields::ThermalAbsorptance, *value);
300 }
301
302 ✗ bool RoofVegetation_Impl::setThermalReflectance(OptionalDouble value) {
303 ✗ if (!value) {
304 ✗ return setThermalAbsorptance(value);
305 }
306 ✗ OptionalDouble od = (1.0 - *value);
307 ✗ return setThermalAbsorptance(od);
308 }
309
310 ✗ bool RoofVegetation_Impl::setSolarTransmittance(double /*value*/) {
311 ✗ return false;
312 }
313
314 ✗ bool RoofVegetation_Impl::setSolarAbsorptance(OptionalDouble value) {
315 ✗ if (!value) {
316 ✗ return setString(OS_Material_RoofVegetationFields::SolarAbsorptance, "");
317 }
318 ✗ return setDouble(OS_Material_RoofVegetationFields::SolarAbsorptance, *value);
319 }
320
321 ✗ bool RoofVegetation_Impl::setSolarReflectance(OptionalDouble value) {
322 ✗ if (!value) {
323 ✗ return setSolarAbsorptance(value);
324 }
325 ✗ OptionalDouble od = (1.0 - *value);
326 ✗ return setSolarAbsorptance(od);
327 }
328
329 ✗ bool RoofVegetation_Impl::setVisibleTransmittance(double /*value*/) {
330 ✗ return false;
331 }
332
333 ✗ bool RoofVegetation_Impl::setVisibleAbsorptance(OptionalDouble value) {
334 ✗ if (!value) {
335 ✗ return setString(OS_Material_RoofVegetationFields::VisibleAbsorptance, "");
336 }
337 ✗ return setDouble(OS_Material_RoofVegetationFields::VisibleAbsorptance, *value);
338 }
339
340 ✗ bool RoofVegetation_Impl::setVisibleReflectance(OptionalDouble value) {
341 ✗ if (!value) {
342 ✗ return setVisibleAbsorptance(value);
343 }
344 ✗ OptionalDouble od = (1.0 - *value);
345 ✗ return setVisibleAbsorptance(od);
346 }
347
348 ✗ bool RoofVegetation_Impl::setSaturationVolumetricMoistureContent(double value) {
349 ✗ return setDouble(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer, value);
350 }
351
352 ✗ bool RoofVegetation_Impl::setResidualVolumetricMoistureContent(double value) {
353 ✗ return setDouble(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer, value);
354 }
355
356 ✗ bool RoofVegetation_Impl::setInitialVolumetricMoistureContent(double value) {
357 ✗ return setDouble(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer, value);
358 }
359
360 2 bool RoofVegetation_Impl::setMoistureDiffusionCalculationMethod(const std::string& value) {
361 2 return setString(OS_Material_RoofVegetationFields::MoistureDiffusionCalculationMethod, value);
362 }
363
364 ✗ boost::optional<double> RoofVegetation_Impl::heatCapacity() const {
365 ✗ return specificHeat() * density() * thickness();
366 }
367
368 ✗ bool RoofVegetation_Impl::isHeightofPlantsDefaulted() const {
369 ✗ return isEmpty(OS_Material_RoofVegetationFields::HeightofPlants);
370 }
371
372 ✗ bool RoofVegetation_Impl::isLeafAreaIndexDefaulted() const {
373 ✗ return isEmpty(OS_Material_RoofVegetationFields::LeafAreaIndex);
374 }
375
376 ✗ bool RoofVegetation_Impl::isLeafReflectivityDefaulted() const {
377 ✗ return isEmpty(OS_Material_RoofVegetationFields::LeafReflectivity);
378 }
379
380 ✗ bool RoofVegetation_Impl::isLeafEmissivityDefaulted() const {
381 ✗ return isEmpty(OS_Material_RoofVegetationFields::LeafEmissivity);
382 }
383
384 ✗ bool RoofVegetation_Impl::isMinimumStomatalResistanceDefaulted() const {
385 ✗ return isEmpty(OS_Material_RoofVegetationFields::MinimumStomatalResistance);
386 }
387
388 ✗ bool RoofVegetation_Impl::isSoilLayerNameDefaulted() const {
389 ✗ return isEmpty(OS_Material_RoofVegetationFields::SoilLayerName);
390 }
391
392 ✗ bool RoofVegetation_Impl::isRoughnessDefaulted() const {
393 ✗ return isEmpty(OS_Material_RoofVegetationFields::Roughness);
394 }
395
396 ✗ bool RoofVegetation_Impl::isThicknessDefaulted() const {
397 ✗ return isEmpty(OS_Material_RoofVegetationFields::Thickness);
398 }
399
400 3 double RoofVegetation_Impl::conductivityofDrySoil() const {
401
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::ConductivityofDrySoil, true);
402
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
403
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
404 }
405
406 ✗ bool RoofVegetation_Impl::isConductivityofDrySoilDefaulted() const {
407 ✗ return isEmpty(OS_Material_RoofVegetationFields::ConductivityofDrySoil);
408 }
409
410 3 double RoofVegetation_Impl::densityofDrySoil() const {
411
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::DensityofDrySoil, true);
412
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
413
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
414 }
415
416 ✗ bool RoofVegetation_Impl::isDensityofDrySoilDefaulted() const {
417 ✗ return isEmpty(OS_Material_RoofVegetationFields::DensityofDrySoil);
418 }
419
420 3 double RoofVegetation_Impl::specificHeatofDrySoil() const {
421
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil, true);
422
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
423
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
424 }
425
426 ✗ bool RoofVegetation_Impl::isSpecificHeatofDrySoilDefaulted() const {
427 ✗ return isEmpty(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil);
428 }
429
430 ✗ bool RoofVegetation_Impl::isThermalAbsorptanceDefaulted() const {
431 ✗ return isEmpty(OS_Material_RoofVegetationFields::ThermalAbsorptance);
432 }
433
434 3 double RoofVegetation_Impl::solarAbsorptance() const {
435
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::SolarAbsorptance, true);
436
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
437
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
438 }
439
440 ✗ bool RoofVegetation_Impl::isSolarAbsorptanceDefaulted() const {
441 ✗ return isEmpty(OS_Material_RoofVegetationFields::SolarAbsorptance);
442 }
443
444 ✗ bool RoofVegetation_Impl::isVisibleAbsorptanceDefaulted() const {
445 ✗ return isEmpty(OS_Material_RoofVegetationFields::VisibleAbsorptance);
446 }
447
448 3 double RoofVegetation_Impl::saturationVolumetricMoistureContentoftheSoilLayer() const {
449
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer, true);
450
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
451
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
452 }
453
454 ✗ bool RoofVegetation_Impl::isSaturationVolumetricMoistureContentoftheSoilLayerDefaulted() const {
455 ✗ return isEmpty(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer);
456 }
457
458 3 double RoofVegetation_Impl::residualVolumetricMoistureContentoftheSoilLayer() const {
459
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer, true);
460
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
461
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
462 }
463
464 ✗ bool RoofVegetation_Impl::isResidualVolumetricMoistureContentoftheSoilLayerDefaulted() const {
465 ✗ return isEmpty(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer);
466 }
467
468 3 double RoofVegetation_Impl::initialVolumetricMoistureContentoftheSoilLayer() const {
469
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer, true);
470
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
471
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
472 }
473
474 ✗ bool RoofVegetation_Impl::isInitialVolumetricMoistureContentoftheSoilLayerDefaulted() const {
475 ✗ return isEmpty(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer);
476 }
477
478 ✗ bool RoofVegetation_Impl::isMoistureDiffusionCalculationMethodDefaulted() const {
479 ✗ return isEmpty(OS_Material_RoofVegetationFields::MoistureDiffusionCalculationMethod);
480 }
481
482 1 bool RoofVegetation_Impl::setHeightofPlants(double heightofPlants) {
483 1 bool result = setDouble(OS_Material_RoofVegetationFields::HeightofPlants, heightofPlants);
484 1 return result;
485 }
486
487 1 void RoofVegetation_Impl::resetHeightofPlants() {
488
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::HeightofPlants, "");
489
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
490 1 }
491
492 1 void RoofVegetation_Impl::resetLeafAreaIndex() {
493
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::LeafAreaIndex, "");
494
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
495 1 }
496
497 1 void RoofVegetation_Impl::resetLeafReflectivity() {
498
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::LeafReflectivity, "");
499
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
500 1 }
501
502 1 void RoofVegetation_Impl::resetLeafEmissivity() {
503
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::LeafEmissivity, "");
504
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
505 1 }
506
507 1 void RoofVegetation_Impl::resetMinimumStomatalResistance() {
508
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::MinimumStomatalResistance, "");
509
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
510 1 }
511
512 ✗ void RoofVegetation_Impl::resetSoilLayerName() {
513 ✗ bool result = setString(OS_Material_RoofVegetationFields::SoilLayerName, "");
514 ✗ OS_ASSERT(result);
515 ✗ }
516
517 ✗ void RoofVegetation_Impl::resetRoughness() {
518 ✗ bool result = setString(OS_Material_RoofVegetationFields::Roughness, "");
519 ✗ OS_ASSERT(result);
520 ✗ }
521
522 1 void RoofVegetation_Impl::resetThickness() {
523
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::Thickness, "");
524
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
525 1 }
526
527 1 bool RoofVegetation_Impl::setConductivityofDrySoil(double conductivityofDrySoil) {
528 1 bool result = setDouble(OS_Material_RoofVegetationFields::ConductivityofDrySoil, conductivityofDrySoil);
529 1 return result;
530 }
531
532 1 void RoofVegetation_Impl::resetConductivityofDrySoil() {
533
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::ConductivityofDrySoil, "");
534
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
535 1 }
536
537 1 bool RoofVegetation_Impl::setDensityofDrySoil(double densityofDrySoil) {
538 1 bool result = setDouble(OS_Material_RoofVegetationFields::DensityofDrySoil, densityofDrySoil);
539 1 return result;
540 }
541
542 1 void RoofVegetation_Impl::resetDensityofDrySoil() {
543
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::DensityofDrySoil, "");
544
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
545 1 }
546
547 1 bool RoofVegetation_Impl::setSpecificHeatofDrySoil(double specificHeatofDrySoil) {
548 1 bool result = setDouble(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil, specificHeatofDrySoil);
549 1 return result;
550 }
551
552 1 void RoofVegetation_Impl::resetSpecificHeatofDrySoil() {
553
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::SpecificHeatofDrySoil, "");
554
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
555 1 }
556
557 1 bool RoofVegetation_Impl::setThermalAbsorptance(double thermalAbsorptance) {
558 1 bool result = setDouble(OS_Material_RoofVegetationFields::ThermalAbsorptance, thermalAbsorptance);
559 1 return result;
560 }
561
562 1 void RoofVegetation_Impl::resetThermalAbsorptance() {
563
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::ThermalAbsorptance, "");
564
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
565 1 }
566
567 1 bool RoofVegetation_Impl::setSolarAbsorptance(double solarAbsorptance) {
568 1 bool result = setDouble(OS_Material_RoofVegetationFields::SolarAbsorptance, solarAbsorptance);
569 1 return result;
570 }
571
572 1 void RoofVegetation_Impl::resetSolarAbsorptance() {
573
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::SolarAbsorptance, "");
574
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
575 1 }
576
577 1 bool RoofVegetation_Impl::setVisibleAbsorptance(double visibleAbsorptance) {
578 1 bool result = setDouble(OS_Material_RoofVegetationFields::VisibleAbsorptance, visibleAbsorptance);
579 1 return result;
580 }
581
582 1 void RoofVegetation_Impl::resetVisibleAbsorptance() {
583
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::VisibleAbsorptance, "");
584
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
585 1 }
586
587 1 bool RoofVegetation_Impl::setSaturationVolumetricMoistureContentoftheSoilLayer(double saturationVolumetricMoistureContentoftheSoilLayer) {
588 1 bool result = setDouble(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer,
589 saturationVolumetricMoistureContentoftheSoilLayer);
590 1 return result;
591 }
592
593 1 void RoofVegetation_Impl::resetSaturationVolumetricMoistureContentoftheSoilLayer() {
594
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::SaturationVolumetricMoistureContentoftheSoilLayer, "");
595
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
596 1 }
597
598 1 bool RoofVegetation_Impl::setResidualVolumetricMoistureContentoftheSoilLayer(double residualVolumetricMoistureContentoftheSoilLayer) {
599 bool result =
600 1 setDouble(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer, residualVolumetricMoistureContentoftheSoilLayer);
601 1 return result;
602 }
603
604 1 void RoofVegetation_Impl::resetResidualVolumetricMoistureContentoftheSoilLayer() {
605
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::ResidualVolumetricMoistureContentoftheSoilLayer, "");
606
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
607 1 }
608
609 1 bool RoofVegetation_Impl::setInitialVolumetricMoistureContentoftheSoilLayer(double initialVolumetricMoistureContentoftheSoilLayer) {
610 bool result =
611 1 setDouble(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer, initialVolumetricMoistureContentoftheSoilLayer);
612 1 return result;
613 }
614
615 1 void RoofVegetation_Impl::resetInitialVolumetricMoistureContentoftheSoilLayer() {
616
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Material_RoofVegetationFields::InitialVolumetricMoistureContentoftheSoilLayer, "");
617
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
618 1 }
619
620 ✗ void RoofVegetation_Impl::resetMoistureDiffusionCalculationMethod() {
621 ✗ bool result = setString(OS_Material_RoofVegetationFields::MoistureDiffusionCalculationMethod, "");
622 ✗ OS_ASSERT(result);
623 ✗ }
624
625 ✗ std::vector<std::string> RoofVegetation_Impl::roughnessValues() const {
626 ✗ return RoofVegetation::roughnessValues();
627 }
628
629 ✗ std::vector<std::string> RoofVegetation_Impl::moistureDiffusionCalculationMethodValues() const {
630 ✗ return RoofVegetation::moistureDiffusionCalculationMethodValues();
631 }
632
633 } // namespace detail
634
635 4 RoofVegetation::RoofVegetation(const Model& model, const std::string& roughness) : OpaqueMaterial(RoofVegetation::iddObjectType(), model) {
636
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
4 OS_ASSERT(getImpl<detail::RoofVegetation_Impl>());
637
638 // TODO: Appropriately handle the following required object-list fields.
639 4 bool ok = true;
640 // ok = setHandle();
641
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
642
1/1
✓ Branch 1 taken 4 times.
4 ok = setRoughness(roughness);
643
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
644 4 }
645
646 7738 IddObjectType RoofVegetation::iddObjectType() {
647
1/1
✓ Branch 1 taken 7738 times.
7738 return {IddObjectType::OS_Material_RoofVegetation};
648 }
649
650 ✗ std::vector<std::string> RoofVegetation::roughnessValues() {
651 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Material_RoofVegetationFields::Roughness);
652 }
653
654 ✗ std::vector<std::string> RoofVegetation::moistureDiffusionCalculationMethodValues() {
655 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
656 ✗ OS_Material_RoofVegetationFields::MoistureDiffusionCalculationMethod);
657 }
658
659 3 double RoofVegetation::heightofPlants() const {
660
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->heightofPlants();
661 }
662
663 ✗ bool RoofVegetation::isHeightofPlantsDefaulted() const {
664 ✗ return getImpl<detail::RoofVegetation_Impl>()->isHeightofPlantsDefaulted();
665 }
666
667 3 double RoofVegetation::leafAreaIndex() const {
668
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->leafAreaIndex();
669 }
670
671 ✗ bool RoofVegetation::isLeafAreaIndexDefaulted() const {
672 ✗ return getImpl<detail::RoofVegetation_Impl>()->isLeafAreaIndexDefaulted();
673 }
674
675 3 double RoofVegetation::leafReflectivity() const {
676
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->leafReflectivity();
677 }
678
679 ✗ bool RoofVegetation::isLeafReflectivityDefaulted() const {
680 ✗ return getImpl<detail::RoofVegetation_Impl>()->isLeafReflectivityDefaulted();
681 }
682
683 3 double RoofVegetation::leafEmissivity() const {
684
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->leafEmissivity();
685 }
686
687 ✗ bool RoofVegetation::isLeafEmissivityDefaulted() const {
688 ✗ return getImpl<detail::RoofVegetation_Impl>()->isLeafEmissivityDefaulted();
689 }
690
691 3 double RoofVegetation::minimumStomatalResistance() const {
692
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->minimumStomatalResistance();
693 }
694
695 ✗ bool RoofVegetation::isMinimumStomatalResistanceDefaulted() const {
696 ✗ return getImpl<detail::RoofVegetation_Impl>()->isMinimumStomatalResistanceDefaulted();
697 }
698
699 2 std::string RoofVegetation::soilLayerName() const {
700
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::RoofVegetation_Impl>()->soilLayerName();
701 }
702
703 ✗ bool RoofVegetation::isSoilLayerNameDefaulted() const {
704 ✗ return getImpl<detail::RoofVegetation_Impl>()->isSoilLayerNameDefaulted();
705 }
706
707 3 std::string RoofVegetation::roughness() const {
708
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->roughness();
709 }
710
711 ✗ double RoofVegetation::density() const {
712 ✗ return getImpl<detail::RoofVegetation_Impl>()->density();
713 }
714
715 ✗ double RoofVegetation::specificHeat() const {
716 ✗ return getImpl<detail::RoofVegetation_Impl>()->specificHeat();
717 }
718
719 ✗ double RoofVegetation::saturationVolumetricMoistureContent() const {
720 ✗ return getImpl<detail::RoofVegetation_Impl>()->saturationVolumetricMoistureContent();
721 }
722
723 ✗ double RoofVegetation::residualVolumetricMoistureContent() const {
724 ✗ return getImpl<detail::RoofVegetation_Impl>()->residualVolumetricMoistureContent();
725 }
726
727 ✗ double RoofVegetation::initialVolumetricMoistureContent() const {
728 ✗ return getImpl<detail::RoofVegetation_Impl>()->initialVolumetricMoistureContent();
729 }
730
731 ✗ bool RoofVegetation::isRoughnessDefaulted() const {
732 ✗ return getImpl<detail::RoofVegetation_Impl>()->isRoughnessDefaulted();
733 }
734
735 // cppcheck-suppress [duplInheritedMember] for documentation purposes
736 3 double RoofVegetation::thickness() const {
737
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->thickness();
738 }
739
740 ✗ bool RoofVegetation::isThicknessDefaulted() const {
741 ✗ return getImpl<detail::RoofVegetation_Impl>()->isThicknessDefaulted();
742 }
743
744 3 double RoofVegetation::conductivityofDrySoil() const {
745
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->conductivityofDrySoil();
746 }
747
748 ✗ bool RoofVegetation::isConductivityofDrySoilDefaulted() const {
749 ✗ return getImpl<detail::RoofVegetation_Impl>()->isConductivityofDrySoilDefaulted();
750 }
751
752 3 double RoofVegetation::densityofDrySoil() const {
753
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->densityofDrySoil();
754 }
755
756 ✗ bool RoofVegetation::isDensityofDrySoilDefaulted() const {
757 ✗ return getImpl<detail::RoofVegetation_Impl>()->isDensityofDrySoilDefaulted();
758 }
759
760 3 double RoofVegetation::specificHeatofDrySoil() const {
761
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->specificHeatofDrySoil();
762 }
763
764 ✗ bool RoofVegetation::isSpecificHeatofDrySoilDefaulted() const {
765 ✗ return getImpl<detail::RoofVegetation_Impl>()->isSpecificHeatofDrySoilDefaulted();
766 }
767
768 // cppcheck-suppress [duplInheritedMember] for documentation purposes
769 3 OptionalDouble RoofVegetation::thermalAbsorptance() const {
770
2/2
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->thermalAbsorptance();
771 }
772
773 ✗ bool RoofVegetation::isThermalAbsorptanceDefaulted() const {
774 ✗ return getImpl<detail::RoofVegetation_Impl>()->isThermalAbsorptanceDefaulted();
775 }
776
777 // cppcheck-suppress [duplInheritedMember] for documentation purposes
778 3 OptionalDouble RoofVegetation::solarAbsorptance() const {
779
2/2
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->solarAbsorptance();
780 }
781
782 ✗ bool RoofVegetation::isSolarAbsorptanceDefaulted() const {
783 ✗ return getImpl<detail::RoofVegetation_Impl>()->isSolarAbsorptanceDefaulted();
784 }
785
786 // cppcheck-suppress [duplInheritedMember] for documentation purposes
787 3 OptionalDouble RoofVegetation::visibleAbsorptance() const {
788
2/2
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->visibleAbsorptance();
789 }
790
791 ✗ bool RoofVegetation::isVisibleAbsorptanceDefaulted() const {
792 ✗ return getImpl<detail::RoofVegetation_Impl>()->isVisibleAbsorptanceDefaulted();
793 }
794
795 3 double RoofVegetation::saturationVolumetricMoistureContentoftheSoilLayer() const {
796
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->saturationVolumetricMoistureContentoftheSoilLayer();
797 }
798
799 ✗ bool RoofVegetation::isSaturationVolumetricMoistureContentoftheSoilLayerDefaulted() const {
800 ✗ return getImpl<detail::RoofVegetation_Impl>()->isSaturationVolumetricMoistureContentoftheSoilLayerDefaulted();
801 }
802
803 3 double RoofVegetation::residualVolumetricMoistureContentoftheSoilLayer() const {
804
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->residualVolumetricMoistureContentoftheSoilLayer();
805 }
806
807 ✗ bool RoofVegetation::isResidualVolumetricMoistureContentoftheSoilLayerDefaulted() const {
808 ✗ return getImpl<detail::RoofVegetation_Impl>()->isResidualVolumetricMoistureContentoftheSoilLayerDefaulted();
809 }
810
811 3 double RoofVegetation::initialVolumetricMoistureContentoftheSoilLayer() const {
812
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->initialVolumetricMoistureContentoftheSoilLayer();
813 }
814
815 ✗ bool RoofVegetation::isInitialVolumetricMoistureContentoftheSoilLayerDefaulted() const {
816 ✗ return getImpl<detail::RoofVegetation_Impl>()->isInitialVolumetricMoistureContentoftheSoilLayerDefaulted();
817 }
818
819 3 std::string RoofVegetation::moistureDiffusionCalculationMethod() const {
820
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RoofVegetation_Impl>()->moistureDiffusionCalculationMethod();
821 }
822
823 ✗ bool RoofVegetation::isMoistureDiffusionCalculationMethodDefaulted() const {
824 ✗ return getImpl<detail::RoofVegetation_Impl>()->isMoistureDiffusionCalculationMethodDefaulted();
825 }
826
827 1 bool RoofVegetation::setHeightofPlants(double heightofPlants) {
828
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setHeightofPlants(heightofPlants);
829 }
830
831 1 void RoofVegetation::resetHeightofPlants() {
832
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetHeightofPlants();
833 1 }
834
835 1 bool RoofVegetation::setLeafAreaIndex(double leafAreaIndex) {
836
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setLeafAreaIndex(leafAreaIndex);
837 }
838
839 1 void RoofVegetation::resetLeafAreaIndex() {
840
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetLeafAreaIndex();
841 1 }
842
843 1 bool RoofVegetation::setLeafReflectivity(double leafReflectivity) {
844
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setLeafReflectivity(leafReflectivity);
845 }
846
847 1 void RoofVegetation::resetLeafReflectivity() {
848
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetLeafReflectivity();
849 1 }
850
851 1 bool RoofVegetation::setLeafEmissivity(double leafEmissivity) {
852
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setLeafEmissivity(leafEmissivity);
853 }
854
855 1 void RoofVegetation::resetLeafEmissivity() {
856
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetLeafEmissivity();
857 1 }
858
859 1 bool RoofVegetation::setMinimumStomatalResistance(double value) {
860
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setMinimumStomatalResistance(value);
861 }
862
863 1 bool RoofVegetation::setSoilLayerName(const std::string& name) {
864
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setSoilLayerName(name);
865 }
866
867 6 bool RoofVegetation::setRoughness(const std::string& value) {
868
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::RoofVegetation_Impl>()->setRoughness(value);
869 }
870
871 ✗ bool RoofVegetation::setDensity(double value) {
872 ✗ return getImpl<detail::RoofVegetation_Impl>()->setDensity(value);
873 }
874
875 ✗ bool RoofVegetation::setSpecificHeat(double value) {
876 ✗ return getImpl<detail::RoofVegetation_Impl>()->setSpecificHeat(value);
877 }
878
879 ✗ bool RoofVegetation::setSaturationVolumetricMoistureContent(double value) {
880 ✗ return getImpl<detail::RoofVegetation_Impl>()->setSaturationVolumetricMoistureContent(value);
881 }
882
883 ✗ bool RoofVegetation::setResidualVolumetricMoistureContent(double value) {
884 ✗ return getImpl<detail::RoofVegetation_Impl>()->setResidualVolumetricMoistureContent(value);
885 }
886
887 ✗ bool RoofVegetation::setInitialVolumetricMoistureContent(double value) {
888 ✗ return getImpl<detail::RoofVegetation_Impl>()->setInitialVolumetricMoistureContent(value);
889 }
890
891 2 bool RoofVegetation::setMoistureDiffusionCalculationMethod(const std::string& value) {
892
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::RoofVegetation_Impl>()->setMoistureDiffusionCalculationMethod(value);
893 }
894
895 1 void RoofVegetation::resetMinimumStomatalResistance() {
896
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetMinimumStomatalResistance();
897 1 }
898
899 ✗ void RoofVegetation::resetSoilLayerName() {
900 ✗ getImpl<detail::RoofVegetation_Impl>()->resetSoilLayerName();
901 ✗ }
902
903 ✗ void RoofVegetation::resetRoughness() {
904 ✗ getImpl<detail::RoofVegetation_Impl>()->resetRoughness();
905 ✗ }
906
907 // cppcheck-suppress [duplInheritedMember] for documentation purposes
908 1 bool RoofVegetation::setThickness(double thickness) {
909
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setThickness(thickness);
910 }
911
912 1 void RoofVegetation::resetThickness() {
913
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetThickness();
914 1 }
915
916 1 bool RoofVegetation::setConductivityofDrySoil(double conductivityofDrySoil) {
917
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setConductivityofDrySoil(conductivityofDrySoil);
918 }
919
920 1 void RoofVegetation::resetConductivityofDrySoil() {
921
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetConductivityofDrySoil();
922 1 }
923
924 1 bool RoofVegetation::setDensityofDrySoil(double densityofDrySoil) {
925
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setDensityofDrySoil(densityofDrySoil);
926 }
927
928 1 void RoofVegetation::resetDensityofDrySoil() {
929
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetDensityofDrySoil();
930 1 }
931
932 1 bool RoofVegetation::setSpecificHeatofDrySoil(double specificHeatofDrySoil) {
933
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setSpecificHeatofDrySoil(specificHeatofDrySoil);
934 }
935
936 1 void RoofVegetation::resetSpecificHeatofDrySoil() {
937
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetSpecificHeatofDrySoil();
938 1 }
939
940 // cppcheck-suppress [duplInheritedMember] for documentation purposes
941 1 bool RoofVegetation::setThermalAbsorptance(double thermalAbsorptance) {
942
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setThermalAbsorptance(thermalAbsorptance);
943 }
944
945 1 void RoofVegetation::resetThermalAbsorptance() {
946
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetThermalAbsorptance();
947 1 }
948
949 1 bool RoofVegetation::setSolarAbsorptance(double solarAbsorptance) {
950
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setSolarAbsorptance(solarAbsorptance);
951 }
952
953 1 void RoofVegetation::resetSolarAbsorptance() {
954
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetSolarAbsorptance();
955 1 }
956
957 1 bool RoofVegetation::setVisibleAbsorptance(double visibleAbsorptance) {
958
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setVisibleAbsorptance(visibleAbsorptance);
959 }
960
961 1 void RoofVegetation::resetVisibleAbsorptance() {
962
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetVisibleAbsorptance();
963 1 }
964
965 1 bool RoofVegetation::setSaturationVolumetricMoistureContentoftheSoilLayer(double saturationVolumetricMoistureContentoftheSoilLayer) {
966
1/1
✓ Branch 3 taken 1 time.
2 return getImpl<detail::RoofVegetation_Impl>()->setSaturationVolumetricMoistureContentoftheSoilLayer(
967 2 saturationVolumetricMoistureContentoftheSoilLayer);
968 }
969
970 1 void RoofVegetation::resetSaturationVolumetricMoistureContentoftheSoilLayer() {
971
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetSaturationVolumetricMoistureContentoftheSoilLayer();
972 1 }
973
974 1 bool RoofVegetation::setResidualVolumetricMoistureContentoftheSoilLayer(double residualVolumetricMoistureContentoftheSoilLayer) {
975
1/1
✓ Branch 3 taken 1 time.
2 return getImpl<detail::RoofVegetation_Impl>()->setResidualVolumetricMoistureContentoftheSoilLayer(
976 2 residualVolumetricMoistureContentoftheSoilLayer);
977 }
978
979 1 void RoofVegetation::resetResidualVolumetricMoistureContentoftheSoilLayer() {
980
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetResidualVolumetricMoistureContentoftheSoilLayer();
981 1 }
982
983 1 bool RoofVegetation::setInitialVolumetricMoistureContentoftheSoilLayer(double initialVolumetricMoistureContentoftheSoilLayer) {
984
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RoofVegetation_Impl>()->setInitialVolumetricMoistureContentoftheSoilLayer(initialVolumetricMoistureContentoftheSoilLayer);
985 }
986
987 1 void RoofVegetation::resetInitialVolumetricMoistureContentoftheSoilLayer() {
988
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::RoofVegetation_Impl>()->resetInitialVolumetricMoistureContentoftheSoilLayer();
989 1 }
990
991 ✗ void RoofVegetation::resetMoistureDiffusionCalculationMethod() {
992 ✗ getImpl<detail::RoofVegetation_Impl>()->resetMoistureDiffusionCalculationMethod();
993 ✗ }
994
995 /// @cond
996
1/1
✓ Branch 3 taken 2 times.
2 RoofVegetation::RoofVegetation(std::shared_ptr<detail::RoofVegetation_Impl> impl) : OpaqueMaterial(std::move(impl)) {}
997
998 // DEPRECATED
999 ✗ bool RoofVegetation::setInitialVolumetricMoistureConent(double value) {
1000 ✗ DEPRECATED_AT_MSG(3, 11, 0, "Use setInitialVolumetricMoistureContent instead.");
1001 ✗ return getImpl<detail::RoofVegetation_Impl>()->setInitialVolumetricMoistureContent(value);
1002 }
1003 /// @endcond
1004
1005 } // namespace model
1006 } // namespace openstudio
1007