GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 87.2% 680 / 0 / 780
Functions: 93.8% 228 / 0 / 243
Branches: 63.7% 508 / 0 / 798

src/model/DesignDay.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 "DesignDay.hpp"
7 #include "DesignDay_Impl.hpp"
8 #include "ScheduleDay.hpp"
9 #include "ScheduleDay_Impl.hpp"
10 #include "Site.hpp"
11 #include "Site_Impl.hpp"
12
13 #include "../utilities/core/Assert.hpp"
14
15 #include <utilities/idd/OS_SizingPeriod_DesignDay_FieldEnums.hxx>
16 #include <utilities/idd/IddEnums.hxx>
17 #include <utilities/idd/IddFactory.hxx>
18
19 #include "../utilities/core/DeprecatedHelpers.hpp"
20
21 namespace openstudio {
22
23 namespace model {
24
25 namespace detail {
26
27 538 DesignDay_Impl::DesignDay_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) : SizingPeriod_Impl(idfObject, model, keepHandle) {
28
4/6
✓ Branch 1 taken 538 times.
✓ Branch 4 taken 538 times.
✓ Branch 7 taken 538 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 538 times.
✗ Branch 13 not taken.
538 OS_ASSERT(idfObject.iddObject().type() == DesignDay::iddObjectType());
29 538 }
30
31 154 DesignDay_Impl::DesignDay_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
32 154 : SizingPeriod_Impl(other, model, keepHandle) {
33
4/6
✓ Branch 1 taken 154 times.
✓ Branch 4 taken 154 times.
✓ Branch 7 taken 154 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 154 times.
✗ Branch 13 not taken.
154 OS_ASSERT(other.iddObject().type() == DesignDay::iddObjectType());
34 154 }
35
36 484 DesignDay_Impl::DesignDay_Impl(const DesignDay_Impl& other, Model_Impl* model, bool keepHandle) : SizingPeriod_Impl(other, model, keepHandle) {}
37
38 // Get all output variable names that could be associated with this object.
39 2 const std::vector<std::string>& DesignDay_Impl::outputVariableNames() const {
40
3/4
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 static const std::vector<std::string> result;
41 2 return result;
42 }
43
44 2 IddObjectType DesignDay_Impl::iddObjectType() const {
45 2 return DesignDay::iddObjectType();
46 }
47
48 162 double DesignDay_Impl::maximumDryBulbTemperature() const {
49
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::MaximumDryBulbTemperature, true);
50
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
51
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
52 }
53
54 3 bool DesignDay_Impl::isMaximumDryBulbTemperatureDefaulted() const {
55 3 return isEmpty(OS_SizingPeriod_DesignDayFields::MaximumDryBulbTemperature);
56 }
57
58 162 double DesignDay_Impl::dailyDryBulbTemperatureRange() const {
59
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::DailyDryBulbTemperatureRange, true);
60
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
61
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
62 }
63
64 3 bool DesignDay_Impl::isDailyDryBulbTemperatureRangeDefaulted() const {
65 3 return isEmpty(OS_SizingPeriod_DesignDayFields::DailyDryBulbTemperatureRange);
66 }
67
68 162 double DesignDay_Impl::barometricPressure() const {
69
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::BarometricPressure, true);
70
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
71
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
72 }
73
74 3 bool DesignDay_Impl::isBarometricPressureDefaulted() const {
75 3 return isEmpty(OS_SizingPeriod_DesignDayFields::BarometricPressure);
76 }
77
78 162 double DesignDay_Impl::windSpeed() const {
79
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::WindSpeed, true);
80
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
81
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
82 }
83
84 3 bool DesignDay_Impl::isWindSpeedDefaulted() const {
85 3 return isEmpty(OS_SizingPeriod_DesignDayFields::WindSpeed);
86 }
87
88 162 double DesignDay_Impl::windDirection() const {
89
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::WindDirection, true);
90
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
91
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
92 }
93
94 3 bool DesignDay_Impl::isWindDirectionDefaulted() const {
95 3 return isEmpty(OS_SizingPeriod_DesignDayFields::WindDirection);
96 }
97
98 120 double DesignDay_Impl::skyClearness() const {
99
1/1
✓ Branch 1 taken 120 times.
120 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::SkyClearness, true);
100
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 120 times.
✗ Branch 4 not taken.
120 OS_ASSERT(value);
101
1/1
✓ Branch 1 taken 120 times.
240 return value.get();
102 }
103
104 3 bool DesignDay_Impl::isSkyClearnessDefaulted() const {
105 3 return isEmpty(OS_SizingPeriod_DesignDayFields::SkyClearness);
106 }
107
108 162 bool DesignDay_Impl::rainIndicator() const {
109 162 bool result(false);
110
3/3
✓ Branch 1 taken 162 times.
✓ Branch 4 taken 162 times.
✓ Branch 7 taken 162 times.
162 std::string i = getString(OS_SizingPeriod_DesignDayFields::RainIndicator, true).get();
111
3/3
✓ Branch 1 taken 162 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 160 times.
162 if (i == "Yes") {
112 2 result = true;
113 }
114 162 return result;
115 162 }
116
117 3 bool DesignDay_Impl::isRainIndicatorDefaulted() const {
118 3 return isEmpty(OS_SizingPeriod_DesignDayFields::RainIndicator);
119 }
120
121 164 bool DesignDay_Impl::snowIndicator() const {
122 164 bool result(false);
123
3/3
✓ Branch 1 taken 164 times.
✓ Branch 4 taken 164 times.
✓ Branch 7 taken 164 times.
164 std::string i = getString(OS_SizingPeriod_DesignDayFields::SnowIndicator, true).get();
124
3/3
✓ Branch 1 taken 164 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 160 times.
164 if (i == "Yes") {
125 4 result = true;
126 }
127 164 return result;
128 164 }
129
130 3 bool DesignDay_Impl::isSnowIndicatorDefaulted() const {
131 3 return isEmpty(OS_SizingPeriod_DesignDayFields::SnowIndicator);
132 }
133
134 162 int DesignDay_Impl::dayOfMonth() const {
135
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<int> value = getInt(OS_SizingPeriod_DesignDayFields::DayofMonth, true);
136
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
137
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
138 }
139
140 3 bool DesignDay_Impl::isDayOfMonthDefaulted() const {
141 3 return isEmpty(OS_SizingPeriod_DesignDayFields::DayofMonth);
142 }
143
144 162 int DesignDay_Impl::month() const {
145
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<int> value = getInt(OS_SizingPeriod_DesignDayFields::Month, true);
146
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
147
1/1
✓ Branch 1 taken 162 times.
324 return value.get();
148 }
149
150 3 bool DesignDay_Impl::isMonthDefaulted() const {
151 3 return isEmpty(OS_SizingPeriod_DesignDayFields::Month);
152 }
153
154 162 std::string DesignDay_Impl::dayType() const {
155
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::DayType, true);
156
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
157
2/2
✓ Branch 1 taken 162 times.
✓ Branch 4 taken 162 times.
324 return value.get();
158 162 }
159
160 3 bool DesignDay_Impl::isDayTypeDefaulted() const {
161 3 return isEmpty(OS_SizingPeriod_DesignDayFields::DayType);
162 }
163
164 162 bool DesignDay_Impl::daylightSavingTimeIndicator() const {
165 162 bool result(false);
166
3/3
✓ Branch 1 taken 162 times.
✓ Branch 4 taken 162 times.
✓ Branch 7 taken 162 times.
162 std::string i = getString(OS_SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, true).get();
167
3/3
✓ Branch 1 taken 162 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 160 times.
162 if (i == "Yes") {
168 2 result = true;
169 }
170 162 return result;
171 162 }
172
173 3 bool DesignDay_Impl::isDaylightSavingTimeIndicatorDefaulted() const {
174 3 return isEmpty(OS_SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator);
175 }
176
177 190 std::string DesignDay_Impl::humidityConditionType() const {
178
1/1
✓ Branch 1 taken 190 times.
190 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::HumidityConditionType, true);
179
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 190 times.
✗ Branch 4 not taken.
190 OS_ASSERT(value);
180
2/2
✓ Branch 1 taken 190 times.
✓ Branch 4 taken 190 times.
380 return value.get();
181 190 }
182
183 6 bool DesignDay_Impl::isHumidityConditionTypeDefaulted() const {
184 6 return isEmpty(OS_SizingPeriod_DesignDayFields::HumidityConditionType);
185 }
186
187 8 boost::optional<ScheduleDay> DesignDay_Impl::humidityConditionDaySchedule() const {
188
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 return this->getObject<ModelObject>().getModelObjectTarget<ScheduleDay>(OS_SizingPeriod_DesignDayFields::HumidityConditionDayScheduleName);
189 }
190
191 157 boost::optional<double> DesignDay_Impl::wetBulbOrDewPointAtMaximumDryBulb() const {
192 157 return getDouble(OS_SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb, true);
193 }
194
195 5 boost::optional<double> DesignDay_Impl::humidityRatioAtMaximumDryBulb() const {
196 5 return getDouble(OS_SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb, true);
197 }
198
199 15 boost::optional<double> DesignDay_Impl::enthalpyAtMaximumDryBulb() const {
200 15 return getDouble(OS_SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb, true);
201 }
202
203 185 std::string DesignDay_Impl::dryBulbTemperatureRangeModifierType() const {
204
1/1
✓ Branch 1 taken 185 times.
185 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType, true);
205
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 185 times.
✗ Branch 4 not taken.
185 OS_ASSERT(value);
206
2/2
✓ Branch 1 taken 185 times.
✓ Branch 4 taken 185 times.
370 return value.get();
207 185 }
208
209 3 bool DesignDay_Impl::isDryBulbTemperatureRangeModifierTypeDefaulted() const {
210 3 return isEmpty(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType);
211 }
212
213 8 boost::optional<ScheduleDay> DesignDay_Impl::dryBulbTemperatureRangeModifierDaySchedule() const {
214
1/1
✓ Branch 1 taken 8 times.
16 return this->getObject<ModelObject>().getModelObjectTarget<ScheduleDay>(
215
1/1
✓ Branch 1 taken 8 times.
16 OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierDayScheduleName);
216 }
217
218 186 std::string DesignDay_Impl::solarModelIndicator() const {
219
1/1
✓ Branch 1 taken 186 times.
186 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::SolarModelIndicator, true);
220
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 186 times.
✗ Branch 4 not taken.
186 OS_ASSERT(value);
221
2/2
✓ Branch 1 taken 186 times.
✓ Branch 4 taken 186 times.
372 return value.get();
222 186 }
223
224 3 bool DesignDay_Impl::isSolarModelIndicatorDefaulted() const {
225 3 return isEmpty(OS_SizingPeriod_DesignDayFields::SolarModelIndicator);
226 }
227
228 5 boost::optional<ScheduleDay> DesignDay_Impl::beamSolarDaySchedule() const {
229
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 return this->getObject<ModelObject>().getModelObjectTarget<ScheduleDay>(OS_SizingPeriod_DesignDayFields::BeamSolarDayScheduleName);
230 }
231
232 5 boost::optional<ScheduleDay> DesignDay_Impl::diffuseSolarDaySchedule() const {
233
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 return this->getObject<ModelObject>().getModelObjectTarget<ScheduleDay>(OS_SizingPeriod_DesignDayFields::DiffuseSolarDayScheduleName);
234 }
235
236 48 double DesignDay_Impl::ashraeClearSkyOpticalDepthForBeamIrradiance() const {
237
1/1
✓ Branch 1 taken 48 times.
48 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforBeamIrradiance, true);
238
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 48 times.
✗ Branch 4 not taken.
48 OS_ASSERT(value);
239
1/1
✓ Branch 1 taken 48 times.
96 return value.get();
240 }
241
242 6 bool DesignDay_Impl::isAshraeClearSkyOpticalDepthForBeamIrradianceDefaulted() const {
243 6 return isEmpty(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforBeamIrradiance);
244 }
245
246 48 double DesignDay_Impl::ashraeClearSkyOpticalDepthForDiffuseIrradiance() const {
247
1/1
✓ Branch 1 taken 48 times.
48 boost::optional<double> value = getDouble(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforDiffuseIrradiance, true);
248
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 48 times.
✗ Branch 4 not taken.
48 OS_ASSERT(value);
249
1/1
✓ Branch 1 taken 48 times.
96 return value.get();
250 }
251
252 6 bool DesignDay_Impl::isAshraeClearSkyOpticalDepthForDiffuseIrradianceDefaulted() const {
253 6 return isEmpty(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforDiffuseIrradiance);
254 }
255
256 5 boost::optional<double> DesignDay_Impl::dailyWetBulbTemperatureRange() const {
257 5 return getDouble(OS_SizingPeriod_DesignDayFields::DailyWetBulbTemperatureRange, true);
258 }
259
260 163 boost::optional<int> DesignDay_Impl::maximumNumberWarmupDays() const {
261 163 return getInt(OS_SizingPeriod_DesignDayFields::MaximumNumberWarmupDays, true);
262 }
263
264 162 std::string DesignDay_Impl::beginEnvironmentResetMode() const {
265
1/1
✓ Branch 1 taken 162 times.
162 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::BeginEnvironmentResetMode, true);
266
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 162 times.
✗ Branch 4 not taken.
162 OS_ASSERT(value);
267
2/2
✓ Branch 1 taken 162 times.
✓ Branch 4 taken 162 times.
324 return value.get();
268 162 }
269
270 3 bool DesignDay_Impl::isBeginEnvironmentResetModeDefaulted() const {
271 3 return isEmpty(OS_SizingPeriod_DesignDayFields::BeginEnvironmentResetMode);
272 }
273
274 361 bool DesignDay_Impl::setMaximumDryBulbTemperature(double maximumDryBulbTemperature) {
275 361 bool result = setDouble(OS_SizingPeriod_DesignDayFields::MaximumDryBulbTemperature, maximumDryBulbTemperature);
276 361 return result;
277 }
278
279 1 void DesignDay_Impl::resetMaximumDryBulbTemperature() {
280
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::MaximumDryBulbTemperature, "");
281
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
282 1 }
283
284 360 bool DesignDay_Impl::setDailyDryBulbTemperatureRange(double dailyDryBulbTemperatureRange) {
285 360 bool result = setDouble(OS_SizingPeriod_DesignDayFields::DailyDryBulbTemperatureRange, dailyDryBulbTemperatureRange);
286 360 return result;
287 }
288
289 1 void DesignDay_Impl::resetDailyDryBulbTemperatureRange() {
290
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DailyDryBulbTemperatureRange, "");
291
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
292 1 }
293
294 360 bool DesignDay_Impl::setBarometricPressure(double barometricPressure) {
295 360 bool result = setDouble(OS_SizingPeriod_DesignDayFields::BarometricPressure, barometricPressure);
296 360 return result;
297 }
298
299 1 void DesignDay_Impl::resetBarometricPressure() {
300
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::BarometricPressure, "");
301
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
302 1 }
303
304 360 bool DesignDay_Impl::setWindSpeed(double windSpeed) {
305 360 bool result = setDouble(OS_SizingPeriod_DesignDayFields::WindSpeed, windSpeed);
306 360 return result;
307 }
308
309 1 void DesignDay_Impl::resetWindSpeed() {
310
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::WindSpeed, "");
311
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
312 1 }
313
314 360 bool DesignDay_Impl::setWindDirection(double windDirection) {
315 360 bool result = setDouble(OS_SizingPeriod_DesignDayFields::WindDirection, windDirection);
316 360 return result;
317 }
318
319 1 void DesignDay_Impl::resetWindDirection() {
320
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::WindDirection, "");
321
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
322 1 }
323
324 353 bool DesignDay_Impl::setSkyClearness(double skyClearness) {
325 353 bool result = setDouble(OS_SizingPeriod_DesignDayFields::SkyClearness, skyClearness);
326 353 return result;
327 }
328
329 1 void DesignDay_Impl::resetSkyClearness() {
330
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::SkyClearness, "");
331
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
332 1 }
333
334 360 bool DesignDay_Impl::setRainIndicator(bool rainIndicator) {
335
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 358 times.
360 if (rainIndicator) {
336
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
6 return this->setString(OS_SizingPeriod_DesignDayFields::RainIndicator, "Yes");
337 } else {
338
2/2
✓ Branch 1 taken 358 times.
✓ Branch 4 taken 358 times.
1074 return this->setString(OS_SizingPeriod_DesignDayFields::RainIndicator, "No");
339 }
340 return false;
341 }
342
343 1 void DesignDay_Impl::resetRainIndicator() {
344
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::RainIndicator, "");
345
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
346 1 }
347
348 361 bool DesignDay_Impl::setSnowIndicator(bool snowIndicator) {
349
2/2
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 358 times.
361 if (snowIndicator) {
350
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
9 return this->setString(OS_SizingPeriod_DesignDayFields::SnowIndicator, "Yes");
351 } else {
352
2/2
✓ Branch 1 taken 358 times.
✓ Branch 4 taken 358 times.
1074 return this->setString(OS_SizingPeriod_DesignDayFields::SnowIndicator, "No");
353 }
354 return false;
355 }
356
357 1 void DesignDay_Impl::resetSnowIndicator() {
358
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::SnowIndicator, "");
359
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
360 1 }
361
362 360 bool DesignDay_Impl::setDayOfMonth(int dayOfMonth) {
363 360 bool result = setInt(OS_SizingPeriod_DesignDayFields::DayofMonth, dayOfMonth);
364 360 return result;
365 }
366
367 1 void DesignDay_Impl::resetDayOfMonth() {
368
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DayofMonth, "");
369
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
370 1 }
371
372 360 bool DesignDay_Impl::setMonth(int month) {
373 360 bool result = setInt(OS_SizingPeriod_DesignDayFields::Month, month);
374 360 return result;
375 }
376
377 1 void DesignDay_Impl::resetMonth() {
378
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::Month, "");
379
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
380 1 }
381
382 362 bool DesignDay_Impl::setDayType(const std::string& dayType) {
383 362 bool result = setString(OS_SizingPeriod_DesignDayFields::DayType, dayType);
384 362 return result;
385 }
386
387 1 void DesignDay_Impl::resetDayType() {
388
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DayType, "");
389
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
390 1 }
391
392 360 bool DesignDay_Impl::setDaylightSavingTimeIndicator(bool daylightSavingTimeIndicator) {
393
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 358 times.
360 if (daylightSavingTimeIndicator) {
394
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
6 return this->setString(OS_SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, "Yes");
395 } else {
396
2/2
✓ Branch 1 taken 358 times.
✓ Branch 4 taken 358 times.
1074 return this->setString(OS_SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, "No");
397 }
398 return false;
399 }
400
401 1 void DesignDay_Impl::resetDaylightSavingTimeIndicator() {
402
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DaylightSavingTimeIndicator, "");
403
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
404 1 }
405
406 363 bool DesignDay_Impl::setHumidityConditionType(const std::string& humidityConditionType) {
407 363 bool result = setString(OS_SizingPeriod_DesignDayFields::HumidityConditionType, humidityConditionType);
408 363 return result;
409 }
410
411 2 void DesignDay_Impl::resetHumidityConditionType() {
412
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::HumidityConditionType, "");
413
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
414 2 }
415
416 3 bool DesignDay_Impl::setHumidityConditionDaySchedule(const ScheduleDay& schedule) {
417
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 return this->getObject<ModelObject>().setPointer(OS_SizingPeriod_DesignDayFields::HumidityConditionDayScheduleName, schedule.handle());
418 }
419
420 2 void DesignDay_Impl::resetHumidityConditionDaySchedule() {
421
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 this->setString(OS_SizingPeriod_DesignDayFields::HumidityConditionDayScheduleName, "");
422 2 }
423
424 743 bool DesignDay_Impl::setWetBulbOrDewPointAtMaximumDryBulb(boost::optional<double> wetBulbOrDewPointAtMaximumDryBulb) {
425 743 bool result = false;
426
1/2
✓ Branch 0 taken 743 times.
✗ Branch 1 not taken.
743 if (wetBulbOrDewPointAtMaximumDryBulb) {
427 743 result = setDouble(OS_SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb, wetBulbOrDewPointAtMaximumDryBulb.get());
428 } else {
429 ✗ result = setString(OS_SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb, "");
430 }
431
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 743 times.
743 OS_ASSERT(result);
432 743 return result;
433 }
434
435 2 void DesignDay_Impl::resetWetBulbOrDewPointAtMaximumDryBulb() {
436
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb, "");
437
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
438 2 }
439
440 2 bool DesignDay_Impl::setHumidityRatioAtMaximumDryBulb(boost::optional<double> humidityRatioAtMaximumDryBulb) {
441 2 bool result = false;
442
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (humidityRatioAtMaximumDryBulb) {
443 2 result = setDouble(OS_SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb, humidityRatioAtMaximumDryBulb.get());
444 } else {
445 ✗ result = setString(OS_SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb, "");
446 }
447
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
448 2 return result;
449 }
450
451 2 void DesignDay_Impl::resetHumidityRatioAtMaximumDryBulb() {
452
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb, "");
453
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
454 2 }
455
456 2 bool DesignDay_Impl::setEnthalpyAtMaximumDryBulb(boost::optional<double> enthalpyAtMaximumDryBulb) {
457 2 bool result = false;
458
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (enthalpyAtMaximumDryBulb) {
459 2 result = setDouble(OS_SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb, enthalpyAtMaximumDryBulb.get());
460 } else {
461 ✗ result = setString(OS_SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb, "");
462 }
463
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
464 2 return result;
465 }
466
467 2 void DesignDay_Impl::resetEnthalpyAtMaximumDryBulb() {
468
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb, "");
469
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
470 2 }
471
472 26 bool DesignDay_Impl::setDryBulbTemperatureRangeModifierType(const std::string& dryBulbTemperatureRangeModifierType) {
473 26 bool result = setString(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType, dryBulbTemperatureRangeModifierType);
474 26 return result;
475 }
476
477 1 void DesignDay_Impl::resetDryBulbTemperatureRangeModifierType() {
478
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType, "");
479
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
480 1 }
481
482 3 bool DesignDay_Impl::setDryBulbTemperatureRangeModifierDaySchedule(const ScheduleDay& schedule) {
483
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
9 return this->getObject<ModelObject>().setPointer(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierDayScheduleName,
484
1/1
✓ Branch 1 taken 3 times.
9 schedule.handle());
485 }
486
487 2 void DesignDay_Impl::resetDryBulbTemperatureRangeModifierDaySchedule() {
488
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 this->setString(OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierDayScheduleName, "");
489 2 }
490
491 24 bool DesignDay_Impl::setSolarModelIndicator(const std::string& solarModelIndicator) {
492 24 bool result = setString(OS_SizingPeriod_DesignDayFields::SolarModelIndicator, solarModelIndicator);
493 24 return result;
494 }
495
496 1 void DesignDay_Impl::resetSolarModelIndicator() {
497
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::SolarModelIndicator, "");
498
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
499 1 }
500
501 2 bool DesignDay_Impl::setBeamSolarDaySchedule(const ScheduleDay& schedule) {
502
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return this->setPointer(OS_SizingPeriod_DesignDayFields::BeamSolarDayScheduleName, schedule.handle());
503 }
504
505 1 void DesignDay_Impl::resetBeamSolarDaySchedule() {
506
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 this->setString(OS_SizingPeriod_DesignDayFields::BeamSolarDayScheduleName, "");
507 1 }
508
509 2 bool DesignDay_Impl::setDiffuseSolarDaySchedule(const ScheduleDay& schedule) {
510
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return this->setPointer(OS_SizingPeriod_DesignDayFields::DiffuseSolarDayScheduleName, schedule.handle());
511 }
512
513 1 void DesignDay_Impl::resetDiffuseSolarDaySchedule() {
514
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 this->setString(OS_SizingPeriod_DesignDayFields::DiffuseSolarDayScheduleName, "");
515 1 }
516
517 ✗ boost::optional<ModelObject> DesignDay_Impl::humidityConditionDayScheduleAsModelObject() const {
518 ✗ OptionalModelObject result;
519 ✗ OptionalScheduleDay schedule = humidityConditionDaySchedule();
520 ✗ if (schedule) {
521 ✗ result = *schedule;
522 }
523 ✗ return result;
524 ✗ }
525
526 ✗ boost::optional<ModelObject> DesignDay_Impl::dryBulbTemperatureRangeModifierDayScheduleAsModelObject() const {
527 ✗ OptionalModelObject result;
528 ✗ OptionalScheduleDay schedule = dryBulbTemperatureRangeModifierDaySchedule();
529 ✗ if (schedule) {
530 ✗ result = *schedule;
531 }
532 ✗ return result;
533 ✗ }
534
535 ✗ boost::optional<ModelObject> DesignDay_Impl::beamSolarDayScheduleAsModelObject() const {
536 ✗ OptionalModelObject result;
537 ✗ OptionalScheduleDay schedule = beamSolarDaySchedule();
538 ✗ if (schedule) {
539 ✗ result = *schedule;
540 }
541 ✗ return result;
542 ✗ }
543
544 ✗ boost::optional<ModelObject> DesignDay_Impl::diffuseSolarDayScheduleAsModelObject() const {
545 ✗ OptionalModelObject result;
546 ✗ OptionalScheduleDay schedule = diffuseSolarDaySchedule();
547 ✗ if (schedule) {
548 ✗ result = *schedule;
549 }
550 ✗ return result;
551 ✗ }
552
553 ✗ bool DesignDay_Impl::setHumidityConditionDayScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
554 ✗ if (modelObject) {
555 ✗ OptionalScheduleDay schedule = modelObject->optionalCast<ScheduleDay>();
556 ✗ if (schedule) {
557 ✗ return setHumidityConditionDaySchedule(*schedule);
558 }
559 ✗ return false;
560 ✗ } else {
561 ✗ resetHumidityConditionDaySchedule();
562 }
563 ✗ return true;
564 }
565
566 ✗ bool DesignDay_Impl::setDryBulbTemperatureRangeModifierDayScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
567 ✗ if (modelObject) {
568 ✗ OptionalScheduleDay schedule = modelObject->optionalCast<ScheduleDay>();
569 ✗ if (schedule) {
570 ✗ return setDryBulbTemperatureRangeModifierDaySchedule(*schedule);
571 }
572 ✗ return false;
573 ✗ } else {
574 ✗ resetDryBulbTemperatureRangeModifierDaySchedule();
575 }
576 ✗ return true;
577 }
578
579 ✗ bool DesignDay_Impl::setBeamSolarDayScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
580 ✗ if (modelObject) {
581 ✗ OptionalScheduleDay schedule = modelObject->optionalCast<ScheduleDay>();
582 ✗ if (schedule) {
583 ✗ return setBeamSolarDaySchedule(*schedule);
584 }
585 ✗ return false;
586 ✗ } else {
587 ✗ resetBeamSolarDaySchedule();
588 }
589 ✗ return true;
590 }
591
592 ✗ bool DesignDay_Impl::setDiffuseSolarDayScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
593 ✗ if (modelObject) {
594 ✗ OptionalScheduleDay schedule = modelObject->optionalCast<ScheduleDay>();
595 ✗ if (schedule) {
596 ✗ return setDiffuseSolarDaySchedule(*schedule);
597 }
598 ✗ return false;
599 ✗ } else {
600 ✗ resetDiffuseSolarDaySchedule();
601 }
602 ✗ return true;
603 }
604
605 10 bool DesignDay_Impl::setAshraeClearSkyOpticalDepthForBeamIrradiance(double ashraeClearSkyOpticalDepthForBeamIrradiance) {
606 bool result =
607 10 setDouble(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforBeamIrradiance, ashraeClearSkyOpticalDepthForBeamIrradiance);
608 10 return result;
609 }
610
611 2 void DesignDay_Impl::resetAshraeClearSkyOpticalDepthForBeamIrradiance() {
612
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforBeamIrradiance, "");
613
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
614 2 }
615
616 10 bool DesignDay_Impl::setAshraeClearSkyOpticalDepthForDiffuseIrradiance(double ashraeClearSkyOpticalDepthForDiffuseIrradiance) {
617 bool result =
618 10 setDouble(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforDiffuseIrradiance, ashraeClearSkyOpticalDepthForDiffuseIrradiance);
619 10 return result;
620 }
621
622 2 void DesignDay_Impl::resetAshraeClearSkyOpticalDepthForDiffuseIrradiance() {
623
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_SizingPeriod_DesignDayFields::ASHRAEClearSkyOpticalDepthforDiffuseIrradiance, "");
624
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
625 2 }
626
627 2 bool DesignDay_Impl::setDailyWetBulbTemperatureRange(boost::optional<double> dailyWetBulbTemperatureRange) {
628 2 bool result = false;
629
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (dailyWetBulbTemperatureRange) {
630 2 result = setDouble(OS_SizingPeriod_DesignDayFields::DailyWetBulbTemperatureRange, dailyWetBulbTemperatureRange.get());
631 } else {
632 ✗ result = setString(OS_SizingPeriod_DesignDayFields::DailyWetBulbTemperatureRange, "");
633 }
634
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
635 2 return result;
636 }
637
638 1 void DesignDay_Impl::resetDailyWetBulbTemperatureRange() {
639
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::DailyWetBulbTemperatureRange, "");
640
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
641 1 }
642
643 ✗ void DesignDay_Impl::ensureNoLeapDays() {
644 ✗ boost::optional<int> month_ = getInt(OS_SizingPeriod_DesignDayFields::Month);
645 ✗ if (month_ && (*month_ == 2)) {
646 ✗ boost::optional<int> day_ = this->getInt(OS_SizingPeriod_DesignDayFields::DayofMonth);
647 ✗ if (day_ && (*day_ == 29)) {
648 ✗ this->setInt(OS_SizingPeriod_DesignDayFields::DayofMonth, 28);
649 }
650 }
651 ✗ }
652
653 2 bool DesignDay_Impl::setMaximumNumberWarmupDays(boost::optional<int> maximumNumberWarmupDays) {
654 2 bool result = false;
655
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (maximumNumberWarmupDays) {
656 2 result = setInt(OS_SizingPeriod_DesignDayFields::MaximumNumberWarmupDays, maximumNumberWarmupDays.get());
657 } else {
658 ✗ result = setString(OS_SizingPeriod_DesignDayFields::MaximumNumberWarmupDays, "");
659 }
660
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
661 2 return result;
662 }
663
664 1 void DesignDay_Impl::resetMaximumNumberWarmupDays() {
665
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::MaximumNumberWarmupDays, "");
666
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
667 1 }
668
669 14 bool DesignDay_Impl::setBeginEnvironmentResetMode(const std::string& beginEnvironmentResetMode) {
670 14 bool result = setString(OS_SizingPeriod_DesignDayFields::BeginEnvironmentResetMode, beginEnvironmentResetMode);
671 14 return result;
672 }
673
674 1 void DesignDay_Impl::resetBeginEnvironmentResetMode() {
675
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_SizingPeriod_DesignDayFields::BeginEnvironmentResetMode, "");
676
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
677 1 }
678
679 } // namespace detail
680
681 /// constructor
682 381 DesignDay::DesignDay(const Model& model) : SizingPeriod(DesignDay::iddObjectType(), model) {
683
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 381 times.
✗ Branch 5 not taken.
381 OS_ASSERT(getImpl<detail::DesignDay_Impl>());
684
685
1/1
✓ Branch 1 taken 381 times.
381 setWetBulbOrDewPointAtMaximumDryBulb(23.0);
686 381 }
687
688 // constructor
689
1/1
✓ Branch 3 taken 168 times.
168 DesignDay::DesignDay(std::shared_ptr<detail::DesignDay_Impl> impl) : SizingPeriod(std::move(impl)) {}
690
691 8807 IddObjectType DesignDay::iddObjectType() {
692
1/1
✓ Branch 1 taken 8807 times.
8807 IddObjectType result(IddObjectType::OS_SizingPeriod_DesignDay);
693 8807 return result;
694 }
695
696 ✗ std::vector<std::string> DesignDay::validDayTypeValues() {
697 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SizingPeriod_DesignDayFields::DayType);
698 }
699
700 // Deprecated
701 ✗ std::vector<std::string> DesignDay::validHumidityIndicatingTypeValues() {
702 ✗ DEPRECATED_AT_MSG(3, 3, 0, "Use validHumidityConditionTypeValues instead.");
703 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SizingPeriod_DesignDayFields::HumidityConditionType);
704 }
705
706 ✗ std::vector<std::string> DesignDay::validHumidityConditionTypeValues() {
707 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SizingPeriod_DesignDayFields::HumidityConditionType);
708 }
709
710 ✗ std::vector<std::string> DesignDay::validDryBulbTemperatureRangeModifierTypeValues() {
711 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
712 ✗ OS_SizingPeriod_DesignDayFields::DryBulbTemperatureRangeModifierType);
713 }
714
715 ✗ std::vector<std::string> DesignDay::validSolarModelIndicatorValues() {
716 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SizingPeriod_DesignDayFields::SolarModelIndicator);
717 }
718
719 ✗ std::vector<std::string> DesignDay::validBeginEnvironmentResetModeValues() {
720 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_SizingPeriod_DesignDayFields::BeginEnvironmentResetMode);
721 }
722
723 162 double DesignDay::maximumDryBulbTemperature() const {
724
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->maximumDryBulbTemperature();
725 }
726
727 3 bool DesignDay::isMaximumDryBulbTemperatureDefaulted() const {
728
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isMaximumDryBulbTemperatureDefaulted();
729 }
730
731 162 double DesignDay::dailyDryBulbTemperatureRange() const {
732
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->dailyDryBulbTemperatureRange();
733 }
734
735 3 bool DesignDay::isDailyDryBulbTemperatureRangeDefaulted() const {
736
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isDailyDryBulbTemperatureRangeDefaulted();
737 }
738
739 2 double DesignDay::humidityIndicatingConditionsAtMaximumDryBulb() const {
740
5/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
8 DEPRECATED_AT_MSG(3, 3, 0, "Use wetBulbOrDewPointAtMaximumDryBulb, humidityRatioAtMaximumDryBulb, or enthalpyAtMaximumDryBulb instead.");
741
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::HumidityConditionType, true);
742
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
743
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 std::string humidityConditionType = value.get();
744
9/21
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 14 taken 2 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 2 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ 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.
8 if (istringEqual(humidityConditionType, "WetBulb") || istringEqual(humidityConditionType, "DewPoint")
745
3/12
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
2 || istringEqual(humidityConditionType, "WetBulbProfileMultiplierSchedule")
746
2/12
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
2 || istringEqual(humidityConditionType, "WetBulbProfileDifferenceSchedule")
747
6/17
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 6 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✓ Branch 14 taken 2 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
5 || istringEqual(humidityConditionType, "WetBulbProfileDefaultMultipliers")) {
748
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->wetBulbOrDewPointAtMaximumDryBulb().get();
749 ✗ } else if (istringEqual(humidityConditionType, "HumidityRatio")) {
750 ✗ return getImpl<detail::DesignDay_Impl>()->humidityRatioAtMaximumDryBulb().get();
751 ✗ } else if (istringEqual(humidityConditionType, "Enthalpy")) {
752 ✗ return getImpl<detail::DesignDay_Impl>()->enthalpyAtMaximumDryBulb().get();
753 }
754 ✗ return 0.0;
755 2 }
756
757 3 bool DesignDay::isHumidityIndicatingConditionsAtMaximumDryBulbDefaulted() const {
758
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(
759 3, 3, 0,
760 "Check that None of these have a value: wetBulbOrDewPointAtMaximumDryBulb,humidityRatioAtMaximumDryBulb, enthalpyAtMaximumDryBulb instead.");
761
1/1
✓ Branch 1 taken 3 times.
3 bool wetBulbOrDewPointAtMaximumDryBulb = isEmpty(OS_SizingPeriod_DesignDayFields::WetbulborDewPointatMaximumDryBulb);
762
1/1
✓ Branch 1 taken 3 times.
3 bool humidityRatioAtMaximumDryBulb = isEmpty(OS_SizingPeriod_DesignDayFields::HumidityRatioatMaximumDryBulb);
763
1/1
✓ Branch 1 taken 3 times.
3 bool enthalpyAtMaximumDryBulb = isEmpty(OS_SizingPeriod_DesignDayFields::EnthalpyatMaximumDryBulb);
764
4/6
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
6 return wetBulbOrDewPointAtMaximumDryBulb && humidityRatioAtMaximumDryBulb && enthalpyAtMaximumDryBulb;
765 }
766
767 162 double DesignDay::barometricPressure() const {
768
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->barometricPressure();
769 }
770
771 3 bool DesignDay::isBarometricPressureDefaulted() const {
772
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isBarometricPressureDefaulted();
773 }
774
775 162 double DesignDay::windSpeed() const {
776
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->windSpeed();
777 }
778
779 3 bool DesignDay::isWindSpeedDefaulted() const {
780
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isWindSpeedDefaulted();
781 }
782
783 162 double DesignDay::windDirection() const {
784
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->windDirection();
785 }
786
787 3 bool DesignDay::isWindDirectionDefaulted() const {
788
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isWindDirectionDefaulted();
789 }
790
791 120 double DesignDay::skyClearness() const {
792
1/1
✓ Branch 3 taken 120 times.
120 return getImpl<detail::DesignDay_Impl>()->skyClearness();
793 }
794
795 3 bool DesignDay::isSkyClearnessDefaulted() const {
796
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isSkyClearnessDefaulted();
797 }
798
799 162 bool DesignDay::rainIndicator() const {
800
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->rainIndicator();
801 }
802
803 3 bool DesignDay::isRainIndicatorDefaulted() const {
804
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isRainIndicatorDefaulted();
805 }
806
807 164 bool DesignDay::snowIndicator() const {
808
1/1
✓ Branch 3 taken 164 times.
164 return getImpl<detail::DesignDay_Impl>()->snowIndicator();
809 }
810
811 3 bool DesignDay::isSnowIndicatorDefaulted() const {
812
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isSnowIndicatorDefaulted();
813 }
814
815 162 int DesignDay::dayOfMonth() const {
816
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->dayOfMonth();
817 }
818
819 3 bool DesignDay::isDayOfMonthDefaulted() const {
820
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isDayOfMonthDefaulted();
821 }
822
823 162 int DesignDay::month() const {
824
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->month();
825 }
826
827 3 bool DesignDay::isMonthDefaulted() const {
828
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isMonthDefaulted();
829 }
830
831 162 std::string DesignDay::dayType() const {
832
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->dayType();
833 }
834
835 3 bool DesignDay::isDayTypeDefaulted() const {
836
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isDayTypeDefaulted();
837 }
838
839 162 bool DesignDay::daylightSavingTimeIndicator() const {
840
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->daylightSavingTimeIndicator();
841 }
842
843 3 bool DesignDay::isDaylightSavingTimeIndicatorDefaulted() const {
844
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isDaylightSavingTimeIndicatorDefaulted();
845 }
846
847 4 std::string DesignDay::humidityIndicatingType() const {
848
5/5
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
16 DEPRECATED_AT_MSG(3, 3, 0, "Use humidityConditionType instead.");
849
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::DesignDay_Impl>()->humidityConditionType();
850 }
851
852 186 std::string DesignDay::humidityConditionType() const {
853
1/1
✓ Branch 3 taken 186 times.
186 return getImpl<detail::DesignDay_Impl>()->humidityConditionType();
854 }
855
856 3 bool DesignDay::isHumidityIndicatingTypeDefaulted() const {
857
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use isHumidityConditionTypeDefaulted instead.");
858
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isHumidityConditionTypeDefaulted();
859 }
860
861 3 bool DesignDay::isHumidityConditionTypeDefaulted() const {
862
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isHumidityConditionTypeDefaulted();
863 }
864
865 3 boost::optional<ScheduleDay> DesignDay::humidityIndicatingDaySchedule() const {
866
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use humidityConditionDaySchedule instead.");
867
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->humidityConditionDaySchedule();
868 }
869
870 5 boost::optional<ScheduleDay> DesignDay::humidityConditionDaySchedule() const {
871
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->humidityConditionDaySchedule();
872 }
873
874 155 boost::optional<double> DesignDay::wetBulbOrDewPointAtMaximumDryBulb() const {
875
1/1
✓ Branch 3 taken 155 times.
155 return getImpl<detail::DesignDay_Impl>()->wetBulbOrDewPointAtMaximumDryBulb();
876 }
877
878 5 boost::optional<double> DesignDay::humidityRatioAtMaximumDryBulb() const {
879
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->humidityRatioAtMaximumDryBulb();
880 }
881
882 15 boost::optional<double> DesignDay::enthalpyAtMaximumDryBulb() const {
883
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::DesignDay_Impl>()->enthalpyAtMaximumDryBulb();
884 }
885
886 185 std::string DesignDay::dryBulbTemperatureRangeModifierType() const {
887
1/1
✓ Branch 3 taken 185 times.
185 return getImpl<detail::DesignDay_Impl>()->dryBulbTemperatureRangeModifierType();
888 }
889
890 3 bool DesignDay::isDryBulbTemperatureRangeModifierTypeDefaulted() const {
891
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isDryBulbTemperatureRangeModifierTypeDefaulted();
892 }
893
894 3 boost::optional<ScheduleDay> DesignDay::dryBulbTemperatureRangeModifierSchedule() const {
895
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use dryBulbTemperatureRangeModifierDaySchedule instead.");
896
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->dryBulbTemperatureRangeModifierDaySchedule();
897 }
898
899 5 boost::optional<ScheduleDay> DesignDay::dryBulbTemperatureRangeModifierDaySchedule() const {
900
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->dryBulbTemperatureRangeModifierDaySchedule();
901 }
902
903 186 std::string DesignDay::solarModelIndicator() const {
904
1/1
✓ Branch 3 taken 186 times.
186 return getImpl<detail::DesignDay_Impl>()->solarModelIndicator();
905 }
906
907 3 bool DesignDay::isSolarModelIndicatorDefaulted() const {
908
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isSolarModelIndicatorDefaulted();
909 }
910
911 5 boost::optional<ScheduleDay> DesignDay::beamSolarDaySchedule() const {
912
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->beamSolarDaySchedule();
913 }
914
915 5 boost::optional<ScheduleDay> DesignDay::diffuseSolarDaySchedule() const {
916
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->diffuseSolarDaySchedule();
917 }
918
919 3 double DesignDay::ashraeTaub() const {
920
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use ashraeClearSkyOpticalDepthForBeamIrradiance instead.");
921
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->ashraeClearSkyOpticalDepthForBeamIrradiance();
922 }
923
924 45 double DesignDay::ashraeClearSkyOpticalDepthForBeamIrradiance() const {
925
1/1
✓ Branch 3 taken 45 times.
45 return getImpl<detail::DesignDay_Impl>()->ashraeClearSkyOpticalDepthForBeamIrradiance();
926 }
927
928 3 bool DesignDay::isAshraeTaubDefaulted() const {
929
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use isAshraeClearSkyOpticalDepthForBeamIrradianceDefaulted instead.");
930
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isAshraeClearSkyOpticalDepthForBeamIrradianceDefaulted();
931 }
932
933 3 bool DesignDay::isAshraeClearSkyOpticalDepthForBeamIrradianceDefaulted() const {
934
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isAshraeClearSkyOpticalDepthForBeamIrradianceDefaulted();
935 }
936
937 3 double DesignDay::ashraeTaud() const {
938
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use ashraeClearSkyOpticalDepthForDiffuseIrradiance instead.");
939
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->ashraeClearSkyOpticalDepthForDiffuseIrradiance();
940 }
941
942 45 double DesignDay::ashraeClearSkyOpticalDepthForDiffuseIrradiance() const {
943
1/1
✓ Branch 3 taken 45 times.
45 return getImpl<detail::DesignDay_Impl>()->ashraeClearSkyOpticalDepthForDiffuseIrradiance();
944 }
945
946 3 bool DesignDay::isAshraeTaudDefaulted() const {
947
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
12 DEPRECATED_AT_MSG(3, 3, 0, "Use isAshraeClearSkyOpticalDepthForDiffuseIrradianceDefaulted instead.");
948
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isAshraeClearSkyOpticalDepthForDiffuseIrradianceDefaulted();
949 }
950
951 3 bool DesignDay::isAshraeClearSkyOpticalDepthForDiffuseIrradianceDefaulted() const {
952
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isAshraeClearSkyOpticalDepthForDiffuseIrradianceDefaulted();
953 }
954
955 5 boost::optional<double> DesignDay::dailyWetBulbTemperatureRange() const {
956
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::DesignDay_Impl>()->dailyWetBulbTemperatureRange();
957 }
958
959 163 boost::optional<int> DesignDay::maximumNumberWarmupDays() const {
960
1/1
✓ Branch 3 taken 163 times.
163 return getImpl<detail::DesignDay_Impl>()->maximumNumberWarmupDays();
961 }
962
963 162 std::string DesignDay::beginEnvironmentResetMode() const {
964
1/1
✓ Branch 3 taken 162 times.
162 return getImpl<detail::DesignDay_Impl>()->beginEnvironmentResetMode();
965 }
966
967 3 bool DesignDay::isBeginEnvironmentResetModeDefaulted() const {
968
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::DesignDay_Impl>()->isBeginEnvironmentResetModeDefaulted();
969 }
970
971 361 bool DesignDay::setMaximumDryBulbTemperature(double maximumDryBulbTemperature) {
972
1/1
✓ Branch 3 taken 361 times.
361 return getImpl<detail::DesignDay_Impl>()->setMaximumDryBulbTemperature(maximumDryBulbTemperature);
973 }
974
975 1 void DesignDay::resetMaximumDryBulbTemperature() {
976
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetMaximumDryBulbTemperature();
977 1 }
978
979 360 bool DesignDay::setDailyDryBulbTemperatureRange(double dailyDryBulbTemperatureRange) {
980
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setDailyDryBulbTemperatureRange(dailyDryBulbTemperatureRange);
981 }
982
983 1 void DesignDay::resetDailyDryBulbTemperatureRange() {
984
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDailyDryBulbTemperatureRange();
985 1 }
986
987 360 bool DesignDay::setBarometricPressure(double barometricPressure) {
988
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setBarometricPressure(barometricPressure);
989 }
990
991 1 void DesignDay::resetBarometricPressure() {
992
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetBarometricPressure();
993 1 }
994
995 360 bool DesignDay::setWindSpeed(double windSpeed) {
996
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setWindSpeed(windSpeed);
997 }
998
999 1 void DesignDay::resetWindSpeed() {
1000
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetWindSpeed();
1001 1 }
1002
1003 360 bool DesignDay::setWindDirection(double windDirection) {
1004
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setWindDirection(windDirection);
1005 }
1006
1007 1 void DesignDay::resetWindDirection() {
1008
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetWindDirection();
1009 1 }
1010
1011 353 bool DesignDay::setSkyClearness(double skyClearness) {
1012
1/1
✓ Branch 3 taken 353 times.
353 return getImpl<detail::DesignDay_Impl>()->setSkyClearness(skyClearness);
1013 }
1014
1015 1 void DesignDay::resetSkyClearness() {
1016
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetSkyClearness();
1017 1 }
1018
1019 360 bool DesignDay::setRainIndicator(bool rainIndicator) {
1020
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setRainIndicator(rainIndicator);
1021 }
1022
1023 1 void DesignDay::resetRainIndicator() {
1024
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetRainIndicator();
1025 1 }
1026
1027 361 bool DesignDay::setSnowIndicator(bool snowIndicator) {
1028
1/1
✓ Branch 3 taken 361 times.
361 return getImpl<detail::DesignDay_Impl>()->setSnowIndicator(snowIndicator);
1029 }
1030
1031 1 void DesignDay::resetSnowIndicator() {
1032
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetSnowIndicator();
1033 1 }
1034
1035 360 bool DesignDay::setDayOfMonth(int dayOfMonth) {
1036
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setDayOfMonth(dayOfMonth);
1037 }
1038
1039 1 void DesignDay::resetDayOfMonth() {
1040
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDayOfMonth();
1041 1 }
1042
1043 360 bool DesignDay::setMonth(int month) {
1044
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setMonth(month);
1045 }
1046
1047 1 void DesignDay::resetMonth() {
1048
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetMonth();
1049 1 }
1050
1051 362 bool DesignDay::setDayType(const std::string& dayType) {
1052
1/1
✓ Branch 3 taken 362 times.
362 return getImpl<detail::DesignDay_Impl>()->setDayType(dayType);
1053 }
1054
1055 1 void DesignDay::resetDayType() {
1056
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDayType();
1057 1 }
1058
1059 360 bool DesignDay::setDaylightSavingTimeIndicator(bool daylightSavingTimeIndicator) {
1060
1/1
✓ Branch 3 taken 360 times.
360 return getImpl<detail::DesignDay_Impl>()->setDaylightSavingTimeIndicator(daylightSavingTimeIndicator);
1061 }
1062
1063 1 void DesignDay::resetDaylightSavingTimeIndicator() {
1064
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDaylightSavingTimeIndicator();
1065 1 }
1066
1067 1 bool DesignDay::setHumidityIndicatingType(const std::string& humidityIndicatingType) {
1068
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use setHumidityConditionType instead.");
1069
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DesignDay_Impl>()->setHumidityConditionType(humidityIndicatingType);
1070 }
1071
1072 362 bool DesignDay::setHumidityConditionType(const std::string& humidityConditionType) {
1073
1/1
✓ Branch 3 taken 362 times.
362 return getImpl<detail::DesignDay_Impl>()->setHumidityConditionType(humidityConditionType);
1074 }
1075
1076 1 void DesignDay::resetHumidityIndicatingType() {
1077
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use resetHumidityConditionType instead.");
1078
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityConditionType();
1079 1 }
1080
1081 1 void DesignDay::resetHumidityConditionType() {
1082
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityConditionType();
1083 1 }
1084
1085 1 bool DesignDay::setHumidityIndicatingDaySchedule(const ScheduleDay& schedule) {
1086
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use setHumidityConditionDaySchedule instead.");
1087
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DesignDay_Impl>()->setHumidityConditionDaySchedule(schedule);
1088 }
1089
1090 2 bool DesignDay::setHumidityConditionDaySchedule(const ScheduleDay& schedule) {
1091
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setHumidityConditionDaySchedule(schedule);
1092 }
1093
1094 1 void DesignDay::resetHumidityIndicatingDaySchedule() {
1095
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use resetHumidityConditionDaySchedule instead.");
1096
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityConditionDaySchedule();
1097 1 }
1098
1099 1 void DesignDay::resetHumidityConditionDaySchedule() {
1100
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityConditionDaySchedule();
1101 1 }
1102
1103 2 bool DesignDay::setHumidityIndicatingConditionsAtMaximumDryBulb(double humidityIndicatingConditionsAtMaximumDryBulb) {
1104
5/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
8 DEPRECATED_AT_MSG(3, 3, 0, "Use setWetBulbOrDewPointAtMaximumDryBulb, setHumidityRatioAtMaximumDryBulb, or setEnthalpyAtMaximumDryBulb instead.");
1105
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_SizingPeriod_DesignDayFields::HumidityConditionType, true);
1106
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
1107
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 std::string humidityConditionType = value.get();
1108
9/21
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 9 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 2 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 2 times.
✗ Branch 18 not taken.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ 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.
10 if (istringEqual(humidityConditionType, "WetBulb") || istringEqual(humidityConditionType, "DewPoint")
1109
6/12
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
✓ Branch 9 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 2 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
4 || istringEqual(humidityConditionType, "WetBulbProfileMultiplierSchedule")
1110
7/12
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
✓ Branch 9 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
4 || istringEqual(humidityConditionType, "WetBulbProfileDifferenceSchedule")
1111
6/17
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✗ Branch 6 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✓ Branch 14 taken 2 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✓ Branch 18 taken 1 time.
✓ Branch 19 taken 1 time.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
6 || istringEqual(humidityConditionType, "WetBulbProfileDefaultMultipliers")) {
1112
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setWetBulbOrDewPointAtMaximumDryBulb(humidityIndicatingConditionsAtMaximumDryBulb);
1113 ✗ } else if (istringEqual(humidityConditionType, "HumidityRatio")) {
1114 ✗ return getImpl<detail::DesignDay_Impl>()->setHumidityRatioAtMaximumDryBulb(humidityIndicatingConditionsAtMaximumDryBulb);
1115 ✗ } else if (istringEqual(humidityConditionType, "Enthalpy")) {
1116 ✗ return getImpl<detail::DesignDay_Impl>()->setEnthalpyAtMaximumDryBulb(humidityIndicatingConditionsAtMaximumDryBulb);
1117 }
1118 ✗ return false;
1119 2 }
1120
1121 1 void DesignDay::resetHumidityIndicatingConditionsAtMaximumDryBulb() {
1122
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0,
1123 "Use resetWetBulbOrDewPointAtMaximumDryBulb, resetHumidityRatioAtMaximumDryBulb, and resetEnthalpyAtMaximumDryBulb instead.");
1124
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetWetBulbOrDewPointAtMaximumDryBulb();
1125
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityRatioAtMaximumDryBulb();
1126
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetEnthalpyAtMaximumDryBulb();
1127 1 }
1128
1129 741 bool DesignDay::setWetBulbOrDewPointAtMaximumDryBulb(double wetBulbOrDewPointAtMaximumDryBulb) {
1130
2/2
✓ Branch 3 taken 741 times.
✓ Branch 6 taken 741 times.
741 return getImpl<detail::DesignDay_Impl>()->setWetBulbOrDewPointAtMaximumDryBulb(wetBulbOrDewPointAtMaximumDryBulb);
1131 }
1132
1133 1 void DesignDay::resetWetBulbOrDewPointAtMaximumDryBulb() {
1134
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetWetBulbOrDewPointAtMaximumDryBulb();
1135 1 }
1136
1137 2 bool DesignDay::setHumidityRatioAtMaximumDryBulb(double humidityRatioAtMaximumDryBulb) {
1138
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setHumidityRatioAtMaximumDryBulb(humidityRatioAtMaximumDryBulb);
1139 }
1140
1141 1 void DesignDay::resetHumidityRatioAtMaximumDryBulb() {
1142
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetHumidityRatioAtMaximumDryBulb();
1143 1 }
1144
1145 2 bool DesignDay::setEnthalpyAtMaximumDryBulb(double enthalpyAtMaximumDryBulb) {
1146
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setEnthalpyAtMaximumDryBulb(enthalpyAtMaximumDryBulb);
1147 }
1148
1149 1 void DesignDay::resetEnthalpyAtMaximumDryBulb() {
1150
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetEnthalpyAtMaximumDryBulb();
1151 1 }
1152
1153 26 bool DesignDay::setDryBulbTemperatureRangeModifierType(const std::string& dryBulbTemperatureRangeModifierType) {
1154
1/1
✓ Branch 3 taken 26 times.
26 return getImpl<detail::DesignDay_Impl>()->setDryBulbTemperatureRangeModifierType(dryBulbTemperatureRangeModifierType);
1155 }
1156
1157 1 void DesignDay::resetDryBulbTemperatureRangeModifierType() {
1158
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDryBulbTemperatureRangeModifierType();
1159 1 }
1160
1161 1 bool DesignDay::setDryBulbTemperatureRangeModifierSchedule(const ScheduleDay& schedule) {
1162
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use setDryBulbTemperatureRangeModifierDaySchedule instead.");
1163
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DesignDay_Impl>()->setDryBulbTemperatureRangeModifierDaySchedule(schedule);
1164 }
1165
1166 2 bool DesignDay::setDryBulbTemperatureRangeModifierDaySchedule(const ScheduleDay& schedule) {
1167
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setDryBulbTemperatureRangeModifierDaySchedule(schedule);
1168 }
1169
1170 1 void DesignDay::resetDryBulbTemperatureRangeModifierSchedule() {
1171
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use resetDryBulbTemperatureRangeModifierDaySchedule instead.");
1172
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDryBulbTemperatureRangeModifierDaySchedule();
1173 1 }
1174
1175 1 void DesignDay::resetDryBulbTemperatureRangeModifierDaySchedule() {
1176
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDryBulbTemperatureRangeModifierDaySchedule();
1177 1 }
1178
1179 24 bool DesignDay::setSolarModelIndicator(const std::string& solarModelIndicator) {
1180
1/1
✓ Branch 3 taken 24 times.
24 return getImpl<detail::DesignDay_Impl>()->setSolarModelIndicator(solarModelIndicator);
1181 }
1182
1183 1 void DesignDay::resetSolarModelIndicator() {
1184
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetSolarModelIndicator();
1185 1 }
1186
1187 2 bool DesignDay::setBeamSolarDaySchedule(const ScheduleDay& schedule) {
1188
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setBeamSolarDaySchedule(schedule);
1189 }
1190
1191 1 void DesignDay::resetBeamSolarDaySchedule() {
1192
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetBeamSolarDaySchedule();
1193 1 }
1194
1195 2 bool DesignDay::setDiffuseSolarDaySchedule(const ScheduleDay& schedule) {
1196
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setDiffuseSolarDaySchedule(schedule);
1197 }
1198
1199 1 void DesignDay::resetDiffuseSolarDaySchedule() {
1200
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDiffuseSolarDaySchedule();
1201 1 }
1202
1203 1 bool DesignDay::setAshraeTaub(double ashraeTaub) {
1204
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use setAshraeClearSkyOpticalDepthForBeamIrradiance instead.");
1205
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DesignDay_Impl>()->setAshraeClearSkyOpticalDepthForBeamIrradiance(ashraeTaub);
1206 }
1207
1208 9 bool DesignDay::setAshraeClearSkyOpticalDepthForBeamIrradiance(double ashraeClearSkyOpticalDepthForBeamIrradiance) {
1209
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::DesignDay_Impl>()->setAshraeClearSkyOpticalDepthForBeamIrradiance(ashraeClearSkyOpticalDepthForBeamIrradiance);
1210 }
1211
1212 1 void DesignDay::resetAshraeTaub() {
1213
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use resetAshraeClearSkyOpticalDepthForBeamIrradiance instead.");
1214
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetAshraeClearSkyOpticalDepthForBeamIrradiance();
1215 1 }
1216
1217 1 void DesignDay::resetAshraeClearSkyOpticalDepthForBeamIrradiance() {
1218
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetAshraeClearSkyOpticalDepthForBeamIrradiance();
1219 1 }
1220
1221 1 bool DesignDay::setAshraeTaud(double ashraeTaud) {
1222
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use setAshraeClearSkyOpticalDepthForDiffuseIrradiance instead.");
1223
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::DesignDay_Impl>()->setAshraeClearSkyOpticalDepthForDiffuseIrradiance(ashraeTaud);
1224 }
1225
1226 9 bool DesignDay::setAshraeClearSkyOpticalDepthForDiffuseIrradiance(double ashraeClearSkyOpticalDepthForDiffuseIrradiance) {
1227
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::DesignDay_Impl>()->setAshraeClearSkyOpticalDepthForDiffuseIrradiance(ashraeClearSkyOpticalDepthForDiffuseIrradiance);
1228 }
1229
1230 1 void DesignDay::resetAshraeTaud() {
1231
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 3, 0, "Use resetAshraeClearSkyOpticalDepthForDiffuseIrradiance instead.");
1232
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetAshraeClearSkyOpticalDepthForDiffuseIrradiance();
1233 1 }
1234
1235 1 void DesignDay::resetAshraeClearSkyOpticalDepthForDiffuseIrradiance() {
1236
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetAshraeClearSkyOpticalDepthForDiffuseIrradiance();
1237 1 }
1238
1239 2 bool DesignDay::setDailyWetBulbTemperatureRange(double dailyWetBulbTemperatureRange) {
1240
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setDailyWetBulbTemperatureRange(dailyWetBulbTemperatureRange);
1241 }
1242
1243 1 void DesignDay::resetDailyWetBulbTemperatureRange() {
1244
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetDailyWetBulbTemperatureRange();
1245 1 }
1246
1247 2 bool DesignDay::setMaximumNumberWarmupDays(int maximumNumberWarmupDays) {
1248
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
2 return getImpl<detail::DesignDay_Impl>()->setMaximumNumberWarmupDays(maximumNumberWarmupDays);
1249 }
1250
1251 1 void DesignDay::resetMaximumNumberWarmupDays() {
1252
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetMaximumNumberWarmupDays();
1253 1 }
1254
1255 14 bool DesignDay::setBeginEnvironmentResetMode(const std::string& beginEnvironmentResetMode) {
1256
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::DesignDay_Impl>()->setBeginEnvironmentResetMode(beginEnvironmentResetMode);
1257 }
1258
1259 1 void DesignDay::resetBeginEnvironmentResetMode() {
1260
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::DesignDay_Impl>()->resetBeginEnvironmentResetMode();
1261 1 }
1262
1263 } // namespace model
1264 } // namespace openstudio
1265