GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 49.1% 236 / 0 / 481
Functions: 76.1% 70 / 0 / 92
Branches: 40.8% 278 / 0 / 681

src/model/DefaultConstructionSet.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 "DefaultConstructionSet.hpp"
7 #include "DefaultConstructionSet_Impl.hpp"
8
9 #include "Model.hpp"
10 #include "Model_Impl.hpp"
11 #include "PlanarSurface.hpp"
12 #include "PlanarSurface_Impl.hpp"
13 #include "ConstructionBase.hpp"
14 #include "ConstructionBase_Impl.hpp"
15 #include "DefaultSubSurfaceConstructions.hpp"
16 #include "DefaultSubSurfaceConstructions_Impl.hpp"
17 #include "DefaultSurfaceConstructions.hpp"
18 #include "DefaultSurfaceConstructions_Impl.hpp"
19 #include "Surface.hpp"
20 #include "Surface_Impl.hpp"
21 #include "SubSurface.hpp"
22 #include "SubSurface_Impl.hpp"
23 #include "InteriorPartitionSurface.hpp"
24 #include "InteriorPartitionSurface_Impl.hpp"
25 #include "InteriorPartitionSurfaceGroup.hpp"
26 #include "InteriorPartitionSurfaceGroup_Impl.hpp"
27 #include "ShadingSurface.hpp"
28 #include "ShadingSurface_Impl.hpp"
29 #include "ShadingSurfaceGroup.hpp"
30 #include "ShadingSurfaceGroup_Impl.hpp"
31
32 #include <utilities/idd/OS_DefaultConstructionSet_FieldEnums.hxx>
33 #include <utilities/idd/IddEnums.hxx>
34
35 #include "../utilities/core/Assert.hpp"
36
37 using openstudio::istringEqual;
38
39 namespace openstudio {
40 namespace model {
41
42 namespace detail {
43
44 292 DefaultConstructionSet_Impl::DefaultConstructionSet_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
45 292 : ResourceObject_Impl(idfObject, model, keepHandle) {
46
4/6
✓ Branch 1 taken 292 times.
✓ Branch 4 taken 292 times.
✓ Branch 7 taken 292 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 292 times.
✗ Branch 13 not taken.
292 OS_ASSERT(idfObject.iddObject().type() == DefaultConstructionSet::iddObjectType());
47 292 }
48
49 78 DefaultConstructionSet_Impl::DefaultConstructionSet_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
50 78 bool keepHandle)
51 78 : ResourceObject_Impl(other, model, keepHandle) {
52
4/6
✓ Branch 1 taken 78 times.
✓ Branch 4 taken 78 times.
✓ Branch 7 taken 78 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 78 times.
✗ Branch 13 not taken.
78 OS_ASSERT(other.iddObject().type() == DefaultConstructionSet::iddObjectType());
53 78 }
54
55 201 DefaultConstructionSet_Impl::DefaultConstructionSet_Impl(const DefaultConstructionSet_Impl& other, Model_Impl* model, bool keepHandle)
56 201 : ResourceObject_Impl(other, model, keepHandle) {}
57
58 1 const std::vector<std::string>& DefaultConstructionSet_Impl::outputVariableNames() const {
59
2/4
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 static const std::vector<std::string> result;
60 1 return result;
61 }
62
63 1 IddObjectType DefaultConstructionSet_Impl::iddObjectType() const {
64 1 return DefaultConstructionSet::iddObjectType();
65 }
66
67 9118 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet_Impl::defaultExteriorSurfaceConstructions() const {
68
1/1
✓ Branch 1 taken 9118 times.
18236 return getObject<ModelObject>().getModelObjectTarget<DefaultSurfaceConstructions>(
69
1/1
✓ Branch 1 taken 9118 times.
18236 OS_DefaultConstructionSetFields::DefaultExteriorSurfaceConstructionsName);
70 }
71
72 9074 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet_Impl::defaultInteriorSurfaceConstructions() const {
73
1/1
✓ Branch 1 taken 9074 times.
18148 return getObject<ModelObject>().getModelObjectTarget<DefaultSurfaceConstructions>(
74
1/1
✓ Branch 1 taken 9074 times.
18148 OS_DefaultConstructionSetFields::DefaultInteriorSurfaceConstructionsName);
75 }
76
77 2801 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet_Impl::defaultGroundContactSurfaceConstructions() const {
78
1/1
✓ Branch 1 taken 2801 times.
5602 return getObject<ModelObject>().getModelObjectTarget<DefaultSurfaceConstructions>(
79
1/1
✓ Branch 1 taken 2801 times.
5602 OS_DefaultConstructionSetFields::DefaultGroundContactSurfaceConstructionsName);
80 }
81
82 1380 boost::optional<DefaultSubSurfaceConstructions> DefaultConstructionSet_Impl::defaultExteriorSubSurfaceConstructions() const {
83
1/1
✓ Branch 1 taken 1380 times.
2760 return getObject<ModelObject>().getModelObjectTarget<DefaultSubSurfaceConstructions>(
84
1/1
✓ Branch 1 taken 1380 times.
2760 OS_DefaultConstructionSetFields::DefaultExteriorSubSurfaceConstructionsName);
85 }
86
87 123 boost::optional<DefaultSubSurfaceConstructions> DefaultConstructionSet_Impl::defaultInteriorSubSurfaceConstructions() const {
88
1/1
✓ Branch 1 taken 123 times.
246 return getObject<ModelObject>().getModelObjectTarget<DefaultSubSurfaceConstructions>(
89
1/1
✓ Branch 1 taken 123 times.
246 OS_DefaultConstructionSetFields::DefaultInteriorSubSurfaceConstructionsName);
90 }
91
92 101 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::interiorPartitionConstruction() const {
93
2/2
✓ Branch 1 taken 101 times.
✓ Branch 4 taken 101 times.
101 return getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DefaultConstructionSetFields::InteriorPartitionConstructionName);
94 }
95
96 662 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::spaceShadingConstruction() const {
97
2/2
✓ Branch 1 taken 662 times.
✓ Branch 4 taken 662 times.
662 return getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DefaultConstructionSetFields::SpaceShadingConstructionName);
98 }
99
100 71 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::buildingShadingConstruction() const {
101
2/2
✓ Branch 1 taken 71 times.
✓ Branch 4 taken 71 times.
71 return getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DefaultConstructionSetFields::BuildingShadingConstructionName);
102 }
103
104 71 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::siteShadingConstruction() const {
105
2/2
✓ Branch 1 taken 71 times.
✓ Branch 4 taken 71 times.
71 return getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DefaultConstructionSetFields::SiteShadingConstructionName);
106 }
107
108 195 bool DefaultConstructionSet_Impl::setDefaultExteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
109
2/2
✓ Branch 1 taken 195 times.
✓ Branch 4 taken 195 times.
195 return setPointer(OS_DefaultConstructionSetFields::DefaultExteriorSurfaceConstructionsName, defaultSurfaceConstructions.handle());
110 }
111
112 1 void DefaultConstructionSet_Impl::resetDefaultExteriorSurfaceConstructions() {
113
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_DefaultConstructionSetFields::DefaultExteriorSurfaceConstructionsName, "");
114 1 }
115
116 173 bool DefaultConstructionSet_Impl::setDefaultInteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
117
2/2
✓ Branch 1 taken 173 times.
✓ Branch 4 taken 173 times.
173 return setPointer(OS_DefaultConstructionSetFields::DefaultInteriorSurfaceConstructionsName, defaultSurfaceConstructions.handle());
118 }
119
120 1 void DefaultConstructionSet_Impl::resetDefaultInteriorSurfaceConstructions() {
121
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_DefaultConstructionSetFields::DefaultInteriorSurfaceConstructionsName, "");
122 1 }
123
124 170 bool DefaultConstructionSet_Impl::setDefaultGroundContactSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
125
2/2
✓ Branch 1 taken 170 times.
✓ Branch 4 taken 170 times.
170 return setPointer(OS_DefaultConstructionSetFields::DefaultGroundContactSurfaceConstructionsName, defaultSurfaceConstructions.handle());
126 }
127
128 1 void DefaultConstructionSet_Impl::resetDefaultGroundContactSurfaceConstructions() {
129
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_DefaultConstructionSetFields::DefaultGroundContactSurfaceConstructionsName, "");
130 1 }
131
132 bool
133 173 DefaultConstructionSet_Impl::setDefaultExteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions) {
134
2/2
✓ Branch 1 taken 173 times.
✓ Branch 4 taken 173 times.
173 return setPointer(OS_DefaultConstructionSetFields::DefaultExteriorSubSurfaceConstructionsName, defaultSubSurfaceConstructions.handle());
135 }
136
137 1 void DefaultConstructionSet_Impl::resetDefaultExteriorSubSurfaceConstructions() {
138
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_DefaultConstructionSetFields::DefaultExteriorSubSurfaceConstructionsName, "");
139 1 }
140
141 bool
142 172 DefaultConstructionSet_Impl::setDefaultInteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions) {
143
2/2
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
172 return setPointer(OS_DefaultConstructionSetFields::DefaultInteriorSubSurfaceConstructionsName, defaultSubSurfaceConstructions.handle());
144 }
145
146 1 void DefaultConstructionSet_Impl::resetDefaultInteriorSubSurfaceConstructions() {
147
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_DefaultConstructionSetFields::DefaultInteriorSubSurfaceConstructionsName, "");
148 1 }
149
150 171 bool DefaultConstructionSet_Impl::setInteriorPartitionConstruction(const ConstructionBase& construction) {
151
2/2
✓ Branch 1 taken 171 times.
✓ Branch 4 taken 171 times.
171 return setPointer(OS_DefaultConstructionSetFields::InteriorPartitionConstructionName, construction.handle());
152 }
153
154 2 void DefaultConstructionSet_Impl::resetInteriorPartitionConstruction() {
155
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 setString(OS_DefaultConstructionSetFields::InteriorPartitionConstructionName, "");
156 2 }
157
158 2 bool DefaultConstructionSet_Impl::setSpaceShadingConstruction(const ConstructionBase& construction) {
159
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return setPointer(OS_DefaultConstructionSetFields::SpaceShadingConstructionName, construction.handle());
160 }
161
162 2 void DefaultConstructionSet_Impl::resetSpaceShadingConstruction() {
163
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 setString(OS_DefaultConstructionSetFields::SpaceShadingConstructionName, "");
164 2 }
165
166 2 bool DefaultConstructionSet_Impl::setBuildingShadingConstruction(const ConstructionBase& construction) {
167
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return setPointer(OS_DefaultConstructionSetFields::BuildingShadingConstructionName, construction.handle());
168 }
169
170 2 void DefaultConstructionSet_Impl::resetBuildingShadingConstruction() {
171
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 setString(OS_DefaultConstructionSetFields::BuildingShadingConstructionName, "");
172 2 }
173
174 2 bool DefaultConstructionSet_Impl::setSiteShadingConstruction(const ConstructionBase& construction) {
175
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return setPointer(OS_DefaultConstructionSetFields::SiteShadingConstructionName, construction.handle());
176 }
177
178 2 void DefaultConstructionSet_Impl::resetSiteShadingConstruction() {
179
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 setString(OS_DefaultConstructionSetFields::SiteShadingConstructionName, "");
180 2 }
181
182 23323 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::getDefaultConstruction(const PlanarSurface& planarSurface) const {
183 23323 boost::optional<ConstructionBase> result;
184
3/3
✓ Branch 1 taken 23323 times.
✓ Branch 4 taken 20957 times.
✓ Branch 5 taken 2366 times.
46646 if (planarSurface.optionalCast<Surface>()) {
185
186 20957 boost::optional<DefaultSurfaceConstructions> defaultSurfaceConstructions;
187
2/2
✓ Branch 1 taken 20957 times.
✓ Branch 4 taken 20957 times.
20957 std::string outsideBoundaryCondition = planarSurface.cast<Surface>().outsideBoundaryCondition();
188
4/4
✓ Branch 1 taken 20957 times.
✓ Branch 4 taken 20957 times.
✓ Branch 7 taken 9090 times.
✓ Branch 8 taken 11867 times.
41914 if (istringEqual("Outdoors", outsideBoundaryCondition)) {
189
1/1
✓ Branch 1 taken 9090 times.
9090 defaultSurfaceConstructions = this->defaultExteriorSurfaceConstructions();
190
10/21
✓ Branch 1 taken 11867 times.
✓ Branch 4 taken 9073 times.
✓ Branch 7 taken 9073 times.
✓ Branch 9 taken 9073 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 9073 times.
✓ Branch 13 taken 2794 times.
✓ Branch 14 taken 11867 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 11867 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 2794 times.
✓ Branch 20 taken 9073 times.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
53747 } else if (istringEqual("Ground", outsideBoundaryCondition) || istringEqual("GroundSlabPreprocessorAverage", outsideBoundaryCondition)
191
7/12
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 6 taken 9073 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9073 times.
✓ Branch 10 taken 2794 times.
✓ Branch 11 taken 9073 times.
✓ Branch 12 taken 2794 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
30013 || istringEqual("GroundSlabPreprocessorCore", outsideBoundaryCondition)
192
7/12
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 6 taken 9073 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9073 times.
✓ Branch 10 taken 2794 times.
✓ Branch 11 taken 9073 times.
✓ Branch 12 taken 2794 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
30013 || istringEqual("GroundSlabPreprocessorPerimeter", outsideBoundaryCondition)
193
7/12
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 6 taken 9073 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9073 times.
✓ Branch 10 taken 2794 times.
✓ Branch 11 taken 9073 times.
✓ Branch 12 taken 2794 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
30013 || istringEqual("GroundBasementPreprocessorAverageWall", outsideBoundaryCondition)
194
7/12
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 6 taken 9073 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9073 times.
✓ Branch 10 taken 2794 times.
✓ Branch 11 taken 9073 times.
✓ Branch 12 taken 2794 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
30013 || istringEqual("GroundBasementPreprocessorAverageFloor", outsideBoundaryCondition)
195
7/12
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 6 taken 9073 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9073 times.
✓ Branch 10 taken 2794 times.
✓ Branch 11 taken 9073 times.
✓ Branch 12 taken 2794 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
30013 || istringEqual("GroundBasementPreprocessorUpperWall", outsideBoundaryCondition)
196
12/17
✓ Branch 1 taken 11867 times.
✓ Branch 3 taken 9073 times.
✓ Branch 4 taken 2794 times.
✓ Branch 6 taken 9073 times.
✓ Branch 9 taken 9073 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 9073 times.
✓ Branch 13 taken 9073 times.
✓ Branch 14 taken 2794 times.
✓ Branch 16 taken 9073 times.
✓ Branch 17 taken 2794 times.
✓ Branch 18 taken 9073 times.
✓ Branch 19 taken 2794 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
41880 || istringEqual("GroundBasementPreprocessorLowerWall", outsideBoundaryCondition)) {
197
1/1
✓ Branch 1 taken 2794 times.
2794 defaultSurfaceConstructions = this->defaultGroundContactSurfaceConstructions();
198
4/4
✓ Branch 1 taken 9073 times.
✓ Branch 4 taken 9073 times.
✓ Branch 7 taken 9067 times.
✓ Branch 8 taken 6 times.
18146 } else if (istringEqual("Surface", outsideBoundaryCondition)) {
199
1/1
✓ Branch 1 taken 9067 times.
9067 defaultSurfaceConstructions = this->defaultInteriorSurfaceConstructions();
200
3/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 8 not taken.
12 } else if (istringEqual("Adiabatic", outsideBoundaryCondition)) {
201 // Adiabatic is special - doesn't has multiple choices by orientation - so return directly
202
1/1
✓ Branch 1 taken 6 times.
6 result = this->adiabaticSurfaceConstruction();
203 6 return result;
204 } else {
205 //GroundFCfactorMethod
206 //OtherSideCoefficients
207 //OtherSideConditionsModel
208 }
209
210
2/2
✓ Branch 0 taken 20633 times.
✓ Branch 1 taken 318 times.
20951 if (defaultSurfaceConstructions) {
211
2/2
✓ Branch 1 taken 20633 times.
✓ Branch 4 taken 20633 times.
20633 std::string surfaceType = planarSurface.cast<Surface>().surfaceType();
212
4/4
✓ Branch 1 taken 20633 times.
✓ Branch 4 taken 20633 times.
✓ Branch 7 taken 3492 times.
✓ Branch 8 taken 17141 times.
41266 if (istringEqual("Floor", surfaceType)) {
213
2/2
✓ Branch 1 taken 3492 times.
✓ Branch 4 taken 3492 times.
3492 result = defaultSurfaceConstructions->floorConstruction();
214
4/4
✓ Branch 1 taken 17141 times.
✓ Branch 4 taken 17141 times.
✓ Branch 7 taken 14254 times.
✓ Branch 8 taken 2887 times.
34282 } else if (istringEqual("Wall", surfaceType)) {
215
2/2
✓ Branch 1 taken 14254 times.
✓ Branch 4 taken 14254 times.
14254 result = defaultSurfaceConstructions->wallConstruction();
216
3/4
✓ Branch 1 taken 2887 times.
✓ Branch 4 taken 2887 times.
✓ Branch 7 taken 2887 times.
✗ Branch 8 not taken.
5774 } else if (istringEqual("RoofCeiling", surfaceType)) {
217
2/2
✓ Branch 1 taken 2887 times.
✓ Branch 4 taken 2887 times.
2887 result = defaultSurfaceConstructions->roofCeilingConstruction();
218 }
219 20633 }
220
221
7/7
✓ Branch 1 taken 20951 times.
✓ Branch 2 taken 6 times.
✓ Branch 4 taken 20951 times.
✓ Branch 5 taken 6 times.
✓ Branch 7 taken 2366 times.
✓ Branch 10 taken 1489 times.
✓ Branch 11 taken 877 times.
25695 } else if (planarSurface.optionalCast<SubSurface>()) {
222
223 1489 boost::optional<DefaultSubSurfaceConstructions> defaultSubSurfaceConstructions;
224
2/2
✓ Branch 1 taken 1489 times.
✓ Branch 4 taken 1489 times.
1489 boost::optional<Surface> surface = planarSurface.cast<SubSurface>().surface();
225
1/2
✓ Branch 0 taken 1489 times.
✗ Branch 1 not taken.
1489 if (surface) {
226
2/2
✓ Branch 1 taken 1489 times.
✓ Branch 4 taken 1489 times.
1489 std::string outsideBoundaryCondition = surface->outsideBoundaryCondition();
227
4/4
✓ Branch 1 taken 1489 times.
✓ Branch 4 taken 1489 times.
✓ Branch 7 taken 1373 times.
✓ Branch 8 taken 116 times.
2978 if (istringEqual("Outdoors", outsideBoundaryCondition)) {
228
1/1
✓ Branch 1 taken 1373 times.
1373 defaultSubSurfaceConstructions = this->defaultExteriorSubSurfaceConstructions();
229
3/4
✓ Branch 1 taken 116 times.
✓ Branch 4 taken 116 times.
✓ Branch 7 taken 116 times.
✗ Branch 8 not taken.
232 } else if (istringEqual("Surface", outsideBoundaryCondition)) {
230
1/1
✓ Branch 1 taken 116 times.
116 defaultSubSurfaceConstructions = this->defaultInteriorSubSurfaceConstructions();
231 } else {
232 //Adiabatic
233 //Ground
234 //GroundFCfactorMethod
235 //OtherSideCoefficients
236 //OtherSideConditionsModel
237 //GroundSlabPreprocessorAverage
238 //GroundSlabPreprocessorCore
239 //GroundSlabPreprocessorPerimeter
240 //GroundBasementPreprocessorAverageWall
241 //GroundBasementPreprocessorAverageFloor
242 //GroundBasementPreprocessorUpperWall
243 //GroundBasementPreprocessorLowerWall
244 }
245 1489 }
246
247
2/2
✓ Branch 0 taken 1487 times.
✓ Branch 1 taken 2 times.
1489 if (defaultSubSurfaceConstructions) {
248
249
2/2
✓ Branch 1 taken 1487 times.
✓ Branch 4 taken 1487 times.
1487 std::string subSurfaceType = planarSurface.cast<SubSurface>().subSurfaceType();
250
4/4
✓ Branch 1 taken 1487 times.
✓ Branch 4 taken 1487 times.
✓ Branch 7 taken 1307 times.
✓ Branch 8 taken 180 times.
2974 if (istringEqual("FixedWindow", subSurfaceType)) {
251
2/2
✓ Branch 1 taken 1307 times.
✓ Branch 4 taken 1307 times.
1307 result = defaultSubSurfaceConstructions->fixedWindowConstruction();
252
3/4
✓ Branch 1 taken 180 times.
✓ Branch 4 taken 180 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 180 times.
360 } else if (istringEqual("OperableWindow", subSurfaceType)) {
253 ✗ result = defaultSubSurfaceConstructions->operableWindowConstruction();
254
4/4
✓ Branch 1 taken 180 times.
✓ Branch 4 taken 180 times.
✓ Branch 7 taken 172 times.
✓ Branch 8 taken 8 times.
360 } else if (istringEqual("Door", subSurfaceType)) {
255
2/2
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
172 result = defaultSubSurfaceConstructions->doorConstruction();
256
3/4
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 8 times.
16 } else if (istringEqual("GlassDoor", subSurfaceType)) {
257 ✗ result = defaultSubSurfaceConstructions->glassDoorConstruction();
258
3/4
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 8 times.
16 } else if (istringEqual("OverheadDoor", subSurfaceType)) {
259 ✗ result = defaultSubSurfaceConstructions->overheadDoorConstruction();
260
3/4
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✗ Branch 8 not taken.
16 } else if (istringEqual("Skylight", subSurfaceType)) {
261
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 result = defaultSubSurfaceConstructions->skylightConstruction();
262 ✗ } else if (istringEqual("TubularDaylightDome", subSurfaceType)) {
263 ✗ result = defaultSubSurfaceConstructions->tubularDaylightDomeConstruction();
264 ✗ } else if (istringEqual("TubularDaylightDiffuser", subSurfaceType)) {
265 ✗ result = defaultSubSurfaceConstructions->tubularDaylightDiffuserConstruction();
266 }
267 1487 }
268
269
3/3
✓ Branch 3 taken 877 times.
✓ Branch 6 taken 94 times.
✓ Branch 7 taken 783 times.
3243 } else if (planarSurface.optionalCast<InteriorPartitionSurface>()) {
270
271
1/1
✓ Branch 1 taken 94 times.
94 result = this->interiorPartitionConstruction();
272
273
2/3
✓ Branch 1 taken 783 times.
✓ Branch 4 taken 783 times.
✗ Branch 5 not taken.
1566 } else if (planarSurface.optionalCast<ShadingSurface>()) {
274
275
2/2
✓ Branch 1 taken 783 times.
✓ Branch 4 taken 783 times.
783 boost::optional<ShadingSurfaceGroup> shadingSurfaceGroup = planarSurface.cast<ShadingSurface>().shadingSurfaceGroup();
276
1/2
✓ Branch 0 taken 783 times.
✗ Branch 1 not taken.
783 if (shadingSurfaceGroup) {
277
2/2
✓ Branch 1 taken 783 times.
✓ Branch 4 taken 783 times.
783 std::string shadingSurfaceType = shadingSurfaceGroup->shadingSurfaceType();
278
4/4
✓ Branch 1 taken 783 times.
✓ Branch 4 taken 783 times.
✓ Branch 7 taken 655 times.
✓ Branch 8 taken 128 times.
1566 if (istringEqual("Space", shadingSurfaceType)) {
279
1/1
✓ Branch 1 taken 655 times.
655 result = this->spaceShadingConstruction();
280
4/4
✓ Branch 1 taken 128 times.
✓ Branch 4 taken 128 times.
✓ Branch 7 taken 64 times.
✓ Branch 8 taken 64 times.
256 } else if (istringEqual("Building", shadingSurfaceType)) {
281
1/1
✓ Branch 1 taken 64 times.
64 result = this->buildingShadingConstruction();
282
3/4
✓ Branch 1 taken 64 times.
✓ Branch 4 taken 64 times.
✓ Branch 7 taken 64 times.
✗ Branch 8 not taken.
128 } else if (istringEqual("Site", shadingSurfaceType)) {
283
1/1
✓ Branch 1 taken 64 times.
64 result = this->siteShadingConstruction();
284 }
285 783 }
286
287 783 } else {
288 ✗ LOG_AND_THROW("Unknown planar surface: " << planarSurface.briefDescription());
289 }
290
291 23317 return result;
292 ✗ }
293
294 ✗ void DefaultConstructionSet_Impl::merge(const DefaultConstructionSet& other) {
295 ✗ boost::optional<DefaultSurfaceConstructions> thisSurfaceConstructions;
296 ✗ boost::optional<DefaultSurfaceConstructions> otherSurfaceConstructions;
297 ✗ boost::optional<DefaultSubSurfaceConstructions> thisSubSurfaceConstructions;
298 ✗ boost::optional<DefaultSubSurfaceConstructions> otherSubSurfaceConstructions;
299
300 ✗ otherSurfaceConstructions = other.defaultExteriorSurfaceConstructions();
301 ✗ if (otherSurfaceConstructions) {
302 ✗ thisSurfaceConstructions = this->defaultExteriorSurfaceConstructions();
303 ✗ if (!thisSurfaceConstructions) {
304 ✗ this->setDefaultExteriorSurfaceConstructions(*otherSurfaceConstructions);
305 } else {
306 ✗ if (thisSurfaceConstructions->handle() == otherSurfaceConstructions->handle()) {
307 // no op
308 } else {
309 ✗ if (thisSurfaceConstructions->numSources() > 1) {
310 ✗ thisSurfaceConstructions = thisSurfaceConstructions->clone(this->model()).cast<DefaultSurfaceConstructions>();
311 ✗ this->setDefaultExteriorSurfaceConstructions(*thisSurfaceConstructions);
312 }
313 ✗ thisSurfaceConstructions->merge(*otherSurfaceConstructions);
314 }
315 }
316 }
317
318 ✗ otherSurfaceConstructions = other.defaultInteriorSurfaceConstructions();
319 ✗ if (otherSurfaceConstructions) {
320 ✗ thisSurfaceConstructions = this->defaultInteriorSurfaceConstructions();
321 ✗ if (!thisSurfaceConstructions) {
322 ✗ this->setDefaultInteriorSurfaceConstructions(*otherSurfaceConstructions);
323 } else {
324 ✗ if (thisSurfaceConstructions->handle() == otherSurfaceConstructions->handle()) {
325 // no op
326 } else {
327 ✗ if (thisSurfaceConstructions->numSources() > 1) {
328 ✗ thisSurfaceConstructions = thisSurfaceConstructions->clone(this->model()).cast<DefaultSurfaceConstructions>();
329 ✗ this->setDefaultInteriorSurfaceConstructions(*thisSurfaceConstructions);
330 }
331 ✗ thisSurfaceConstructions->merge(*otherSurfaceConstructions);
332 }
333 }
334 }
335
336 ✗ otherSurfaceConstructions = other.defaultGroundContactSurfaceConstructions();
337 ✗ if (otherSurfaceConstructions) {
338 ✗ thisSurfaceConstructions = this->defaultGroundContactSurfaceConstructions();
339 ✗ if (!thisSurfaceConstructions) {
340 ✗ this->setDefaultGroundContactSurfaceConstructions(*otherSurfaceConstructions);
341 } else {
342 ✗ if (thisSurfaceConstructions->handle() == otherSurfaceConstructions->handle()) {
343 // no op
344 } else {
345 ✗ if (thisSurfaceConstructions->numSources() > 1) {
346 ✗ thisSurfaceConstructions = thisSurfaceConstructions->clone(this->model()).cast<DefaultSurfaceConstructions>();
347 ✗ this->setDefaultGroundContactSurfaceConstructions(*thisSurfaceConstructions);
348 }
349 ✗ thisSurfaceConstructions->merge(*otherSurfaceConstructions);
350 }
351 }
352 }
353
354 ✗ otherSubSurfaceConstructions = other.defaultExteriorSubSurfaceConstructions();
355 ✗ if (otherSubSurfaceConstructions) {
356 ✗ thisSubSurfaceConstructions = this->defaultExteriorSubSurfaceConstructions();
357 ✗ if (!thisSubSurfaceConstructions) {
358 ✗ this->setDefaultExteriorSubSurfaceConstructions(*otherSubSurfaceConstructions);
359 } else {
360 ✗ if (thisSubSurfaceConstructions->handle() == otherSubSurfaceConstructions->handle()) {
361 // no op
362 } else {
363 ✗ if (thisSubSurfaceConstructions->numSources() > 1) {
364 ✗ thisSubSurfaceConstructions = thisSubSurfaceConstructions->clone(this->model()).cast<DefaultSubSurfaceConstructions>();
365 ✗ this->setDefaultExteriorSubSurfaceConstructions(*thisSubSurfaceConstructions);
366 }
367 ✗ thisSubSurfaceConstructions->merge(*otherSubSurfaceConstructions);
368 }
369 }
370 }
371
372 ✗ otherSubSurfaceConstructions = other.defaultInteriorSubSurfaceConstructions();
373 ✗ if (otherSubSurfaceConstructions) {
374 ✗ thisSubSurfaceConstructions = this->defaultInteriorSubSurfaceConstructions();
375 ✗ if (!thisSubSurfaceConstructions) {
376 ✗ this->setDefaultInteriorSubSurfaceConstructions(*otherSubSurfaceConstructions);
377 } else {
378 ✗ if (thisSubSurfaceConstructions->handle() == otherSubSurfaceConstructions->handle()) {
379 // no op
380 } else {
381 ✗ if (thisSubSurfaceConstructions->numSources() > 1) {
382 ✗ thisSubSurfaceConstructions = thisSubSurfaceConstructions->clone(this->model()).cast<DefaultSubSurfaceConstructions>();
383 ✗ this->setDefaultInteriorSubSurfaceConstructions(*thisSubSurfaceConstructions);
384 }
385 ✗ thisSubSurfaceConstructions->merge(*otherSubSurfaceConstructions);
386 }
387 }
388 }
389
390 ✗ boost::optional<ConstructionBase> construction;
391
392 ✗ if (!(this->interiorPartitionConstruction())) {
393 ✗ construction = other.interiorPartitionConstruction();
394 ✗ if (construction) {
395 ✗ this->setInteriorPartitionConstruction(*construction);
396 }
397 }
398
399 ✗ if (!(this->spaceShadingConstruction())) {
400 ✗ construction = other.spaceShadingConstruction();
401 ✗ if (construction) {
402 ✗ this->setSpaceShadingConstruction(*construction);
403 }
404 }
405
406 ✗ if (!(this->buildingShadingConstruction())) {
407 ✗ construction = other.buildingShadingConstruction();
408 ✗ if (construction) {
409 ✗ this->setBuildingShadingConstruction(*construction);
410 }
411 }
412
413 ✗ if (!(this->siteShadingConstruction())) {
414 ✗ construction = other.siteShadingConstruction();
415 ✗ if (construction) {
416 ✗ this->setSiteShadingConstruction(*construction);
417 }
418 }
419 ✗ }
420
421 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::defaultExteriorSurfaceConstructionsAsModelObject() const {
422 ✗ OptionalModelObject result;
423 ✗ OptionalDefaultSurfaceConstructions intermediate = defaultExteriorSurfaceConstructions();
424 ✗ if (intermediate) {
425 ✗ result = *intermediate;
426 }
427 ✗ return result;
428 ✗ }
429
430 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::defaultInteriorSurfaceConstructionsAsModelObject() const {
431 ✗ OptionalModelObject result;
432 ✗ OptionalDefaultSurfaceConstructions intermediate = defaultInteriorSurfaceConstructions();
433 ✗ if (intermediate) {
434 ✗ result = *intermediate;
435 }
436 ✗ return result;
437 ✗ }
438
439 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::defaultGroundContactSurfaceConstructionsAsModelObject() const {
440 ✗ OptionalModelObject result;
441 ✗ OptionalDefaultSurfaceConstructions intermediate = defaultGroundContactSurfaceConstructions();
442 ✗ if (intermediate) {
443 ✗ result = *intermediate;
444 }
445 ✗ return result;
446 ✗ }
447
448 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::defaultExteriorSubSurfaceConstructionsAsModelObject() const {
449 ✗ OptionalModelObject result;
450 ✗ OptionalDefaultSubSurfaceConstructions intermediate = defaultExteriorSubSurfaceConstructions();
451 ✗ if (intermediate) {
452 ✗ result = *intermediate;
453 }
454 ✗ return result;
455 ✗ }
456
457 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::defaultInteriorSubSurfaceConstructionsAsModelObject() const {
458 ✗ OptionalModelObject result;
459 ✗ OptionalDefaultSubSurfaceConstructions intermediate = defaultInteriorSubSurfaceConstructions();
460 ✗ if (intermediate) {
461 ✗ result = *intermediate;
462 }
463 ✗ return result;
464 ✗ }
465
466 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::interiorPartitionConstructionAsModelObject() const {
467 ✗ OptionalModelObject result;
468 ✗ OptionalConstructionBase intermediate = interiorPartitionConstruction();
469 ✗ if (intermediate) {
470 ✗ result = *intermediate;
471 }
472 ✗ return result;
473 ✗ }
474
475 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::spaceShadingConstructionAsModelObject() const {
476 ✗ OptionalModelObject result;
477 ✗ OptionalConstructionBase intermediate = spaceShadingConstruction();
478 ✗ if (intermediate) {
479 ✗ result = *intermediate;
480 }
481 ✗ return result;
482 ✗ }
483
484 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::buildingShadingConstructionAsModelObject() const {
485 ✗ OptionalModelObject result;
486 ✗ OptionalConstructionBase intermediate = buildingShadingConstruction();
487 ✗ if (intermediate) {
488 ✗ result = *intermediate;
489 }
490 ✗ return result;
491 ✗ }
492
493 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::siteShadingConstructionAsModelObject() const {
494 ✗ OptionalModelObject result;
495 ✗ OptionalConstructionBase intermediate = siteShadingConstruction();
496 ✗ if (intermediate) {
497 ✗ result = *intermediate;
498 }
499 ✗ return result;
500 ✗ }
501
502 ✗ bool DefaultConstructionSet_Impl::setDefaultExteriorSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject) {
503 ✗ if (modelObject) {
504 ✗ OptionalDefaultSurfaceConstructions intermediate = modelObject->optionalCast<DefaultSurfaceConstructions>();
505 ✗ if (intermediate) {
506 ✗ return setDefaultExteriorSurfaceConstructions(*intermediate);
507 } else {
508 ✗ return false;
509 }
510 ✗ } else {
511 ✗ resetDefaultExteriorSurfaceConstructions();
512 }
513 ✗ return true;
514 }
515
516 ✗ bool DefaultConstructionSet_Impl::setDefaultInteriorSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject) {
517 ✗ if (modelObject) {
518 ✗ OptionalDefaultSurfaceConstructions intermediate = modelObject->optionalCast<DefaultSurfaceConstructions>();
519 ✗ if (intermediate) {
520 ✗ return setDefaultInteriorSurfaceConstructions(*intermediate);
521 } else {
522 ✗ return false;
523 }
524 ✗ } else {
525 ✗ resetDefaultInteriorSurfaceConstructions();
526 }
527 ✗ return true;
528 }
529
530 ✗ bool DefaultConstructionSet_Impl::setDefaultGroundContactSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject) {
531 ✗ if (modelObject) {
532 ✗ OptionalDefaultSurfaceConstructions intermediate = modelObject->optionalCast<DefaultSurfaceConstructions>();
533 ✗ if (intermediate) {
534 ✗ return setDefaultGroundContactSurfaceConstructions(*intermediate);
535 } else {
536 ✗ return false;
537 }
538 ✗ } else {
539 ✗ resetDefaultGroundContactSurfaceConstructions();
540 }
541 ✗ return true;
542 }
543
544 ✗ bool DefaultConstructionSet_Impl::setDefaultExteriorSubSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject) {
545 ✗ if (modelObject) {
546 ✗ OptionalDefaultSubSurfaceConstructions intermediate = modelObject->optionalCast<DefaultSubSurfaceConstructions>();
547 ✗ if (intermediate) {
548 ✗ return setDefaultExteriorSubSurfaceConstructions(*intermediate);
549 } else {
550 ✗ return false;
551 }
552 ✗ } else {
553 ✗ resetDefaultExteriorSubSurfaceConstructions();
554 }
555 ✗ return true;
556 }
557
558 ✗ bool DefaultConstructionSet_Impl::setDefaultInteriorSubSurfaceConstructionsAsModelObject(const boost::optional<ModelObject>& modelObject) {
559 ✗ if (modelObject) {
560 ✗ OptionalDefaultSubSurfaceConstructions intermediate = modelObject->optionalCast<DefaultSubSurfaceConstructions>();
561 ✗ if (intermediate) {
562 ✗ return setDefaultInteriorSubSurfaceConstructions(*intermediate);
563 } else {
564 ✗ return false;
565 }
566 ✗ } else {
567 ✗ resetDefaultInteriorSubSurfaceConstructions();
568 }
569 ✗ return true;
570 }
571
572 ✗ bool DefaultConstructionSet_Impl::setInteriorPartitionConstructionAsModelObject(const boost::optional<ModelObject>& modelObject) {
573 ✗ if (modelObject) {
574 ✗ OptionalConstructionBase intermediate = modelObject->optionalCast<ConstructionBase>();
575 ✗ if (intermediate) {
576 ✗ return setInteriorPartitionConstruction(*intermediate);
577 } else {
578 ✗ return false;
579 }
580 ✗ } else {
581 ✗ resetInteriorPartitionConstruction();
582 }
583 ✗ return true;
584 }
585
586 ✗ bool DefaultConstructionSet_Impl::setSpaceShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject) {
587 ✗ if (modelObject) {
588 ✗ OptionalConstructionBase intermediate = modelObject->optionalCast<ConstructionBase>();
589 ✗ if (intermediate) {
590 ✗ return setSpaceShadingConstruction(*intermediate);
591 } else {
592 ✗ return false;
593 }
594 ✗ } else {
595 ✗ resetSpaceShadingConstruction();
596 }
597 ✗ return true;
598 }
599
600 ✗ bool DefaultConstructionSet_Impl::setBuildingShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject) {
601 ✗ if (modelObject) {
602 ✗ OptionalConstructionBase intermediate = modelObject->optionalCast<ConstructionBase>();
603 ✗ if (intermediate) {
604 ✗ return setBuildingShadingConstruction(*intermediate);
605 } else {
606 ✗ return false;
607 }
608 ✗ } else {
609 ✗ resetBuildingShadingConstruction();
610 }
611 ✗ return true;
612 }
613
614 ✗ bool DefaultConstructionSet_Impl::setSiteShadingConstructionAsModelObject(const boost::optional<ModelObject>& modelObject) {
615 ✗ if (modelObject) {
616 ✗ OptionalConstructionBase intermediate = modelObject->optionalCast<ConstructionBase>();
617 ✗ if (intermediate) {
618 ✗ return setSiteShadingConstruction(*intermediate);
619 } else {
620 ✗ return false;
621 }
622 ✗ } else {
623 ✗ resetSiteShadingConstruction();
624 }
625 ✗ return true;
626 }
627
628 // Adiabatic Surface Construction Methods
629 13 boost::optional<ConstructionBase> DefaultConstructionSet_Impl::adiabaticSurfaceConstruction() const {
630
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 return getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DefaultConstructionSetFields::AdiabaticSurfaceConstructionName);
631 }
632
633 2 bool DefaultConstructionSet_Impl::setAdiabaticSurfaceConstruction(const ConstructionBase& construction) {
634
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return setPointer(OS_DefaultConstructionSetFields::AdiabaticSurfaceConstructionName, construction.handle());
635 }
636
637 2 void DefaultConstructionSet_Impl::resetAdiabaticSurfaceConstruction() {
638
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 setString(OS_DefaultConstructionSetFields::AdiabaticSurfaceConstructionName, "");
639 2 }
640
641 ✗ boost::optional<ModelObject> DefaultConstructionSet_Impl::adiabaticSurfaceConstructionAsModelObject() const {
642 ✗ OptionalModelObject result;
643 ✗ OptionalConstructionBase intermediate = adiabaticSurfaceConstruction();
644 ✗ if (intermediate) {
645 ✗ result = *intermediate;
646 }
647 ✗ return result;
648 ✗ }
649
650 ✗ bool DefaultConstructionSet_Impl::setAdiabaticSurfaceConstructionAsModelObject(const boost::optional<ModelObject>& modelObject) {
651 ✗ if (modelObject) {
652 ✗ OptionalConstructionBase intermediate = modelObject->optionalCast<ConstructionBase>();
653 ✗ if (intermediate) {
654 ✗ return setAdiabaticSurfaceConstruction(*intermediate);
655 } else {
656 ✗ return false;
657 }
658 ✗ } else {
659 ✗ resetAdiabaticSurfaceConstruction();
660 }
661 ✗ return true;
662 }
663
664 } // namespace detail
665
666 213 DefaultConstructionSet::DefaultConstructionSet(const Model& model) : ResourceObject(DefaultConstructionSet::iddObjectType(), model) {
667
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 213 times.
✗ Branch 5 not taken.
213 OS_ASSERT(getImpl<detail::DefaultConstructionSet_Impl>());
668 213 }
669
670 8706 IddObjectType DefaultConstructionSet::iddObjectType() {
671
1/1
✓ Branch 1 taken 8706 times.
8706 IddObjectType result(IddObjectType::OS_DefaultConstructionSet);
672 8706 return result;
673 }
674
675 28 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet::defaultExteriorSurfaceConstructions() const {
676
1/1
✓ Branch 3 taken 28 times.
28 return getImpl<detail::DefaultConstructionSet_Impl>()->defaultExteriorSurfaceConstructions();
677 }
678
679 7 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet::defaultInteriorSurfaceConstructions() const {
680
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->defaultInteriorSurfaceConstructions();
681 }
682
683 7 boost::optional<DefaultSurfaceConstructions> DefaultConstructionSet::defaultGroundContactSurfaceConstructions() const {
684
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->defaultGroundContactSurfaceConstructions();
685 }
686
687 7 boost::optional<DefaultSubSurfaceConstructions> DefaultConstructionSet::defaultExteriorSubSurfaceConstructions() const {
688
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->defaultExteriorSubSurfaceConstructions();
689 }
690
691 7 boost::optional<DefaultSubSurfaceConstructions> DefaultConstructionSet::defaultInteriorSubSurfaceConstructions() const {
692
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->defaultInteriorSubSurfaceConstructions();
693 }
694
695 7 boost::optional<ConstructionBase> DefaultConstructionSet::interiorPartitionConstruction() const {
696
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->interiorPartitionConstruction();
697 }
698
699 7 boost::optional<ConstructionBase> DefaultConstructionSet::spaceShadingConstruction() const {
700
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->spaceShadingConstruction();
701 }
702
703 7 boost::optional<ConstructionBase> DefaultConstructionSet::buildingShadingConstruction() const {
704
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->buildingShadingConstruction();
705 }
706
707 7 boost::optional<ConstructionBase> DefaultConstructionSet::siteShadingConstruction() const {
708
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->siteShadingConstruction();
709 }
710
711 195 bool DefaultConstructionSet::setDefaultExteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
712
1/1
✓ Branch 3 taken 195 times.
195 return getImpl<detail::DefaultConstructionSet_Impl>()->setDefaultExteriorSurfaceConstructions(defaultSurfaceConstructions);
713 }
714
715 1 void DefaultConstructionSet::resetDefaultExteriorSurfaceConstructions() {
716
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DefaultConstructionSet_Impl>()->resetDefaultExteriorSurfaceConstructions();
717 1 }
718
719 173 bool DefaultConstructionSet::setDefaultInteriorSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
720
1/1
✓ Branch 3 taken 173 times.
173 return getImpl<detail::DefaultConstructionSet_Impl>()->setDefaultInteriorSurfaceConstructions(defaultSurfaceConstructions);
721 }
722
723 1 void DefaultConstructionSet::resetDefaultInteriorSurfaceConstructions() {
724
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DefaultConstructionSet_Impl>()->resetDefaultInteriorSurfaceConstructions();
725 1 }
726
727 170 bool DefaultConstructionSet::setDefaultGroundContactSurfaceConstructions(const DefaultSurfaceConstructions& defaultSurfaceConstructions) {
728
1/1
✓ Branch 3 taken 170 times.
170 return getImpl<detail::DefaultConstructionSet_Impl>()->setDefaultGroundContactSurfaceConstructions(defaultSurfaceConstructions);
729 }
730
731 1 void DefaultConstructionSet::resetDefaultGroundContactSurfaceConstructions() {
732
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DefaultConstructionSet_Impl>()->resetDefaultGroundContactSurfaceConstructions();
733 1 }
734
735 173 bool DefaultConstructionSet::setDefaultExteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions) {
736
1/1
✓ Branch 3 taken 173 times.
173 return getImpl<detail::DefaultConstructionSet_Impl>()->setDefaultExteriorSubSurfaceConstructions(defaultSubSurfaceConstructions);
737 }
738
739 1 void DefaultConstructionSet::resetDefaultExteriorSubSurfaceConstructions() {
740
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DefaultConstructionSet_Impl>()->resetDefaultExteriorSubSurfaceConstructions();
741 1 }
742
743 172 bool DefaultConstructionSet::setDefaultInteriorSubSurfaceConstructions(const DefaultSubSurfaceConstructions& defaultSubSurfaceConstructions) {
744
1/1
✓ Branch 3 taken 172 times.
172 return getImpl<detail::DefaultConstructionSet_Impl>()->setDefaultInteriorSubSurfaceConstructions(defaultSubSurfaceConstructions);
745 }
746
747 1 void DefaultConstructionSet::resetDefaultInteriorSubSurfaceConstructions() {
748
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DefaultConstructionSet_Impl>()->resetDefaultInteriorSubSurfaceConstructions();
749 1 }
750
751 171 bool DefaultConstructionSet::setInteriorPartitionConstruction(const ConstructionBase& construction) {
752
1/1
✓ Branch 3 taken 171 times.
171 return getImpl<detail::DefaultConstructionSet_Impl>()->setInteriorPartitionConstruction(construction);
753 }
754
755 2 void DefaultConstructionSet::resetInteriorPartitionConstruction() {
756
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DefaultConstructionSet_Impl>()->resetInteriorPartitionConstruction();
757 2 }
758
759 2 bool DefaultConstructionSet::setSpaceShadingConstruction(const ConstructionBase& construction) {
760
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DefaultConstructionSet_Impl>()->setSpaceShadingConstruction(construction);
761 }
762
763 2 void DefaultConstructionSet::resetSpaceShadingConstruction() {
764
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DefaultConstructionSet_Impl>()->resetSpaceShadingConstruction();
765 2 }
766
767 2 bool DefaultConstructionSet::setBuildingShadingConstruction(const ConstructionBase& construction) {
768
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DefaultConstructionSet_Impl>()->setBuildingShadingConstruction(construction);
769 }
770
771 2 void DefaultConstructionSet::resetBuildingShadingConstruction() {
772
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DefaultConstructionSet_Impl>()->resetBuildingShadingConstruction();
773 2 }
774
775 2 bool DefaultConstructionSet::setSiteShadingConstruction(const ConstructionBase& construction) {
776
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DefaultConstructionSet_Impl>()->setSiteShadingConstruction(construction);
777 }
778
779 2 void DefaultConstructionSet::resetSiteShadingConstruction() {
780
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DefaultConstructionSet_Impl>()->resetSiteShadingConstruction();
781 2 }
782
783 23323 boost::optional<ConstructionBase> DefaultConstructionSet::getDefaultConstruction(const PlanarSurface& planarSurface) const {
784
1/1
✓ Branch 3 taken 23323 times.
23323 return getImpl<detail::DefaultConstructionSet_Impl>()->getDefaultConstruction(planarSurface);
785 }
786
787 ✗ void DefaultConstructionSet::merge(const DefaultConstructionSet& other) {
788 ✗ getImpl<detail::DefaultConstructionSet_Impl>()->merge(other);
789 ✗ }
790
791 7 boost::optional<ConstructionBase> DefaultConstructionSet::adiabaticSurfaceConstruction() const {
792
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DefaultConstructionSet_Impl>()->adiabaticSurfaceConstruction();
793 }
794
795 2 bool DefaultConstructionSet::setAdiabaticSurfaceConstruction(const ConstructionBase& construction) {
796
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DefaultConstructionSet_Impl>()->setAdiabaticSurfaceConstruction(construction);
797 }
798
799 2 void DefaultConstructionSet::resetAdiabaticSurfaceConstruction() {
800
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DefaultConstructionSet_Impl>()->resetAdiabaticSurfaceConstruction();
801 2 }
802
803 /// @cond
804
1/1
✓ Branch 3 taken 24090 times.
24090 DefaultConstructionSet::DefaultConstructionSet(std::shared_ptr<detail::DefaultConstructionSet_Impl> impl) : ResourceObject(std::move(impl)) {}
805 /// @endcond
806
807 } // namespace model
808 } // namespace openstudio
809