GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 39.6% 216 / 0 / 546
Functions: 43.4% 53 / 0 / 122
Branches: 40.1% 238 / 0 / 594

src/model/StandardsInformationConstruction.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 "StandardsInformationConstruction.hpp"
7 #include "StandardsInformationConstruction_Impl.hpp"
8
9 #include "ConstructionBase.hpp"
10 #include "ConstructionBase_Impl.hpp"
11 #include "LayeredConstruction.hpp"
12 #include "LayeredConstruction_Impl.hpp"
13 #include "Material.hpp"
14
15 #include "Model.hpp"
16
17 #include <utilities/idd/OS_StandardsInformation_Construction_FieldEnums.hxx>
18 #include <utilities/idd/IddEnums.hxx>
19 #include <utilities/idd/IddFactory.hxx>
20
21 #include "../utilities/core/Assert.hpp"
22
23 namespace openstudio {
24 namespace model {
25
26 namespace detail {
27
28 766 StandardsInformationConstruction_Impl::StandardsInformationConstruction_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
29 766 : ModelObject_Impl(idfObject, model, keepHandle) {
30
4/6
✓ Branch 1 taken 766 times.
✓ Branch 4 taken 766 times.
✓ Branch 7 taken 766 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 766 times.
✗ Branch 13 not taken.
766 OS_ASSERT(idfObject.iddObject().type() == StandardsInformationConstruction::iddObjectType());
31 766 }
32
33 420 StandardsInformationConstruction_Impl::StandardsInformationConstruction_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
34 420 Model_Impl* model, bool keepHandle)
35 420 : ModelObject_Impl(other, model, keepHandle) {
36
4/6
✓ Branch 1 taken 420 times.
✓ Branch 4 taken 420 times.
✓ Branch 7 taken 420 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 420 times.
✗ Branch 13 not taken.
420 OS_ASSERT(other.iddObject().type() == StandardsInformationConstruction::iddObjectType());
37 420 }
38
39 551 StandardsInformationConstruction_Impl::StandardsInformationConstruction_Impl(const StandardsInformationConstruction_Impl& other,
40 551 Model_Impl* model, bool keepHandle)
41 551 : ModelObject_Impl(other, model, keepHandle) {}
42
43 371 ConstructionBase StandardsInformationConstruction_Impl::construction() const {
44
1/1
✓ Branch 1 taken 371 times.
742 boost::optional<ConstructionBase> result = getObject<StandardsInformationConstruction>().getModelObjectTarget<ConstructionBase>(
45
1/1
✓ Branch 1 taken 371 times.
371 OS_StandardsInformation_ConstructionFields::ConstructionName);
46
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 371 times.
✗ Branch 4 not taken.
371 OS_ASSERT(result);
47
2/2
✓ Branch 1 taken 371 times.
✓ Branch 4 taken 371 times.
742 return *result;
48 371 }
49
50 8 boost::optional<std::string> StandardsInformationConstruction_Impl::intendedSurfaceType() const {
51 8 return getString(OS_StandardsInformation_ConstructionFields::IntendedSurfaceType, true, true);
52 }
53
54 2 boost::optional<std::string> StandardsInformationConstruction_Impl::standardsConstructionType() const {
55 2 return getString(OS_StandardsInformation_ConstructionFields::StandardsConstructionType, true, true);
56 }
57
58 2 std::vector<std::string> StandardsInformationConstruction_Impl::suggestedStandardsConstructionTypes() const {
59 2 std::vector<std::string> result;
60
61
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> intendedSurfaceType = this->intendedSurfaceType();
62
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> standardsConstructionType = this->standardsConstructionType();
63
64 // todo: pull from standards JSON file, for now just hard code here
65 // note: didn't add DemsingCeiling choices here. Thinking Intended Surface Types should instead be DemisingCeiling
66
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
67
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "ExteriorFloor")) {
68 ✗ result.push_back("Mass");
69 ✗ result.push_back("SteelFramed");
70 ✗ result.push_back("WoodFramed");
71 }
72 }
73
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
74
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
2 if (istringEqual(*intendedSurfaceType, "ExteriorWall")) {
75
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 result.push_back("Mass");
76
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 result.push_back("Metal");
77
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 result.push_back("SteelFramed");
78
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 result.push_back("WoodFramed");
79 }
80 }
81
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
82
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "ExteriorRoof")) {
83 ✗ result.push_back("IEAD");
84 ✗ result.push_back("Metal");
85 }
86 }
87
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
88
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "InteriorFloor")) {
89 ✗ result.push_back("Mass");
90 ✗ result.push_back("SteelFramed");
91 ✗ result.push_back("WoodFramed");
92 }
93 }
94
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
95
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "InteriorWall")) {
96 ✗ result.push_back("Mass");
97 ✗ result.push_back("Metal");
98 ✗ result.push_back("SteelFramed");
99 ✗ result.push_back("WoodFramed");
100 }
101 }
102
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
103
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "InteriorCeling")) {
104 ✗ result.push_back("Mass");
105 ✗ result.push_back("SteelFramed");
106 ✗ result.push_back("WoodFramed");
107 }
108 }
109
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
110
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "DemisingFloor")) {
111 ✗ result.push_back("Mass");
112 ✗ result.push_back("SteelFramed");
113 ✗ result.push_back("WoodFramed");
114 }
115 }
116
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
117
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "DemisingWall")) {
118 ✗ result.push_back("Mass");
119 ✗ result.push_back("Metal");
120 ✗ result.push_back("SteelFramed");
121 ✗ result.push_back("WoodFramed");
122 }
123 }
124
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (intendedSurfaceType) {
125
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
2 if (istringEqual(*intendedSurfaceType, "GroundContactFloor")) {
126 ✗ result.push_back("Heated");
127 ✗ result.push_back("Unheated");
128 }
129 }
130
131 // include values from model
132
133
4/4
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 2 times.
4 for (const StandardsInformationConstruction& other : this->model().getConcreteModelObjects<StandardsInformationConstruction>()) {
134
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 9 taken 2 times.
✗ Branch 10 not taken.
2 if (other.handle() == this->handle()) {
135 2 continue;
136 }
137
138 ✗ boost::optional<std::string> otherIntendedSurfaceType = other.intendedSurfaceType();
139 ✗ if (intendedSurfaceType && otherIntendedSurfaceType) {
140 // need to be the same
141 ✗ if (intendedSurfaceType.get() != otherIntendedSurfaceType.get()) {
142 ✗ continue;
143 }
144 ✗ } else if (!intendedSurfaceType && !otherIntendedSurfaceType) {
145 // both empty
146 } else {
147 // different
148 ✗ continue;
149 }
150
151 ✗ boost::optional<std::string> otherStandardsConstructionType = other.standardsConstructionType();
152 ✗ if (otherStandardsConstructionType) {
153 ✗ result.push_back(*otherStandardsConstructionType);
154 }
155 2 }
156
157 // remove standardsBuildingType
158
1/1
✓ Branch 1 taken 2 times.
2 IstringFind finder;
159
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 if (standardsConstructionType) {
160 ✗ finder.addTarget(*standardsConstructionType);
161
162 ✗ auto it = std::remove_if(result.begin(), result.end(), finder);
163 ✗ result.resize(std::distance(result.begin(), it));
164 }
165
166 // sort
167
1/1
✓ Branch 3 taken 2 times.
2 std::sort(result.begin(), result.end(), IstringCompare());
168
169 // make unique
170 // DLM: have to sort before calling unique, unique only works on consecutive elements
171
1/1
✓ Branch 3 taken 2 times.
2 auto it = std::unique(result.begin(), result.end(), IstringEqual());
172
1/1
✓ Branch 2 taken 2 times.
4 result.resize(std::distance(result.begin(), it));
173
174 // add current to front
175
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 if (standardsConstructionType) {
176 ✗ result.insert(result.begin(), *standardsConstructionType);
177 }
178
179 4 return result;
180 2 }
181
182 6 boost::optional<Material> StandardsInformationConstruction_Impl::perturbableLayer() const {
183
1/1
✓ Branch 1 taken 6 times.
6 OptionalUnsigned oLayerIndex = getUnsigned(OS_StandardsInformation_ConstructionFields::PerturbableLayer);
184
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!oLayerIndex) {
185 ✗ return boost::none;
186 }
187
1/1
✓ Branch 1 taken 6 times.
6 unsigned layerIndex(*oLayerIndex);
188
189
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 OptionalConstructionBase oConstructionBase = construction();
190
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!oConstructionBase) {
191 ✗ return boost::none;
192 }
193
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 OptionalLayeredConstruction oLayeredConstruction = oConstructionBase->optionalCast<LayeredConstruction>();
194
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!oLayeredConstruction) {
195 ✗ return boost::none;
196 }
197
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 LayeredConstruction layeredConstruction(*oLayeredConstruction);
198
2/3
✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
6 if (layeredConstruction.numLayers() > layerIndex) {
199
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 return layeredConstruction.getLayer(layerIndex);
200 }
201 ✗ return boost::none;
202 6 }
203
204 3 std::string StandardsInformationConstruction_Impl::perturbableLayerType() const {
205 3 std::string result;
206
1/1
✓ Branch 1 taken 3 times.
3 OptionalString choiceValue = getString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, true, true);
207
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(choiceValue);
208
4/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
9 if (istringEqual("Not Applicable", *choiceValue)) {
209 ✗ return result;
210 }
211
4/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
9 if (istringEqual("Other", *choiceValue)) {
212 ✗ OptionalString otherValue = getString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, true, true);
213 ✗ if (otherValue) {
214 ✗ result = *otherValue;
215 }
216 ✗ } else {
217
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 result = *choiceValue;
218 }
219 3 return result;
220 3 }
221
222 ✗ bool StandardsInformationConstruction_Impl::isPerturbableLayerTypeDefaulted() const {
223 ✗ return isEmpty(OS_StandardsInformation_ConstructionFields::PerturbableLayerType);
224 }
225
226 ✗ boost::optional<std::string> StandardsInformationConstruction_Impl::otherPerturbableLayerType() const {
227 ✗ return getString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, true, true);
228 }
229
230 ✗ std::vector<std::string> StandardsInformationConstruction_Impl::suggestedConstructionStandards() const {
231
232 ✗ std::vector<std::string> result;
233
234 ✗ boost::optional<std::string> constructionStandard = this->constructionStandard();
235
236 // include values from json
237 //parseStandardsMap();
238
239 // TODO: pull from standards JSON file, for now just hard code here
240 ✗ result.push_back("CEC Title24-2013");
241
242 // include values from model
243 ✗ for (const StandardsInformationConstruction& other : this->model().getConcreteModelObjects<StandardsInformationConstruction>()) {
244 ✗ if (other.handle() == this->handle()) {
245 ✗ continue;
246 }
247
248 ✗ boost::optional<std::string> otherConstructionStandard = other.constructionStandard();
249 ✗ if (otherConstructionStandard) {
250 ✗ result.push_back(*otherConstructionStandard);
251 }
252 ✗ }
253
254 // remove current
255 ✗ IstringFind finder;
256 ✗ if (constructionStandard) {
257 ✗ finder.addTarget(*constructionStandard);
258
259 ✗ auto it = std::remove_if(result.begin(), result.end(), finder);
260 ✗ result.resize(std::distance(result.begin(), it));
261 }
262
263 // sort
264 ✗ std::sort(result.begin(), result.end(), IstringCompare());
265
266 // make unique
267 // DLM: have to sort before calling unique, unique only works on consecutive elements
268 ✗ auto it = std::unique(result.begin(), result.end(), IstringEqual());
269 ✗ result.resize(std::distance(result.begin(), it));
270
271 // add current to front
272 ✗ if (constructionStandard) {
273 ✗ result.insert(result.begin(), *constructionStandard);
274 }
275
276 ✗ return result;
277 ✗ }
278
279 4 boost::optional<std::string> StandardsInformationConstruction_Impl::constructionStandard() const {
280 4 return getString(OS_StandardsInformation_ConstructionFields::ConstructionStandard, true, true);
281 }
282
283 1 std::vector<std::string> StandardsInformationConstruction_Impl::suggestedConstructionStandardSources() const {
284 1 std::vector<std::string> result;
285
286
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> constructionStandard = this->constructionStandard();
287
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> constructionStandardSource = this->constructionStandardSource();
288
289
1/2
✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
1 if (!constructionStandard) {
290
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (constructionStandardSource) {
291 ✗ result.push_back(*constructionStandardSource);
292 }
293 1 return result;
294 }
295
296 // todo: pull from standards JSON file, for now just hard code here
297 ✗ if (istringEqual(*constructionStandard, "CEC Title24-2013")) {
298 //result.push_back("NA6");
299 }
300
301 // include values from model
302
303 ✗ for (const StandardsInformationConstruction& other : this->model().getConcreteModelObjects<StandardsInformationConstruction>()) {
304 ✗ if (other.handle() == this->handle()) {
305 ✗ continue;
306 }
307
308 ✗ boost::optional<std::string> otherConstructionStandard = other.constructionStandard();
309 ✗ if (!otherConstructionStandard) {
310 ✗ continue;
311 ✗ } else if (*constructionStandard != *otherConstructionStandard) {
312 ✗ continue;
313 }
314
315 ✗ boost::optional<std::string> otherConstructionStandardSource = other.constructionStandardSource();
316 ✗ if (otherConstructionStandardSource) {
317 ✗ result.push_back(*otherConstructionStandardSource);
318 }
319 ✗ }
320
321 // remove standardsBuildingType
322 ✗ IstringFind finder;
323 ✗ if (constructionStandardSource) {
324 ✗ finder.addTarget(*constructionStandardSource);
325
326 ✗ auto it = std::remove_if(result.begin(), result.end(), finder);
327 ✗ result.resize(std::distance(result.begin(), it));
328 }
329
330 // sort
331 ✗ std::sort(result.begin(), result.end(), IstringCompare());
332
333 // make unique
334 // DLM: have to sort before calling unique, unique only works on consecutive elements
335 ✗ auto it = std::unique(result.begin(), result.end(), IstringEqual());
336 ✗ result.resize(std::distance(result.begin(), it));
337
338 // add current to front
339 ✗ if (constructionStandardSource) {
340 ✗ result.insert(result.begin(), *constructionStandardSource);
341 }
342
343 ✗ return result;
344 1 }
345
346 1 boost::optional<std::string> StandardsInformationConstruction_Impl::constructionStandardSource() const {
347 1 return getString(OS_StandardsInformation_ConstructionFields::ConstructionStandardSource, true, true);
348 }
349
350 2 boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationType() const {
351 2 return getString(OS_StandardsInformation_ConstructionFields::FenestrationType, true, true);
352 }
353
354 1 boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationAssemblyContext() const {
355 1 return getString(OS_StandardsInformation_ConstructionFields::FenestrationAssemblyContext, true, true);
356 }
357
358 1 boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationNumberOfPanes() const {
359 1 return getString(OS_StandardsInformation_ConstructionFields::FenestrationNumberofPanes, true, true);
360 }
361
362 1 boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationFrameType() const {
363 1 return getString(OS_StandardsInformation_ConstructionFields::FenestrationFrameType, true, true);
364 }
365
366 1 boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationDividerType() const {
367 1 return getString(OS_StandardsInformation_ConstructionFields::FenestrationDividerType, true, true);
368 }
369
370 ✗ boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationTint() const {
371 ✗ return getString(OS_StandardsInformation_ConstructionFields::FenestrationTint, true, true);
372 }
373
374 ✗ boost::optional<std::string> StandardsInformationConstruction_Impl::fenestrationGasFill() const {
375 ✗ return getString(OS_StandardsInformation_ConstructionFields::FenestrationGasFill, true, true);
376 }
377
378 ✗ bool StandardsInformationConstruction_Impl::fenestrationLowEmissivityCoating() const {
379 ✗ bool result = false;
380 ✗ boost::optional<std::string> value = getString(OS_StandardsInformation_ConstructionFields::FenestrationLowEmissivityCoating, true, true);
381 ✗ if (value) {
382 ✗ result = openstudio::istringEqual(value.get(), "True");
383 }
384 ✗ return result;
385 ✗ }
386
387 28 boost::optional<ParentObject> StandardsInformationConstruction_Impl::parent() const {
388
2/2
✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
28 OptionalConstructionBase candidate = construction();
389
1/2
✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
28 if (candidate) {
390
3/3
✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
28 return candidate->cast<ParentObject>();
391 }
392 ✗ return boost::none;
393 28 }
394
395 22 bool StandardsInformationConstruction_Impl::setParent(ParentObject& newParent) {
396
1/1
✓ Branch 1 taken 22 times.
22 OptionalConstructionBase candidate = newParent.optionalCast<ConstructionBase>();
397
1/2
✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
22 if (candidate) {
398
3/4
✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 8 taken 22 times.
✗ Branch 9 not taken.
22 if (candidate->getModelObjectSources<StandardsInformationConstruction>().empty()) {
399
3/3
✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 22 times.
22 bool test = this->setPointer(OS_StandardsInformation_ConstructionFields::ConstructionName, candidate->handle());
400 22 return test;
401 }
402 }
403 ✗ return false;
404 22 }
405
406 2 const std::vector<std::string>& StandardsInformationConstruction_Impl::outputVariableNames() const {
407
3/4
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 static const std::vector<std::string> result;
408 2 return result;
409 }
410
411 6 IddObjectType StandardsInformationConstruction_Impl::iddObjectType() const {
412 6 return StandardsInformationConstruction::iddObjectType();
413 }
414
415 2 bool StandardsInformationConstruction_Impl::setIntendedSurfaceType(const std::string& type) {
416 2 return setString(OS_StandardsInformation_ConstructionFields::IntendedSurfaceType, type);
417 }
418
419 ✗ void StandardsInformationConstruction_Impl::resetIntendedSurfaceType() {
420 ✗ bool ok = setString(OS_StandardsInformation_ConstructionFields::IntendedSurfaceType, "");
421 ✗ OS_ASSERT(ok);
422 ✗ }
423
424 ✗ bool StandardsInformationConstruction_Impl::setStandardsConstructionType(const std::string& type) {
425 ✗ bool ok = setString(OS_StandardsInformation_ConstructionFields::StandardsConstructionType, type);
426 ✗ OS_ASSERT(ok);
427 ✗ return ok;
428 }
429
430 ✗ void StandardsInformationConstruction_Impl::resetStandardsConstructionType() {
431 ✗ bool ok = setString(OS_StandardsInformation_ConstructionFields::StandardsConstructionType, "");
432 ✗ OS_ASSERT(ok);
433 ✗ }
434
435 336 bool StandardsInformationConstruction_Impl::setPerturbableLayer(unsigned layerIndex) {
436 336 bool ok(true);
437
438
2/2
✓ Branch 1 taken 336 times.
✓ Branch 4 taken 336 times.
336 OptionalConstructionBase oConstructionBase = construction();
439
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 336 times.
336 if (!oConstructionBase) {
440 ✗ return false;
441 }
442
2/2
✓ Branch 1 taken 336 times.
✓ Branch 4 taken 336 times.
336 OptionalLayeredConstruction oLayeredConstruction = oConstructionBase->optionalCast<LayeredConstruction>();
443
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 336 times.
336 if (!oLayeredConstruction) {
444 ✗ return false;
445 }
446
447
3/4
✓ Branch 1 taken 336 times.
✓ Branch 4 taken 336 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 336 times.
336 if (layerIndex >= oLayeredConstruction->numLayers()) {
448 ✗ return false;
449 }
450
451
1/1
✓ Branch 1 taken 336 times.
336 ok = setUnsigned(OS_StandardsInformation_ConstructionFields::PerturbableLayer, layerIndex);
452
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 336 times.
✗ Branch 3 not taken.
336 OS_ASSERT(ok);
453 336 return true;
454 336 }
455
456 ✗ bool StandardsInformationConstruction_Impl::setPerturbableLayer(const Material& material) {
457 ✗ bool ok(true);
458
459 ✗ OptionalConstructionBase oConstructionBase = construction();
460 ✗ if (!oConstructionBase) {
461 ✗ return false;
462 }
463 ✗ OptionalLayeredConstruction oLayeredConstruction = oConstructionBase->optionalCast<LayeredConstruction>();
464 ✗ if (!oLayeredConstruction) {
465 ✗ return false;
466 }
467
468 ✗ UnsignedVector layerIndices = oLayeredConstruction->getLayerIndices(material);
469 ✗ if (layerIndices.empty()) {
470 ✗ return false;
471 }
472
473 ✗ ok = setUnsigned(OS_StandardsInformation_ConstructionFields::PerturbableLayer, layerIndices[0]);
474 ✗ OS_ASSERT(ok);
475 ✗ return true;
476 ✗ }
477
478 ✗ void StandardsInformationConstruction_Impl::resetPerturbableLayer() {
479 ✗ bool ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayer, "");
480 ✗ OS_ASSERT(ok);
481 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, "");
482 ✗ OS_ASSERT(ok);
483 ✗ }
484
485 336 bool StandardsInformationConstruction_Impl::setPerturbableLayerType(const std::string& type) {
486 336 bool ok(true);
487
488
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 336 times.
336 if (type.empty()) {
489 // clear any existing values
490 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, "");
491 ✗ OS_ASSERT(ok);
492 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, "");
493 ✗ OS_ASSERT(ok);
494 ✗ return ok;
495 }
496
497 336 ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, type);
498
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 336 times.
336 if (!ok) {
499 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, "Other");
500 ✗ OS_ASSERT(ok);
501 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, type);
502 ✗ OS_ASSERT(ok);
503 } else {
504
2/2
✓ Branch 1 taken 336 times.
✓ Branch 4 taken 336 times.
672 ok = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, "");
505
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 336 times.
336 OS_ASSERT(ok);
506 }
507 336 return ok;
508 }
509
510 ✗ void StandardsInformationConstruction_Impl::resetPerturbableLayerType() {
511 ✗ bool ok = setString(OS_StandardsInformation_ConstructionFields::PerturbableLayerType, "");
512 ✗ OS_ASSERT(ok);
513 ✗ ok = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, "");
514 ✗ OS_ASSERT(ok);
515 ✗ }
516
517 ✗ bool StandardsInformationConstruction_Impl::setOtherPerturbableLayerType(const std::string& otherPerturbableLayerType) {
518 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, otherPerturbableLayerType);
519 ✗ OS_ASSERT(result);
520 ✗ return result;
521 }
522
523 ✗ void StandardsInformationConstruction_Impl::resetOtherPerturbableLayerType() {
524 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::OtherPerturbableLayerType, "");
525 ✗ OS_ASSERT(result);
526 ✗ }
527
528 1 bool StandardsInformationConstruction_Impl::setConstructionStandard(const std::string& constructionStandard) {
529 1 bool result = setString(OS_StandardsInformation_ConstructionFields::ConstructionStandard, constructionStandard);
530
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
531 1 return result;
532 }
533
534 ✗ void StandardsInformationConstruction_Impl::resetConstructionStandard() {
535 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::ConstructionStandard, "");
536 ✗ OS_ASSERT(result);
537 ✗ }
538
539 ✗ bool StandardsInformationConstruction_Impl::setConstructionStandardSource(const std::string& constructionStandardSource) {
540 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::ConstructionStandardSource, constructionStandardSource);
541 ✗ OS_ASSERT(result);
542 ✗ return result;
543 }
544
545 ✗ void StandardsInformationConstruction_Impl::resetConstructionStandardSource() {
546 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::ConstructionStandardSource, "");
547 ✗ OS_ASSERT(result);
548 ✗ }
549
550 ✗ bool StandardsInformationConstruction_Impl::setFenestrationType(const std::string& fenestrationType) {
551 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationType, fenestrationType);
552 ✗ return result;
553 }
554
555 ✗ void StandardsInformationConstruction_Impl::resetFenestrationType() {
556 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationType, "");
557 ✗ OS_ASSERT(result);
558 ✗ }
559
560 ✗ bool StandardsInformationConstruction_Impl::setFenestrationAssemblyContext(const std::string& fenestrationAssemblyContext) {
561 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationAssemblyContext, fenestrationAssemblyContext);
562 ✗ return result;
563 }
564
565 ✗ void StandardsInformationConstruction_Impl::resetFenestrationAssemblyContext() {
566 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationAssemblyContext, "");
567 ✗ OS_ASSERT(result);
568 ✗ }
569
570 ✗ bool StandardsInformationConstruction_Impl::setFenestrationNumberOfPanes(const std::string& fenestrationNumberOfPanes) {
571 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationNumberofPanes, fenestrationNumberOfPanes);
572 ✗ return result;
573 }
574
575 ✗ void StandardsInformationConstruction_Impl::resetFenestrationNumberOfPanes() {
576 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationNumberofPanes, "");
577 ✗ OS_ASSERT(result);
578 ✗ }
579
580 ✗ bool StandardsInformationConstruction_Impl::setFenestrationFrameType(const std::string& fenestrationFrameType) {
581 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationFrameType, fenestrationFrameType);
582 ✗ return result;
583 }
584
585 ✗ void StandardsInformationConstruction_Impl::resetFenestrationFrameType() {
586 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationFrameType, "");
587 ✗ OS_ASSERT(result);
588 ✗ }
589
590 ✗ bool StandardsInformationConstruction_Impl::setFenestrationDividerType(const std::string& fenestrationDividerType) {
591 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationDividerType, fenestrationDividerType);
592 ✗ return result;
593 }
594
595 ✗ void StandardsInformationConstruction_Impl::resetFenestrationDividerType() {
596 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationDividerType, "");
597 ✗ OS_ASSERT(result);
598 ✗ }
599
600 ✗ bool StandardsInformationConstruction_Impl::setFenestrationTint(const std::string& fenestrationTint) {
601 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationTint, fenestrationTint);
602 ✗ return result;
603 }
604
605 ✗ void StandardsInformationConstruction_Impl::resetFenestrationTint() {
606 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationTint, "");
607 ✗ OS_ASSERT(result);
608 ✗ }
609
610 ✗ bool StandardsInformationConstruction_Impl::setFenestrationGasFill(const std::string& fenestrationGasFill) {
611 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationGasFill, fenestrationGasFill);
612 ✗ return result;
613 }
614
615 ✗ void StandardsInformationConstruction_Impl::resetFenestrationGasFill() {
616 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationGasFill, "");
617 ✗ OS_ASSERT(result);
618 ✗ }
619
620 ✗ bool StandardsInformationConstruction_Impl::setFenestrationLowEmissivityCoating(bool fenestrationLowEmissivityCoating) {
621 bool result;
622 ✗ if (fenestrationLowEmissivityCoating) {
623 ✗ result = setString(OS_StandardsInformation_ConstructionFields::FenestrationLowEmissivityCoating, "True");
624 } else {
625 ✗ result = setString(OS_StandardsInformation_ConstructionFields::FenestrationLowEmissivityCoating, "False");
626 }
627 ✗ OS_ASSERT(result);
628 ✗ return result;
629 }
630
631 ✗ void StandardsInformationConstruction_Impl::resetFenestrationLowEmissivityCoating() {
632 ✗ bool result = setString(OS_StandardsInformation_ConstructionFields::FenestrationLowEmissivityCoating, "");
633 ✗ OS_ASSERT(result);
634 ✗ }
635
636 } // namespace detail
637
638 344 StandardsInformationConstruction::StandardsInformationConstruction(const ConstructionBase& construction)
639
3/3
✓ Branch 1 taken 344 times.
✓ Branch 4 taken 344 times.
✓ Branch 7 taken 344 times.
344 : ModelObject(StandardsInformationConstruction::iddObjectType(), construction.model()) {
640
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 344 times.
✗ Branch 5 not taken.
344 OS_ASSERT(getImpl<detail::StandardsInformationConstruction_Impl>());
641
2/2
✓ Branch 1 taken 344 times.
✓ Branch 4 taken 344 times.
344 bool ok = setPointer(OS_StandardsInformation_ConstructionFields::ConstructionName, construction.handle());
642
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 344 times.
✗ Branch 3 not taken.
344 OS_ASSERT(ok);
643 344 }
644
645 1 std::vector<std::string> StandardsInformationConstruction::standardPerturbableLayerTypeValues() {
646 1 StringVector result;
647 StringVector candidates =
648
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::PerturbableLayerType);
649
2/2
✓ Branch 5 taken 3 times.
✓ Branch 6 taken 1 time.
4 for (const std::string& candidate : candidates) {
650
8/8
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 2 times.
✓ Branch 8 taken 1 time.
✓ Branch 9 taken 1 time.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
3 if ((candidate == "Not Applicable") || (candidate == "Other")) {
651 2 continue;
652 }
653
1/1
✓ Branch 1 taken 1 time.
1 result.push_back(candidate);
654 }
655 2 return result;
656 1 }
657
658 2 std::vector<std::string> StandardsInformationConstruction::intendedSurfaceTypeValues() {
659
5/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
2 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::IntendedSurfaceType);
660 }
661
662 1 std::vector<std::string> StandardsInformationConstruction::fenestrationTypeValues() {
663
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::FenestrationType);
664 }
665
666 1 std::vector<std::string> StandardsInformationConstruction::fenestrationAssemblyContextValues() {
667
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
2 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
668
1/1
✓ Branch 1 taken 1 time.
2 OS_StandardsInformation_ConstructionFields::FenestrationAssemblyContext);
669 }
670
671 1 std::vector<std::string> StandardsInformationConstruction::fenestrationNumberOfPanesValues() {
672
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
2 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
673
1/1
✓ Branch 1 taken 1 time.
2 OS_StandardsInformation_ConstructionFields::FenestrationNumberofPanes);
674 }
675
676 1 std::vector<std::string> StandardsInformationConstruction::fenestrationFrameTypeValues() {
677
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::FenestrationFrameType);
678 }
679
680 1 std::vector<std::string> StandardsInformationConstruction::fenestrationDividerTypeValues() {
681
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
2 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
682
1/1
✓ Branch 1 taken 1 time.
2 OS_StandardsInformation_ConstructionFields::FenestrationDividerType);
683 }
684
685 1 std::vector<std::string> StandardsInformationConstruction::fenestrationTintValues() {
686
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::FenestrationTint);
687 }
688
689 1 std::vector<std::string> StandardsInformationConstruction::fenestrationGasFillValues() {
690
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_StandardsInformation_ConstructionFields::FenestrationGasFill);
691 }
692
693 9284 IddObjectType StandardsInformationConstruction::iddObjectType() {
694
1/1
✓ Branch 1 taken 9284 times.
9284 IddObjectType result(IddObjectType::OS_StandardsInformation_Construction);
695 9284 return result;
696 }
697
698 1 ConstructionBase StandardsInformationConstruction::construction() const {
699
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->construction();
700 }
701
702 6 boost::optional<std::string> StandardsInformationConstruction::intendedSurfaceType() const {
703
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardsInformationConstruction_Impl>()->intendedSurfaceType();
704 }
705
706 ✗ boost::optional<std::string> StandardsInformationConstruction::standardsConstructionType() const {
707 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->standardsConstructionType();
708 }
709
710 2 std::vector<std::string> StandardsInformationConstruction::suggestedStandardsConstructionTypes() const {
711
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::StandardsInformationConstruction_Impl>()->suggestedStandardsConstructionTypes();
712 }
713
714 6 boost::optional<Material> StandardsInformationConstruction::perturbableLayer() const {
715
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardsInformationConstruction_Impl>()->perturbableLayer();
716 }
717
718 3 boost::optional<std::string> StandardsInformationConstruction::perturbableLayerType() const {
719
2/2
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
3 return getImpl<detail::StandardsInformationConstruction_Impl>()->perturbableLayerType();
720 }
721
722 ✗ bool StandardsInformationConstruction::isPerturbableLayerTypeDefaulted() const {
723 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->isPerturbableLayerTypeDefaulted();
724 }
725
726 ✗ boost::optional<std::string> StandardsInformationConstruction::otherPerturbableLayerType() const {
727 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->otherPerturbableLayerType();
728 }
729
730 ✗ std::vector<std::string> StandardsInformationConstruction::suggestedConstructionStandards() const {
731 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->suggestedConstructionStandards();
732 }
733
734 3 boost::optional<std::string> StandardsInformationConstruction::constructionStandard() const {
735
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::StandardsInformationConstruction_Impl>()->constructionStandard();
736 }
737
738 1 std::vector<std::string> StandardsInformationConstruction::suggestedConstructionStandardSources() const {
739
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->suggestedConstructionStandardSources();
740 }
741
742 ✗ boost::optional<std::string> StandardsInformationConstruction::constructionStandardSource() const {
743 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->constructionStandardSource();
744 }
745
746 2 boost::optional<std::string> StandardsInformationConstruction::fenestrationType() const {
747
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationType();
748 }
749
750 1 boost::optional<std::string> StandardsInformationConstruction::fenestrationAssemblyContext() const {
751
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationAssemblyContext();
752 }
753
754 1 boost::optional<std::string> StandardsInformationConstruction::fenestrationNumberOfPanes() const {
755
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationNumberOfPanes();
756 }
757
758 1 boost::optional<std::string> StandardsInformationConstruction::fenestrationFrameType() const {
759
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationFrameType();
760 }
761
762 1 boost::optional<std::string> StandardsInformationConstruction::fenestrationDividerType() const {
763
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationDividerType();
764 }
765
766 ✗ boost::optional<std::string> StandardsInformationConstruction::fenestrationTint() const {
767 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationTint();
768 }
769
770 ✗ boost::optional<std::string> StandardsInformationConstruction::fenestrationGasFill() const {
771 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationGasFill();
772 }
773
774 ✗ bool StandardsInformationConstruction::fenestrationLowEmissivityCoating() const {
775 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->fenestrationLowEmissivityCoating();
776 }
777
778 2 bool StandardsInformationConstruction::setIntendedSurfaceType(const std::string& type) {
779
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::StandardsInformationConstruction_Impl>()->setIntendedSurfaceType(type);
780 }
781
782 ✗ void StandardsInformationConstruction::resetIntendedSurfaceType() {
783 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetIntendedSurfaceType();
784 ✗ }
785
786 ✗ bool StandardsInformationConstruction::setStandardsConstructionType(const std::string& type) {
787 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setStandardsConstructionType(type);
788 }
789
790 ✗ void StandardsInformationConstruction::resetStandardsConstructionType() {
791 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetStandardsConstructionType();
792 ✗ }
793
794 336 bool StandardsInformationConstruction::setPerturbableLayer(unsigned layerIndex) {
795
1/1
✓ Branch 3 taken 336 times.
336 return getImpl<detail::StandardsInformationConstruction_Impl>()->setPerturbableLayer(layerIndex);
796 }
797
798 ✗ bool StandardsInformationConstruction::setPerturbableLayer(const Material& material) {
799 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setPerturbableLayer(material);
800 }
801
802 ✗ void StandardsInformationConstruction::resetPerturbableLayer() {
803 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetPerturbableLayer();
804 ✗ }
805
806 336 bool StandardsInformationConstruction::setPerturbableLayerType(const std::string& type) {
807
1/1
✓ Branch 3 taken 336 times.
336 return getImpl<detail::StandardsInformationConstruction_Impl>()->setPerturbableLayerType(type);
808 }
809
810 ✗ void StandardsInformationConstruction::resetPerturbableLayerType() {
811 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetPerturbableLayerType();
812 ✗ }
813
814 ✗ bool StandardsInformationConstruction::setOtherPerturbableLayerType(const std::string& otherPerturbableLayerType) {
815 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setOtherPerturbableLayerType(otherPerturbableLayerType);
816 }
817
818 ✗ void StandardsInformationConstruction::resetOtherPerturbableLayerType() {
819 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetOtherPerturbableLayerType();
820 ✗ }
821
822 1 bool StandardsInformationConstruction::setConstructionStandard(const std::string& constructionStandard) {
823
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardsInformationConstruction_Impl>()->setConstructionStandard(constructionStandard);
824 }
825
826 ✗ void StandardsInformationConstruction::resetConstructionStandard() {
827 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetConstructionStandard();
828 ✗ }
829
830 ✗ bool StandardsInformationConstruction::setConstructionStandardSource(const std::string& constructionStandardSource) {
831 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setConstructionStandardSource(constructionStandardSource);
832 }
833
834 ✗ void StandardsInformationConstruction::resetConstructionStandardSource() {
835 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetConstructionStandardSource();
836 ✗ }
837
838 ✗ bool StandardsInformationConstruction::setFenestrationType(const std::string& fenestrationType) {
839 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationType(fenestrationType);
840 }
841
842 ✗ void StandardsInformationConstruction::resetFenestrationType() {
843 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationType();
844 ✗ }
845
846 ✗ bool StandardsInformationConstruction::setFenestrationAssemblyContext(const std::string& fenestrationAssemblyContext) {
847 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationAssemblyContext(fenestrationAssemblyContext);
848 }
849
850 ✗ void StandardsInformationConstruction::resetFenestrationAssemblyContext() {
851 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationAssemblyContext();
852 ✗ }
853
854 ✗ bool StandardsInformationConstruction::setFenestrationNumberOfPanes(const std::string& fenestrationNumberOfPanes) {
855 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationNumberOfPanes(fenestrationNumberOfPanes);
856 }
857
858 ✗ void StandardsInformationConstruction::resetFenestrationNumberOfPanes() {
859 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationNumberOfPanes();
860 ✗ }
861
862 ✗ bool StandardsInformationConstruction::setFenestrationFrameType(const std::string& fenestrationFrameType) {
863 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationFrameType(fenestrationFrameType);
864 }
865
866 ✗ void StandardsInformationConstruction::resetFenestrationFrameType() {
867 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationFrameType();
868 ✗ }
869
870 ✗ bool StandardsInformationConstruction::setFenestrationDividerType(const std::string& fenestrationDividerType) {
871 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationDividerType(fenestrationDividerType);
872 }
873
874 ✗ void StandardsInformationConstruction::resetFenestrationDividerType() {
875 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationDividerType();
876 ✗ }
877
878 ✗ bool StandardsInformationConstruction::setFenestrationTint(const std::string& fenestrationTint) {
879 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationTint(fenestrationTint);
880 }
881
882 ✗ void StandardsInformationConstruction::resetFenestrationTint() {
883 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationTint();
884 ✗ }
885
886 ✗ bool StandardsInformationConstruction::setFenestrationGasFill(const std::string& fenestrationGasFill) {
887 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationGasFill(fenestrationGasFill);
888 }
889
890 ✗ void StandardsInformationConstruction::resetFenestrationGasFill() {
891 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationGasFill();
892 ✗ }
893
894 ✗ bool StandardsInformationConstruction::setFenestrationLowEmissivityCoating(bool fenestrationLowEmissivityCoating) {
895 ✗ return getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationLowEmissivityCoating(fenestrationLowEmissivityCoating);
896 }
897
898 ✗ void StandardsInformationConstruction::setFenestrationLowEmissivityCoatingNoFail(bool fenestrationLowEmissivityCoating) {
899 ✗ bool result = getImpl<detail::StandardsInformationConstruction_Impl>()->setFenestrationLowEmissivityCoating(fenestrationLowEmissivityCoating);
900 ✗ OS_ASSERT(result);
901 ✗ }
902
903 ✗ void StandardsInformationConstruction::resetFenestrationLowEmissivityCoating() {
904 ✗ getImpl<detail::StandardsInformationConstruction_Impl>()->resetFenestrationLowEmissivityCoating();
905 ✗ }
906
907 /// @cond
908 639 StandardsInformationConstruction::StandardsInformationConstruction(std::shared_ptr<detail::StandardsInformationConstruction_Impl> impl)
909
1/1
✓ Branch 3 taken 639 times.
639 : ModelObject(std::move(impl)) {}
910 /// @endcond
911
912 } // namespace model
913 } // namespace openstudio
914