GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 55.9% 109 / 0 / 195
Functions: 65.8% 25 / 0 / 38
Branches: 44.0% 113 / 0 / 257

src/model/RefrigerationDefrostCycleParameters.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 "RefrigerationDefrostCycleParameters.hpp"
7 #include "RefrigerationDefrostCycleParameters_Impl.hpp"
8
9 #include <utilities/idd/OS_Refrigeration_DefrostCycleParameters_FieldEnums.hxx>
10 #include <utilities/idd/IddEnums.hxx>
11
12 #include "../utilities/time/Time.hpp"
13
14 #include "../utilities/core/Assert.hpp"
15
16 namespace openstudio {
17 namespace model {
18
19 namespace detail {
20
21 4 RefrigerationDefrostCycleParameters_Impl::RefrigerationDefrostCycleParameters_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
22 4 : ModelObject_Impl(idfObject, model, keepHandle) {
23
4/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
4 OS_ASSERT(idfObject.iddObject().type() == RefrigerationDefrostCycleParameters::iddObjectType());
24 4 }
25
26 ✗ RefrigerationDefrostCycleParameters_Impl::RefrigerationDefrostCycleParameters_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
27 ✗ Model_Impl* model, bool keepHandle)
28 ✗ : ModelObject_Impl(other, model, keepHandle) {
29 ✗ OS_ASSERT(other.iddObject().type() == RefrigerationDefrostCycleParameters::iddObjectType());
30 ✗ }
31
32 4 RefrigerationDefrostCycleParameters_Impl::RefrigerationDefrostCycleParameters_Impl(const RefrigerationDefrostCycleParameters_Impl& other,
33 4 Model_Impl* model, bool keepHandle)
34 4 : ModelObject_Impl(other, model, keepHandle) {}
35
36 ✗ const std::vector<std::string>& RefrigerationDefrostCycleParameters_Impl::outputVariableNames() const {
37 ✗ static const std::vector<std::string> result;
38 ✗ return result;
39 }
40
41 ✗ IddObjectType RefrigerationDefrostCycleParameters_Impl::iddObjectType() const {
42 ✗ return RefrigerationDefrostCycleParameters::iddObjectType();
43 }
44
45 3 boost::optional<int> RefrigerationDefrostCycleParameters_Impl::durationofDefrostCycle() const {
46 3 return getInt(OS_Refrigeration_DefrostCycleParametersFields::DurationofDefrostCycle, true);
47 }
48
49 3 boost::optional<int> RefrigerationDefrostCycleParameters_Impl::dripDownTime() const {
50 3 return getInt(OS_Refrigeration_DefrostCycleParametersFields::DripDownTime, true);
51 }
52
53 // bool RefrigerationDefrostCycleParameters_Impl::checkStartTimeOverlap(const boost::optional<openstudio::Time>& defrostStartTime1, const boost::optional<openstudio::Time>& defrostStartTime2) const {
54 // boost::optional<int>
55 // if ( defrostStartTime1 && defrostStartTime2 ) {
56 // defrost1StartTime.totalMinutes()
57 // pass
58 // }
59 // boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1HourStartTime,true);
60 // boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1MinuteStartTime,true);
61 // if ( hour && minute ) {
62 // return Time(0, *hour, *minute);
63 // }
64 // return boost::none;
65 // }
66
67 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost1StartTime() const {
68
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1HourStartTime, true);
69
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1MinuteStartTime, true);
70
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
71
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
72 }
73 ✗ return boost::none;
74 }
75
76 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost2StartTime() const {
77
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost2HourStartTime, true);
78
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost2MinuteStartTime, true);
79
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
80
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
81 }
82 ✗ return boost::none;
83 }
84
85 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost3StartTime() const {
86
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost3HourStartTime, true);
87
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost3MinuteStartTime, true);
88
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
89
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
90 }
91 ✗ return boost::none;
92 }
93
94 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost4StartTime() const {
95
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost4HourStartTime, true);
96
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost4MinuteStartTime, true);
97
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
98
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
99 }
100 ✗ return boost::none;
101 }
102
103 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost5StartTime() const {
104
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost5HourStartTime, true);
105
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost5MinuteStartTime, true);
106
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
107
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
108 }
109 ✗ return boost::none;
110 }
111
112 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost6StartTime() const {
113
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost6HourStartTime, true);
114
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost6MinuteStartTime, true);
115
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
116
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
117 }
118 ✗ return boost::none;
119 }
120
121 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost7StartTime() const {
122
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost7HourStartTime, true);
123
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost7MinuteStartTime, true);
124
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
125
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
126 }
127 ✗ return boost::none;
128 }
129
130 6 boost::optional<openstudio::Time> RefrigerationDefrostCycleParameters_Impl::defrost8StartTime() const {
131
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> hour = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost8HourStartTime, true);
132
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> minute = getInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost8MinuteStartTime, true);
133
3/6
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
12 if (hour && minute) {
134
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
6 return Time(0, *hour, *minute);
135 }
136 ✗ return boost::none;
137 }
138
139 5 bool RefrigerationDefrostCycleParameters_Impl::setDurationofDefrostCycle(boost::optional<int> durationofDefrostCycle) {
140 5 bool result(false);
141
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (durationofDefrostCycle) {
142 5 result = setInt(OS_Refrigeration_DefrostCycleParametersFields::DurationofDefrostCycle, durationofDefrostCycle.get());
143 } else {
144 ✗ resetDurationofDefrostCycle();
145 ✗ result = true;
146 }
147 5 return result;
148 }
149
150 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDurationofDefrostCycle() {
151 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::DurationofDefrostCycle, "");
152 ✗ OS_ASSERT(result);
153 ✗ }
154
155 3 bool RefrigerationDefrostCycleParameters_Impl::setDripDownTime(boost::optional<int> dripDownTime) {
156 3 bool result(false);
157
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (dripDownTime) {
158 3 result = setInt(OS_Refrigeration_DefrostCycleParametersFields::DripDownTime, dripDownTime.get());
159 } else {
160 ✗ resetDripDownTime();
161 ✗ result = true;
162 }
163 3 return result;
164 }
165
166 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDripDownTime() {
167 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::DripDownTime, "");
168 ✗ OS_ASSERT(result);
169 ✗ }
170
171 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost1StartTime(const openstudio::Time& defrost1StartTime) {
172 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1HourStartTime, defrost1StartTime.hours());
173 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost1MinuteStartTime, defrost1StartTime.minutes());
174
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
175 ✗ resetDefrost1StartTime();
176 }
177
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
178 }
179
180 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost1StartTime() {
181 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost1HourStartTime, "");
182 ✗ OS_ASSERT(result);
183 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost1MinuteStartTime, "");
184 ✗ OS_ASSERT(result);
185 ✗ }
186
187 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost2StartTime(const openstudio::Time& defrost2StartTime) {
188 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost2HourStartTime, defrost2StartTime.hours());
189 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost2MinuteStartTime, defrost2StartTime.minutes());
190
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
191 ✗ resetDefrost2StartTime();
192 }
193
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
194 }
195
196 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost2StartTime() {
197 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost2HourStartTime, "");
198 ✗ OS_ASSERT(result);
199 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost2MinuteStartTime, "");
200 ✗ OS_ASSERT(result);
201 ✗ }
202
203 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost3StartTime(const openstudio::Time& defrost3StartTime) {
204 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost3HourStartTime, defrost3StartTime.hours());
205 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost3MinuteStartTime, defrost3StartTime.minutes());
206
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
207 ✗ resetDefrost3StartTime();
208 }
209
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
210 }
211
212 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost3StartTime() {
213 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost3HourStartTime, "");
214 ✗ OS_ASSERT(result);
215 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost3MinuteStartTime, "");
216 ✗ OS_ASSERT(result);
217 ✗ }
218
219 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost4StartTime(const openstudio::Time& defrost4StartTime) {
220 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost4HourStartTime, defrost4StartTime.hours());
221 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost4MinuteStartTime, defrost4StartTime.minutes());
222
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
223 ✗ resetDefrost4StartTime();
224 }
225
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
226 }
227
228 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost4StartTime() {
229 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost4HourStartTime, "");
230 ✗ OS_ASSERT(result);
231 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost4MinuteStartTime, "");
232 ✗ OS_ASSERT(result);
233 ✗ }
234
235 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost5StartTime(const openstudio::Time& defrost5StartTime) {
236 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost5HourStartTime, defrost5StartTime.hours());
237 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost5MinuteStartTime, defrost5StartTime.minutes());
238
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
239 ✗ resetDefrost5StartTime();
240 }
241
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
242 }
243
244 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost5StartTime() {
245 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost5HourStartTime, "");
246 ✗ OS_ASSERT(result);
247 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost5MinuteStartTime, "");
248 ✗ OS_ASSERT(result);
249 ✗ }
250
251 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost6StartTime(const openstudio::Time& defrost6StartTime) {
252 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost6HourStartTime, defrost6StartTime.hours());
253 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost6MinuteStartTime, defrost6StartTime.minutes());
254
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
255 ✗ resetDefrost6StartTime();
256 }
257
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
258 }
259
260 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost6StartTime() {
261 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost6HourStartTime, "");
262 ✗ OS_ASSERT(result);
263 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost6MinuteStartTime, "");
264 ✗ OS_ASSERT(result);
265 ✗ }
266
267 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost7StartTime(const openstudio::Time& defrost7StartTime) {
268 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost7HourStartTime, defrost7StartTime.hours());
269 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost7MinuteStartTime, defrost7StartTime.minutes());
270
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
271 ✗ resetDefrost7StartTime();
272 }
273
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
274 }
275
276 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost7StartTime() {
277 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost7HourStartTime, "");
278 ✗ OS_ASSERT(result);
279 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost7MinuteStartTime, "");
280 ✗ OS_ASSERT(result);
281 ✗ }
282
283 3 bool RefrigerationDefrostCycleParameters_Impl::setDefrost8StartTime(const openstudio::Time& defrost8StartTime) {
284 3 bool hours = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost8HourStartTime, defrost8StartTime.hours());
285 3 bool minutes = setInt(OS_Refrigeration_DefrostCycleParametersFields::Defrost8MinuteStartTime, defrost8StartTime.minutes());
286
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (!hours || !minutes) {
287 ✗ resetDefrost8StartTime();
288 }
289
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return hours && minutes;
290 }
291
292 ✗ void RefrigerationDefrostCycleParameters_Impl::resetDefrost8StartTime() {
293 ✗ bool result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost8HourStartTime, "");
294 ✗ OS_ASSERT(result);
295 ✗ result = setString(OS_Refrigeration_DefrostCycleParametersFields::Defrost8MinuteStartTime, "");
296 ✗ OS_ASSERT(result);
297 ✗ }
298
299 } // namespace detail
300
301 4 RefrigerationDefrostCycleParameters::RefrigerationDefrostCycleParameters(const Model& model)
302 4 : ModelObject(RefrigerationDefrostCycleParameters::iddObjectType(), model) {
303
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
4 OS_ASSERT(getImpl<detail::RefrigerationDefrostCycleParameters_Impl>());
304 4 }
305
306 7752 IddObjectType RefrigerationDefrostCycleParameters::iddObjectType() {
307
1/1
✓ Branch 1 taken 7752 times.
7752 return {IddObjectType::OS_Refrigeration_DefrostCycleParameters};
308 }
309
310 /// @cond
311 79 RefrigerationDefrostCycleParameters::RefrigerationDefrostCycleParameters(std::shared_ptr<detail::RefrigerationDefrostCycleParameters_Impl> impl)
312
1/1
✓ Branch 3 taken 79 times.
79 : ModelObject(std::move(impl)) {}
313 /// @endcond
314
315 } // namespace model
316 } // namespace openstudio
317