GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 93.4% 169 / 0 / 181
Functions: 93.0% 40 / 0 / 43
Branches: 77.1% 219 / 0 / 284

src/model/DaylightingDeviceTubular.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 "DaylightingDeviceTubular.hpp"
7 #include "DaylightingDeviceTubular_Impl.hpp"
8
9 #include "Model.hpp"
10 #include "Model_Impl.hpp"
11 #include "SubSurface.hpp"
12 #include "SubSurface_Impl.hpp"
13 #include "ConstructionBase.hpp"
14 #include "ConstructionBase_Impl.hpp"
15 #include "ThermalZone.hpp"
16 #include "ThermalZone_Impl.hpp"
17
18 #include "../utilities/idf/WorkspaceExtensibleGroup.hpp"
19
20 #include <utilities/idd/OS_DaylightingDevice_Tubular_FieldEnums.hxx>
21 #include <utilities/idd/IddEnums.hxx>
22
23 #include "../utilities/core/Assert.hpp"
24
25 namespace openstudio {
26 namespace model {
27
28 namespace detail {
29
30 10 DaylightingDeviceTubular_Impl::DaylightingDeviceTubular_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
31 10 : ModelObject_Impl(idfObject, model, keepHandle) {
32
4/6
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
10 OS_ASSERT(idfObject.iddObject().type() == DaylightingDeviceTubular::iddObjectType());
33 10 }
34
35 ✗ DaylightingDeviceTubular_Impl::DaylightingDeviceTubular_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
36 ✗ bool keepHandle)
37 ✗ : ModelObject_Impl(other, model, keepHandle) {
38 ✗ OS_ASSERT(other.iddObject().type() == DaylightingDeviceTubular::iddObjectType());
39 ✗ }
40
41 1 DaylightingDeviceTubular_Impl::DaylightingDeviceTubular_Impl(const DaylightingDeviceTubular_Impl& other, Model_Impl* model, bool keepHandle)
42 1 : ModelObject_Impl(other, model, keepHandle) {}
43
44 ✗ const std::vector<std::string>& DaylightingDeviceTubular_Impl::outputVariableNames() const {
45 ✗ static const std::vector<std::string> result;
46 ✗ return result;
47 }
48
49 ✗ IddObjectType DaylightingDeviceTubular_Impl::iddObjectType() const {
50 ✗ return DaylightingDeviceTubular::iddObjectType();
51 }
52
53 5 SubSurface DaylightingDeviceTubular_Impl::subSurfaceDome() const {
54
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 OptionalSubSurface subSurface = getObject<ModelObject>().getModelObjectTarget<SubSurface>(OS_DaylightingDevice_TubularFields::DomeName);
55
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(subSurface);
56
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return subSurface.get();
57 5 }
58
59 3 SubSurface DaylightingDeviceTubular_Impl::subSurfaceDiffuser() const {
60
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 OptionalSubSurface subSurface = getObject<ModelObject>().getModelObjectTarget<SubSurface>(OS_DaylightingDevice_TubularFields::DiffuserName);
61
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(subSurface);
62
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return subSurface.get();
63 3 }
64
65 3 ConstructionBase DaylightingDeviceTubular_Impl::construction() const {
66 boost::optional<ConstructionBase> construction =
67
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 getObject<ModelObject>().getModelObjectTarget<ConstructionBase>(OS_DaylightingDevice_TubularFields::ConstructionName);
68
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(construction);
69
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return construction.get();
70 3 }
71
72 3 double DaylightingDeviceTubular_Impl::diameter() const {
73
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_DaylightingDevice_TubularFields::Diameter, true);
74
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
75
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
76 }
77
78 3 double DaylightingDeviceTubular_Impl::totalLength() const {
79
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_DaylightingDevice_TubularFields::TotalLength, true);
80
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
81
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
82 }
83
84 3 double DaylightingDeviceTubular_Impl::effectiveThermalResistance() const {
85
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_DaylightingDevice_TubularFields::EffectiveThermalResistance, true);
86
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
87
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
88 }
89
90 3 std::vector<TransitionZone> DaylightingDeviceTubular_Impl::transitionZones() const {
91 3 std::vector<TransitionZone> result;
92
93
1/1
✓ Branch 1 taken 3 times.
3 std::vector<IdfExtensibleGroup> groups = extensibleGroups();
94
95
2/2
✓ Branch 5 taken 7 times.
✓ Branch 6 taken 3 times.
10 for (const auto& group : groups) {
96 boost::optional<WorkspaceObject> wo =
97
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 group.cast<WorkspaceExtensibleGroup>().getTarget(OS_DaylightingDevice_TubularExtensibleFields::TransitionZoneName);
98
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 boost::optional<ThermalZone> zone = wo->optionalCast<ThermalZone>();
99 boost::optional<double> length =
100
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 group.cast<WorkspaceExtensibleGroup>().getDouble(OS_DaylightingDevice_TubularExtensibleFields::TransitionZoneLength);
101
102
3/6
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 7 times.
✗ Branch 5 not taken.
14 if (zone && length) {
103
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 TransitionZone transitionZone(zone.get(), length.get());
104
1/1
✓ Branch 1 taken 7 times.
7 result.push_back(transitionZone);
105 7 }
106 7 }
107
108 6 return result;
109 3 }
110
111 11 unsigned int DaylightingDeviceTubular_Impl::numberofTransitionZones() const {
112 11 return numExtensibleGroups();
113 }
114
115 1 bool DaylightingDeviceTubular_Impl::setConstruction(const ConstructionBase& construction) {
116
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 return setPointer(OS_DaylightingDevice_TubularFields::ConstructionName, construction.handle());
117 }
118
119 7 bool DaylightingDeviceTubular_Impl::setDiameter(double diameter) {
120 7 bool result = setDouble(OS_DaylightingDevice_TubularFields::Diameter, diameter);
121
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
122 7 return result;
123 }
124
125 7 bool DaylightingDeviceTubular_Impl::setTotalLength(double totalLength) {
126 7 bool result = setDouble(OS_DaylightingDevice_TubularFields::TotalLength, totalLength);
127
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
128 7 return result;
129 }
130
131 7 bool DaylightingDeviceTubular_Impl::setEffectiveThermalResistance(double effectiveThermalResistance) {
132 7 bool result = setDouble(OS_DaylightingDevice_TubularFields::EffectiveThermalResistance, effectiveThermalResistance);
133
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
134 7 return result;
135 }
136
137 8 bool DaylightingDeviceTubular_Impl::addTransitionZone(const TransitionZone& transitionZone) {
138 bool result;
139
140 // Push an extensible group
141
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
8 auto eg = getObject<ModelObject>().pushExtensibleGroup().cast<WorkspaceExtensibleGroup>();
142
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
8 bool zone = eg.setPointer(OS_DaylightingDevice_TubularExtensibleFields::TransitionZoneName, transitionZone.thermalZone().handle());
143
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 bool length = eg.setDouble(OS_DaylightingDevice_TubularExtensibleFields::TransitionZoneLength, transitionZone.length());
144
2/4
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
✗ Branch 3 not taken.
8 if (zone && length) {
145 8 result = true;
146 } else {
147 // Something went wrong
148 // So erase the new extensible group
149 ✗ getObject<ModelObject>().eraseExtensibleGroup(eg.groupIndex());
150 ✗ result = false;
151 }
152 8 result = true;
153
154 8 return result;
155 8 }
156
157 3 bool DaylightingDeviceTubular_Impl::addTransitionZone(const ThermalZone& zone, double length) {
158 // Make a transition zone, and then call the above function
159
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return addTransitionZone(TransitionZone{zone, length});
160 }
161
162 2 bool DaylightingDeviceTubular_Impl::removeTransitionZone(unsigned groupIndex) {
163 bool result;
164
165 2 unsigned int num = numberofTransitionZones();
166
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (groupIndex < num) {
167
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 getObject<ModelObject>().eraseExtensibleGroup(groupIndex);
168 1 result = true;
169 } else {
170 1 result = false;
171 }
172 2 return result;
173 }
174
175 2 void DaylightingDeviceTubular_Impl::removeAllTransitionZones() {
176
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 getObject<ModelObject>().clearExtensibleGroups();
177 2 }
178
179 2 bool DaylightingDeviceTubular_Impl::addTransitionZones(const std::vector<TransitionZone>& transitionZones) {
180
2/2
✓ Branch 5 taken 4 times.
✓ Branch 6 taken 2 times.
6 for (const TransitionZone& transitionZone : transitionZones) {
181
1/1
✓ Branch 1 taken 4 times.
4 addTransitionZone(transitionZone);
182 }
183 2 return true;
184 }
185
186 } // namespace detail
187
188 5 DaylightingDeviceTubular::DaylightingDeviceTubular(const SubSurface& dome, const SubSurface& diffuser, const ConstructionBase& construction,
189 5 double diameter, double totalLength, double effectiveThermalResistance)
190
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 : ModelObject(DaylightingDeviceTubular::iddObjectType(), dome.model()) {
191
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 5 not taken.
5 OS_ASSERT(getImpl<detail::DaylightingDeviceTubular_Impl>());
192
193 5 bool subSurfaceOk = false;
194
7/8
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 1 time.
5 if (dome.allowDaylightingDeviceTubularDome() && diffuser.allowDaylightingDeviceTubularDiffuser()) {
195
10/16
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 1 time.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 3 times.
✓ Branch 13 taken 1 time.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✓ Branch 18 taken 3 times.
✓ Branch 19 taken 1 time.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
4 if (!dome.daylightingDeviceTubular() && !diffuser.daylightingDeviceTubular()) {
196 3 subSurfaceOk = true;
197 }
198 }
199
200
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
5 if (!subSurfaceOk) {
201
1/1
✓ Branch 1 taken 2 times.
2 this->remove();
202
29/29
✓ 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.
✓ Branch 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 25 taken 2 times.
✓ Branch 28 taken 2 times.
✓ Branch 33 taken 2 times.
✓ Branch 36 taken 2 times.
✓ Branch 39 taken 2 times.
✓ Branch 45 taken 2 times.
✓ Branch 48 taken 2 times.
✓ Branch 51 taken 2 times.
✓ Branch 54 taken 2 times.
✓ Branch 57 taken 2 times.
✓ Branch 60 taken 2 times.
✓ Branch 63 taken 2 times.
✓ Branch 66 taken 2 times.
✓ Branch 69 taken 2 times.
✓ Branch 72 taken 2 times.
✓ Branch 75 taken 2 times.
✓ Branch 78 taken 2 times.
✓ Branch 81 taken 2 times.
✓ Branch 84 taken 2 times.
✓ Branch 90 taken 2 times.
✓ Branch 93 taken 2 times.
2 LOG_AND_THROW("Cannot create DaylightingDeviceTubular for SubSurface '" << dome.name().get() << "' and '" << diffuser.name().get() << "'");
203 }
204
205
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 bool test = setPointer(OS_DaylightingDevice_TubularFields::DomeName, dome.handle());
206
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
207
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 test = setPointer(OS_DaylightingDevice_TubularFields::DiffuserName, diffuser.handle());
208
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
209
210
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 test = setPointer(OS_DaylightingDevice_TubularFields::ConstructionName, construction.handle());
211
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
212
213
1/1
✓ Branch 1 taken 3 times.
3 setDiameter(diameter);
214
215
1/1
✓ Branch 1 taken 3 times.
3 setTotalLength(totalLength);
216
217
1/1
✓ Branch 1 taken 3 times.
3 setEffectiveThermalResistance(effectiveThermalResistance);
218 5 }
219
220 5 DaylightingDeviceTubular::DaylightingDeviceTubular(const SubSurface& dome, const SubSurface& diffuser, const ConstructionBase& construction)
221
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 : ModelObject(DaylightingDeviceTubular::iddObjectType(), dome.model()) {
222
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 5 not taken.
5 OS_ASSERT(getImpl<detail::DaylightingDeviceTubular_Impl>());
223
224 5 bool subSurfaceOk = false;
225
7/8
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 1 time.
5 if (dome.allowDaylightingDeviceTubularDome() && diffuser.allowDaylightingDeviceTubularDiffuser()) {
226
10/16
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 1 time.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 3 times.
✓ Branch 13 taken 1 time.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✓ Branch 18 taken 3 times.
✓ Branch 19 taken 1 time.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
4 if (!dome.daylightingDeviceTubular() && !diffuser.daylightingDeviceTubular()) {
227 3 subSurfaceOk = true;
228 }
229 }
230
231
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
5 if (!subSurfaceOk) {
232
1/1
✓ Branch 1 taken 2 times.
2 this->remove();
233
29/29
✓ 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.
✓ Branch 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 25 taken 2 times.
✓ Branch 28 taken 2 times.
✓ Branch 33 taken 2 times.
✓ Branch 36 taken 2 times.
✓ Branch 39 taken 2 times.
✓ Branch 45 taken 2 times.
✓ Branch 48 taken 2 times.
✓ Branch 51 taken 2 times.
✓ Branch 54 taken 2 times.
✓ Branch 57 taken 2 times.
✓ Branch 60 taken 2 times.
✓ Branch 63 taken 2 times.
✓ Branch 66 taken 2 times.
✓ Branch 69 taken 2 times.
✓ Branch 72 taken 2 times.
✓ Branch 75 taken 2 times.
✓ Branch 78 taken 2 times.
✓ Branch 81 taken 2 times.
✓ Branch 84 taken 2 times.
✓ Branch 90 taken 2 times.
✓ Branch 93 taken 2 times.
2 LOG_AND_THROW("Cannot create DaylightingDeviceTubular for SubSurface '" << dome.name().get() << "' and '" << diffuser.name().get() << "'");
234 }
235
236
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 bool test = setPointer(OS_DaylightingDevice_TubularFields::DomeName, dome.handle());
237
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
238
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 test = setPointer(OS_DaylightingDevice_TubularFields::DiffuserName, diffuser.handle());
239
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
240
241
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 test = setPointer(OS_DaylightingDevice_TubularFields::ConstructionName, construction.handle());
242
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(test);
243
244
1/1
✓ Branch 1 taken 3 times.
3 setDiameter(0.3556); // DaylightingDeviceTubular.idf
245
246
1/1
✓ Branch 1 taken 3 times.
3 setTotalLength(1.4); // DaylightingDeviceTubular.idf
247
248
1/1
✓ Branch 1 taken 3 times.
3 setEffectiveThermalResistance(0.28); // ProposedEnergy+.idd
249 5 }
250
251 30367 IddObjectType DaylightingDeviceTubular::iddObjectType() {
252
1/1
✓ Branch 1 taken 30367 times.
30367 IddObjectType result(IddObjectType::OS_DaylightingDevice_Tubular);
253 30367 return result;
254 }
255
256 5 SubSurface DaylightingDeviceTubular::subSurfaceDome() const {
257
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DaylightingDeviceTubular_Impl>()->subSurfaceDome();
258 }
259
260 3 SubSurface DaylightingDeviceTubular::subSurfaceDiffuser() const {
261
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->subSurfaceDiffuser();
262 }
263
264 3 ConstructionBase DaylightingDeviceTubular::construction() const {
265
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->construction();
266 }
267
268 3 double DaylightingDeviceTubular::diameter() const {
269
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->diameter();
270 }
271
272 3 double DaylightingDeviceTubular::totalLength() const {
273
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->totalLength();
274 }
275
276 3 double DaylightingDeviceTubular::effectiveThermalResistance() const {
277
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->effectiveThermalResistance();
278 }
279
280 3 std::vector<TransitionZone> DaylightingDeviceTubular::transitionZones() const {
281
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->transitionZones();
282 }
283
284 9 unsigned int DaylightingDeviceTubular::numberofTransitionZones() const {
285
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::DaylightingDeviceTubular_Impl>()->numberofTransitionZones();
286 }
287
288 1 bool DaylightingDeviceTubular::setConstruction(const ConstructionBase& construction) {
289
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DaylightingDeviceTubular_Impl>()->setConstruction(construction);
290 }
291
292 7 bool DaylightingDeviceTubular::setDiameter(double diameter) {
293
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DaylightingDeviceTubular_Impl>()->setDiameter(diameter);
294 }
295
296 7 bool DaylightingDeviceTubular::setTotalLength(double totalLength) {
297
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DaylightingDeviceTubular_Impl>()->setTotalLength(totalLength);
298 }
299
300 7 bool DaylightingDeviceTubular::setEffectiveThermalResistance(double effectiveThermalResistance) {
301
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::DaylightingDeviceTubular_Impl>()->setEffectiveThermalResistance(effectiveThermalResistance);
302 }
303
304 1 bool DaylightingDeviceTubular::addTransitionZone(const TransitionZone& transitionZone) {
305
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DaylightingDeviceTubular_Impl>()->addTransitionZone(transitionZone);
306 }
307
308 3 bool DaylightingDeviceTubular::addTransitionZone(const ThermalZone& zone, double length) {
309
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DaylightingDeviceTubular_Impl>()->addTransitionZone(zone, length);
310 }
311
312 2 void DaylightingDeviceTubular::removeTransitionZone(int groupIndex) {
313
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DaylightingDeviceTubular_Impl>()->removeTransitionZone(groupIndex);
314 2 }
315
316 2 void DaylightingDeviceTubular::removeAllTransitionZones() {
317
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::DaylightingDeviceTubular_Impl>()->removeAllTransitionZones();
318 2 }
319
320 2 bool DaylightingDeviceTubular::addTransitionZones(const std::vector<TransitionZone>& transitionZones) {
321
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DaylightingDeviceTubular_Impl>()->addTransitionZones(transitionZones);
322 }
323
324 /// @cond
325
1/1
✓ Branch 3 taken 18 times.
18 DaylightingDeviceTubular::DaylightingDeviceTubular(std::shared_ptr<detail::DaylightingDeviceTubular_Impl> impl) : ModelObject(std::move(impl)) {}
326 /// @endcond
327
328 } // namespace model
329 } // namespace openstudio
330