GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 13.7% 40 / 0 / 293
Functions: 15.0% 15 / 0 / 100
Branches: 10.5% 23 / 0 / 219

src/model/AirflowNetworkZone.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 "AirflowNetworkZone.hpp"
7 #include "AirflowNetworkZone_Impl.hpp"
8
9 // TODO: Check the following class names against object getters and setters.
10 #include "ThermalZone.hpp"
11 #include "ThermalZone_Impl.hpp"
12 #include "Schedule.hpp"
13 #include "Schedule_Impl.hpp"
14 #include "AirflowNetworkOccupantVentilationControl.hpp"
15 #include "AirflowNetworkOccupantVentilationControl_Impl.hpp"
16 #include "ScheduleTypeLimits.hpp"
17 #include "ScheduleTypeRegistry.hpp"
18
19 #include <utilities/idd/IddFactory.hxx>
20 #include <utilities/idd/IddEnums.hxx>
21 #include <utilities/idd/OS_AirflowNetworkZone_FieldEnums.hxx>
22
23 #include "../utilities/units/Unit.hpp"
24
25 #include "../utilities/core/Assert.hpp"
26
27 namespace openstudio {
28 namespace model {
29
30 namespace detail {
31
32 2 AirflowNetworkZone_Impl::AirflowNetworkZone_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
33 2 : AirflowNetworkNode_Impl(idfObject, model, keepHandle) {
34
4/6
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
2 OS_ASSERT(idfObject.iddObject().type() == AirflowNetworkZone::iddObjectType());
35 2 }
36
37 ✗ AirflowNetworkZone_Impl::AirflowNetworkZone_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
38 ✗ : AirflowNetworkNode_Impl(other, model, keepHandle) {
39 ✗ OS_ASSERT(other.iddObject().type() == AirflowNetworkZone::iddObjectType());
40 ✗ }
41
42 2 AirflowNetworkZone_Impl::AirflowNetworkZone_Impl(const AirflowNetworkZone_Impl& other, Model_Impl* model, bool keepHandle)
43 2 : AirflowNetworkNode_Impl(other, model, keepHandle) {}
44
45 ✗ const std::vector<std::string>& AirflowNetworkZone_Impl::outputVariableNames() const {
46 ✗ static const std::vector<std::string> result;
47 ✗ return result;
48 }
49
50 ✗ IddObjectType AirflowNetworkZone_Impl::iddObjectType() const {
51 ✗ return AirflowNetworkZone::iddObjectType();
52 }
53
54 ✗ std::vector<ScheduleTypeKey> AirflowNetworkZone_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
55 ✗ std::vector<ScheduleTypeKey> result;
56 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
57 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
58 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
59 ✗ if (std::find(b, e, OS_AirflowNetworkZoneFields::VentilationControlZoneTemperatureSetpointScheduleName) != e) {
60 ✗ result.emplace_back("AirflowNetworkZone", "Ventilation Control Zone Temperature Setpoint");
61 }
62 ✗ if (std::find(b, e, OS_AirflowNetworkZoneFields::VentingAvailabilityScheduleName) != e) {
63 ✗ result.emplace_back("AirflowNetworkZone", "Venting Availability");
64 }
65 ✗ return result;
66 ✗ }
67
68 ✗ ThermalZone AirflowNetworkZone_Impl::thermalZone() const {
69 ✗ boost::optional<ThermalZone> value = optionalThermalZone();
70 ✗ if (!value) {
71 ✗ LOG_AND_THROW(briefDescription() << " does not have an Thermal Zone attached.");
72 }
73 ✗ return value.get();
74 ✗ }
75
76 ✗ std::string AirflowNetworkZone_Impl::ventilationControlMode() const {
77 ✗ boost::optional<std::string> value = getString(OS_AirflowNetworkZoneFields::VentilationControlMode, true);
78 ✗ OS_ASSERT(value);
79 ✗ return value.get();
80 ✗ }
81
82 ✗ bool AirflowNetworkZone_Impl::isVentilationControlModeDefaulted() const {
83 ✗ return isEmpty(OS_AirflowNetworkZoneFields::VentilationControlMode);
84 }
85
86 ✗ boost::optional<Schedule> AirflowNetworkZone_Impl::ventilationControlZoneTemperatureSetpointSchedule() const {
87 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(
88 ✗ OS_AirflowNetworkZoneFields::VentilationControlZoneTemperatureSetpointScheduleName);
89 }
90
91 ✗ double AirflowNetworkZone_Impl::minimumVentingOpenFactor() const {
92 ✗ boost::optional<double> value = getDouble(OS_AirflowNetworkZoneFields::MinimumVentingOpenFactor, true);
93 ✗ OS_ASSERT(value);
94 ✗ return value.get();
95 }
96
97 ✗ bool AirflowNetworkZone_Impl::isMinimumVentingOpenFactorDefaulted() const {
98 ✗ return isEmpty(OS_AirflowNetworkZoneFields::MinimumVentingOpenFactor);
99 }
100
101 ✗ double AirflowNetworkZone_Impl::indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor() const {
102 boost::optional<double> value =
103 ✗ getDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor, true);
104 ✗ OS_ASSERT(value);
105 ✗ return value.get();
106 }
107
108 ✗ bool AirflowNetworkZone_Impl::isIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted() const {
109 ✗ return isEmpty(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor);
110 }
111
112 ✗ double AirflowNetworkZone_Impl::indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor() const {
113 boost::optional<double> value =
114 ✗ getDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor, true);
115 ✗ OS_ASSERT(value);
116 ✗ return value.get();
117 }
118
119 ✗ bool AirflowNetworkZone_Impl::isIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted() const {
120 ✗ return isEmpty(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor);
121 }
122
123 ✗ double AirflowNetworkZone_Impl::indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor() const {
124 boost::optional<double> value =
125 ✗ getDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor, true);
126 ✗ OS_ASSERT(value);
127 ✗ return value.get();
128 }
129
130 ✗ bool AirflowNetworkZone_Impl::isIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted() const {
131 ✗ return isEmpty(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor);
132 }
133
134 ✗ double AirflowNetworkZone_Impl::indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor() const {
135 boost::optional<double> value =
136 ✗ getDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor, true);
137 ✗ OS_ASSERT(value);
138 ✗ return value.get();
139 }
140
141 ✗ bool AirflowNetworkZone_Impl::isIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted() const {
142 ✗ return isEmpty(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor);
143 }
144
145 ✗ boost::optional<Schedule> AirflowNetworkZone_Impl::ventingAvailabilitySchedule() const {
146 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_AirflowNetworkZoneFields::VentingAvailabilityScheduleName);
147 }
148
149 ✗ std::string AirflowNetworkZone_Impl::singleSidedWindPressureCoefficientAlgorithm() const {
150 ✗ boost::optional<std::string> value = getString(OS_AirflowNetworkZoneFields::SingleSidedWindPressureCoefficientAlgorithm, true);
151 ✗ OS_ASSERT(value);
152 ✗ return value.get();
153 ✗ }
154
155 ✗ bool AirflowNetworkZone_Impl::isSingleSidedWindPressureCoefficientAlgorithmDefaulted() const {
156 ✗ return isEmpty(OS_AirflowNetworkZoneFields::SingleSidedWindPressureCoefficientAlgorithm);
157 }
158
159 1 double AirflowNetworkZone_Impl::facadeWidth() const {
160
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_AirflowNetworkZoneFields::FacadeWidth, true);
161
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
162
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
163 }
164
165 ✗ bool AirflowNetworkZone_Impl::isFacadeWidthDefaulted() const {
166 ✗ return isEmpty(OS_AirflowNetworkZoneFields::FacadeWidth);
167 }
168
169 5 boost::optional<AirflowNetworkOccupantVentilationControl> AirflowNetworkZone_Impl::occupantVentilationControl() const {
170
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<AirflowNetworkOccupantVentilationControl>(
171
1/1
✓ Branch 1 taken 5 times.
10 OS_AirflowNetworkZoneFields::OccupantVentilationControlName);
172 }
173
174 1 bool AirflowNetworkZone_Impl::setThermalZone(const ThermalZone& thermalZone) {
175
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 bool result = setPointer(OS_AirflowNetworkZoneFields::ThermalZoneName, thermalZone.handle());
176 1 return result;
177 }
178
179 ✗ void AirflowNetworkZone_Impl::resetThermalZone() {
180 ✗ bool result = setString(OS_AirflowNetworkZoneFields::ThermalZoneName, "");
181 ✗ OS_ASSERT(result);
182 ✗ }
183
184 ✗ bool AirflowNetworkZone_Impl::setVentilationControlMode(const std::string& ventilationControlMode) {
185 ✗ bool result = setString(OS_AirflowNetworkZoneFields::VentilationControlMode, ventilationControlMode);
186 ✗ return result;
187 }
188
189 ✗ void AirflowNetworkZone_Impl::resetVentilationControlMode() {
190 ✗ bool result = setString(OS_AirflowNetworkZoneFields::VentilationControlMode, "");
191 ✗ OS_ASSERT(result);
192 ✗ }
193
194 ✗ bool AirflowNetworkZone_Impl::setVentilationControlZoneTemperatureSetpointSchedule(Schedule& schedule) {
195 ✗ bool result = setSchedule(OS_AirflowNetworkZoneFields::VentilationControlZoneTemperatureSetpointScheduleName, "AirflowNetworkZone",
196 "Ventilation Control Zone Temperature Setpoint", schedule);
197 ✗ return result;
198 }
199
200 ✗ void AirflowNetworkZone_Impl::resetVentilationControlZoneTemperatureSetpointSchedule() {
201 ✗ bool result = setString(OS_AirflowNetworkZoneFields::VentilationControlZoneTemperatureSetpointScheduleName, "");
202 ✗ OS_ASSERT(result);
203 ✗ }
204
205 ✗ bool AirflowNetworkZone_Impl::setMinimumVentingOpenFactor(double minimumVentingOpenFactor) {
206 ✗ bool result = setDouble(OS_AirflowNetworkZoneFields::MinimumVentingOpenFactor, minimumVentingOpenFactor);
207 ✗ return result;
208 }
209
210 ✗ void AirflowNetworkZone_Impl::resetMinimumVentingOpenFactor() {
211 ✗ bool result = setString(OS_AirflowNetworkZoneFields::MinimumVentingOpenFactor, "");
212 ✗ OS_ASSERT(result);
213 ✗ }
214
215 ✗ bool AirflowNetworkZone_Impl::setIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor(
216 double indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor) {
217 ✗ bool result = setDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor,
218 indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor);
219 ✗ return result;
220 }
221
222 ✗ void AirflowNetworkZone_Impl::resetIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor() {
223 ✗ bool result = setString(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor, "");
224 ✗ OS_ASSERT(result);
225 ✗ }
226
227 ✗ bool AirflowNetworkZone_Impl::setIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor(
228 double indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor) {
229 ✗ bool result = setDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor,
230 indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor);
231 ✗ return result;
232 }
233
234 ✗ void AirflowNetworkZone_Impl::resetIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor() {
235 ✗ bool result = setString(OS_AirflowNetworkZoneFields::IndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor, "");
236 ✗ OS_ASSERT(result);
237 ✗ }
238
239 ✗ bool AirflowNetworkZone_Impl::setIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor(
240 double indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor) {
241 ✗ bool result = setDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor,
242 indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor);
243 ✗ return result;
244 }
245
246 ✗ void AirflowNetworkZone_Impl::resetIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor() {
247 ✗ bool result = setString(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor, "");
248 ✗ OS_ASSERT(result);
249 ✗ }
250
251 ✗ bool AirflowNetworkZone_Impl::setIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor(
252 double indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor) {
253 ✗ bool result = setDouble(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor,
254 indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor);
255 ✗ return result;
256 }
257
258 ✗ void AirflowNetworkZone_Impl::resetIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor() {
259 ✗ bool result = setString(OS_AirflowNetworkZoneFields::IndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor, "");
260 ✗ OS_ASSERT(result);
261 ✗ }
262
263 ✗ bool AirflowNetworkZone_Impl::setVentingAvailabilitySchedule(Schedule& schedule) {
264 ✗ bool result = setSchedule(OS_AirflowNetworkZoneFields::VentingAvailabilityScheduleName, "AirflowNetworkZone", "Venting Availability", schedule);
265 ✗ return result;
266 }
267
268 ✗ void AirflowNetworkZone_Impl::resetVentingAvailabilitySchedule() {
269 ✗ bool result = setString(OS_AirflowNetworkZoneFields::VentingAvailabilityScheduleName, "");
270 ✗ OS_ASSERT(result);
271 ✗ }
272
273 ✗ bool AirflowNetworkZone_Impl::setSingleSidedWindPressureCoefficientAlgorithm(const std::string& singleSidedWindPressureCoefficientAlgorithm) {
274 ✗ bool result = setString(OS_AirflowNetworkZoneFields::SingleSidedWindPressureCoefficientAlgorithm, singleSidedWindPressureCoefficientAlgorithm);
275 ✗ return result;
276 }
277
278 ✗ void AirflowNetworkZone_Impl::resetSingleSidedWindPressureCoefficientAlgorithm() {
279 ✗ bool result = setString(OS_AirflowNetworkZoneFields::SingleSidedWindPressureCoefficientAlgorithm, "");
280 ✗ OS_ASSERT(result);
281 ✗ }
282
283 1 bool AirflowNetworkZone_Impl::setFacadeWidth(double facadeWidth) {
284 1 bool result = setDouble(OS_AirflowNetworkZoneFields::FacadeWidth, facadeWidth);
285 1 return result;
286 }
287
288 ✗ void AirflowNetworkZone_Impl::resetFacadeWidth() {
289 ✗ bool result = setString(OS_AirflowNetworkZoneFields::FacadeWidth, "");
290 ✗ OS_ASSERT(result);
291 ✗ }
292
293 1 bool AirflowNetworkZone_Impl::setOccupantVentilationControl(
294 const AirflowNetworkOccupantVentilationControl& airflowNetworkOccupantVentilationControl) {
295
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 bool result = setPointer(OS_AirflowNetworkZoneFields::OccupantVentilationControlName, airflowNetworkOccupantVentilationControl.handle());
296 1 return result;
297 }
298
299 ✗ void AirflowNetworkZone_Impl::resetOccupantVentilationControl() {
300 ✗ bool result = setString(OS_AirflowNetworkZoneFields::OccupantVentilationControlName, "");
301 ✗ OS_ASSERT(result);
302 ✗ }
303
304 ✗ boost::optional<ThermalZone> AirflowNetworkZone_Impl::optionalThermalZone() const {
305 ✗ return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_AirflowNetworkZoneFields::ThermalZoneName);
306 }
307
308 } // namespace detail
309
310 2 AirflowNetworkZone::AirflowNetworkZone(const Model& model, const Handle& handle) : AirflowNetworkNode(AirflowNetworkZone::iddObjectType(), model) {
311
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 5 not taken.
2 OS_ASSERT(getImpl<detail::AirflowNetworkZone_Impl>());
312
1/1
✓ Branch 3 taken 2 times.
2 bool ok = getImpl<detail::AirflowNetworkZone_Impl>()->setPointer(OS_AirflowNetworkZoneFields::ThermalZoneName, handle);
313
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
314 2 }
315
316 9235 IddObjectType AirflowNetworkZone::iddObjectType() {
317
1/1
✓ Branch 1 taken 9235 times.
9235 return {IddObjectType::OS_AirflowNetworkZone};
318 }
319
320 ✗ std::vector<std::string> AirflowNetworkZone::ventilationControlModeValues() {
321 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_AirflowNetworkZoneFields::VentilationControlMode);
322 }
323
324 ✗ std::vector<std::string> AirflowNetworkZone::singleSidedWindPressureCoefficientAlgorithmValues() {
325 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
326 ✗ OS_AirflowNetworkZoneFields::SingleSidedWindPressureCoefficientAlgorithm);
327 }
328
329 ✗ ThermalZone AirflowNetworkZone::thermalZone() const {
330 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->thermalZone();
331 }
332
333 ✗ std::string AirflowNetworkZone::ventilationControlMode() const {
334 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->ventilationControlMode();
335 }
336
337 ✗ bool AirflowNetworkZone::isVentilationControlModeDefaulted() const {
338 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isVentilationControlModeDefaulted();
339 }
340
341 ✗ boost::optional<Schedule> AirflowNetworkZone::ventilationControlZoneTemperatureSetpointSchedule() const {
342 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->ventilationControlZoneTemperatureSetpointSchedule();
343 }
344
345 ✗ double AirflowNetworkZone::minimumVentingOpenFactor() const {
346 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->minimumVentingOpenFactor();
347 }
348
349 ✗ bool AirflowNetworkZone::isMinimumVentingOpenFactorDefaulted() const {
350 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isMinimumVentingOpenFactorDefaulted();
351 }
352
353 ✗ double AirflowNetworkZone::indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor() const {
354 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor();
355 }
356
357 ✗ bool AirflowNetworkZone::isIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted() const {
358 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted();
359 }
360
361 ✗ double AirflowNetworkZone::indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor() const {
362 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor();
363 }
364
365 ✗ bool AirflowNetworkZone::isIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted() const {
366 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted();
367 }
368
369 ✗ double AirflowNetworkZone::indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor() const {
370 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor();
371 }
372
373 ✗ bool AirflowNetworkZone::isIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted() const {
374 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactorDefaulted();
375 }
376
377 ✗ double AirflowNetworkZone::indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor() const {
378 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor();
379 }
380
381 ✗ bool AirflowNetworkZone::isIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted() const {
382 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactorDefaulted();
383 }
384
385 ✗ boost::optional<Schedule> AirflowNetworkZone::ventingAvailabilitySchedule() const {
386 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->ventingAvailabilitySchedule();
387 }
388
389 ✗ std::string AirflowNetworkZone::singleSidedWindPressureCoefficientAlgorithm() const {
390 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->singleSidedWindPressureCoefficientAlgorithm();
391 }
392
393 ✗ bool AirflowNetworkZone::isSingleSidedWindPressureCoefficientAlgorithmDefaulted() const {
394 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isSingleSidedWindPressureCoefficientAlgorithmDefaulted();
395 }
396
397 1 double AirflowNetworkZone::facadeWidth() const {
398
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirflowNetworkZone_Impl>()->facadeWidth();
399 }
400
401 ✗ bool AirflowNetworkZone::isFacadeWidthDefaulted() const {
402 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->isFacadeWidthDefaulted();
403 }
404
405 5 boost::optional<AirflowNetworkOccupantVentilationControl> AirflowNetworkZone::occupantVentilationControl() const {
406
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirflowNetworkZone_Impl>()->occupantVentilationControl();
407 }
408
409 1 bool AirflowNetworkZone::setThermalZone(const ThermalZone& thermalZone) {
410
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirflowNetworkZone_Impl>()->setThermalZone(thermalZone);
411 }
412
413 ✗ void AirflowNetworkZone::resetThermalZone() {
414 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetThermalZone();
415 ✗ }
416
417 ✗ bool AirflowNetworkZone::setVentilationControlMode(const std::string& ventilationControlMode) {
418 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setVentilationControlMode(ventilationControlMode);
419 }
420
421 ✗ void AirflowNetworkZone::resetVentilationControlMode() {
422 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetVentilationControlMode();
423 ✗ }
424
425 ✗ bool AirflowNetworkZone::setVentilationControlZoneTemperatureSetpointSchedule(Schedule& schedule) {
426 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setVentilationControlZoneTemperatureSetpointSchedule(schedule);
427 }
428
429 ✗ void AirflowNetworkZone::resetVentilationControlZoneTemperatureSetpointSchedule() {
430 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetVentilationControlZoneTemperatureSetpointSchedule();
431 ✗ }
432
433 ✗ bool AirflowNetworkZone::setMinimumVentingOpenFactor(double minimumVentingOpenFactor) {
434 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setMinimumVentingOpenFactor(minimumVentingOpenFactor);
435 }
436
437 ✗ void AirflowNetworkZone::resetMinimumVentingOpenFactor() {
438 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetMinimumVentingOpenFactor();
439 ✗ }
440
441 ✗ bool AirflowNetworkZone::setIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor(
442 double indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor) {
443 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor(
444 ✗ indoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor);
445 }
446
447 ✗ void AirflowNetworkZone::resetIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor() {
448 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetIndoorandOutdoorTemperatureDifferenceLowerLimitForMaximumVentingOpenFactor();
449 ✗ }
450
451 ✗ bool AirflowNetworkZone::setIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor(
452 double indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor) {
453 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor(
454 ✗ indoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor);
455 }
456
457 ✗ void AirflowNetworkZone::resetIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor() {
458 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetIndoorandOutdoorTemperatureDifferenceUpperLimitforMinimumVentingOpenFactor();
459 ✗ }
460
461 ✗ bool AirflowNetworkZone::setIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor(
462 double indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor) {
463 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor(
464 ✗ indoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor);
465 }
466
467 ✗ void AirflowNetworkZone::resetIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor() {
468 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetIndoorandOutdoorEnthalpyDifferenceLowerLimitForMaximumVentingOpenFactor();
469 ✗ }
470
471 ✗ bool AirflowNetworkZone::setIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor(
472 double indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor) {
473 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor(
474 ✗ indoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor);
475 }
476
477 ✗ void AirflowNetworkZone::resetIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor() {
478 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetIndoorandOutdoorEnthalpyDifferenceUpperLimitforMinimumVentingOpenFactor();
479 ✗ }
480
481 ✗ bool AirflowNetworkZone::setVentingAvailabilitySchedule(Schedule& schedule) {
482 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setVentingAvailabilitySchedule(schedule);
483 }
484
485 ✗ void AirflowNetworkZone::resetVentingAvailabilitySchedule() {
486 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetVentingAvailabilitySchedule();
487 ✗ }
488
489 ✗ bool AirflowNetworkZone::setSingleSidedWindPressureCoefficientAlgorithm(const std::string& singleSidedWindPressureCoefficientAlgorithm) {
490 ✗ return getImpl<detail::AirflowNetworkZone_Impl>()->setSingleSidedWindPressureCoefficientAlgorithm(singleSidedWindPressureCoefficientAlgorithm);
491 }
492
493 ✗ void AirflowNetworkZone::resetSingleSidedWindPressureCoefficientAlgorithm() {
494 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetSingleSidedWindPressureCoefficientAlgorithm();
495 ✗ }
496
497 1 bool AirflowNetworkZone::setFacadeWidth(double facadeWidth) {
498
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirflowNetworkZone_Impl>()->setFacadeWidth(facadeWidth);
499 }
500
501 ✗ void AirflowNetworkZone::resetFacadeWidth() {
502 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetFacadeWidth();
503 ✗ }
504
505 1 bool AirflowNetworkZone::setOccupantVentilationControl(const AirflowNetworkOccupantVentilationControl& airflowNetworkOccupantVentilationControl) {
506
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirflowNetworkZone_Impl>()->setOccupantVentilationControl(airflowNetworkOccupantVentilationControl);
507 }
508
509 ✗ void AirflowNetworkZone::resetOccupantVentilationControl() {
510 ✗ getImpl<detail::AirflowNetworkZone_Impl>()->resetOccupantVentilationControl();
511 ✗ }
512
513 /// @cond
514
1/1
✓ Branch 2 taken 5 times.
5 AirflowNetworkZone::AirflowNetworkZone(std::shared_ptr<detail::AirflowNetworkZone_Impl> impl) : AirflowNetworkNode(impl) {}
515 /// @endcond
516
517 } // namespace model
518 } // namespace openstudio
519