GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 49.4% 134 / 0 / 271
Functions: 62.7% 42 / 0 / 67
Branches: 38.3% 90 / 0 / 235

src/model/CoilCoolingLowTempRadiantConstFlow.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 "CoilCoolingLowTempRadiantConstFlow.hpp"
7 #include "CoilCoolingLowTempRadiantConstFlow_Impl.hpp"
8 #include "ZoneHVACLowTempRadiantConstFlow.hpp"
9 #include "ZoneHVACLowTempRadiantConstFlow_Impl.hpp"
10 #include "ZoneHVACComponent.hpp"
11 #include "ZoneHVACComponent_Impl.hpp"
12 #include "Schedule.hpp"
13 #include "Schedule_Impl.hpp"
14 #include "ScheduleTypeLimits.hpp"
15 #include "ScheduleTypeRegistry.hpp"
16 #include "Model.hpp"
17 #include "Model_Impl.hpp"
18 #include "Node.hpp"
19 #include "Node_Impl.hpp"
20 #include "PlantLoop.hpp"
21 #include "PlantLoop_Impl.hpp"
22
23 #include <utilities/idd/IddFactory.hxx>
24
25 #include <utilities/idd/OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlow_FieldEnums.hxx>
26 #include <utilities/idd/IddEnums.hxx>
27
28 #include "../utilities/core/Assert.hpp"
29 #include "../utilities/data/DataEnums.hpp"
30
31 namespace openstudio {
32 namespace model {
33
34 namespace detail {
35
36 7 CoilCoolingLowTempRadiantConstFlow_Impl::CoilCoolingLowTempRadiantConstFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
37 7 : StraightComponent_Impl(idfObject, model, keepHandle) {
38
4/6
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 7 times.
✗ Branch 13 not taken.
7 OS_ASSERT(idfObject.iddObject().type() == CoilCoolingLowTempRadiantConstFlow::iddObjectType());
39 7 }
40
41 1 CoilCoolingLowTempRadiantConstFlow_Impl::CoilCoolingLowTempRadiantConstFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
42 1 Model_Impl* model, bool keepHandle)
43 1 : StraightComponent_Impl(other, model, keepHandle) {
44
4/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
1 OS_ASSERT(other.iddObject().type() == CoilCoolingLowTempRadiantConstFlow::iddObjectType());
45 1 }
46
47 5 CoilCoolingLowTempRadiantConstFlow_Impl::CoilCoolingLowTempRadiantConstFlow_Impl(const CoilCoolingLowTempRadiantConstFlow_Impl& other,
48 5 Model_Impl* model, bool keepHandle)
49 5 : StraightComponent_Impl(other, model, keepHandle) {}
50
51 ✗ const std::vector<std::string>& CoilCoolingLowTempRadiantConstFlow_Impl::outputVariableNames() const {
52 ✗ static const std::vector<std::string> result;
53 ✗ return result;
54 }
55
56 ✗ IddObjectType CoilCoolingLowTempRadiantConstFlow_Impl::iddObjectType() const {
57 ✗ return CoilCoolingLowTempRadiantConstFlow::iddObjectType();
58 }
59
60 4 unsigned CoilCoolingLowTempRadiantConstFlow_Impl::inletPort() const {
61 4 return OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingWaterInletNodeName;
62 }
63
64 11 unsigned CoilCoolingLowTempRadiantConstFlow_Impl::outletPort() const {
65 11 return OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingWaterOutletNodeName;
66 }
67
68 ✗ std::vector<ScheduleTypeKey> CoilCoolingLowTempRadiantConstFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
69 ✗ std::vector<ScheduleTypeKey> result;
70 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
71 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
72 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
73 ✗ if (std::find(b, e, OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighWaterTemperatureScheduleName) != e) {
74 ✗ result.push_back(ScheduleTypeKey("CoilCoolingLowTempRadiantConstFlow", "Cooling High Water Temperature"));
75 }
76 ✗ if (std::find(b, e, OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowWaterTemperatureScheduleName) != e) {
77 ✗ result.push_back(ScheduleTypeKey("CoilCoolingLowTempRadiantConstFlow", "Cooling Low Water Temperature"));
78 }
79 ✗ if (std::find(b, e, OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighControlTemperatureScheduleName) != e) {
80 ✗ result.push_back(ScheduleTypeKey("CoilCoolingLowTempRadiantConstFlow", "Cooling High Control Temperature"));
81 }
82 ✗ if (std::find(b, e, OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowControlTemperatureScheduleName) != e) {
83 ✗ result.push_back(ScheduleTypeKey("CoilCoolingLowTempRadiantConstFlow", "Cooling Low Control Temperature"));
84 }
85 ✗ return result;
86 ✗ }
87
88 1 boost::optional<ZoneHVACComponent> CoilCoolingLowTempRadiantConstFlow_Impl::containingZoneHVACComponent() const {
89
90 1 std::vector<ZoneHVACLowTempRadiantConstFlow> zoneHVACLowTempRadiantConstFlows;
91
92
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 zoneHVACLowTempRadiantConstFlows = this->model().getConcreteModelObjects<ZoneHVACLowTempRadiantConstFlow>();
93
94
1/2
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
1 for (const auto& zoneHVACLowTempRadiantConstFlow : zoneHVACLowTempRadiantConstFlows) {
95
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> coil = zoneHVACLowTempRadiantConstFlow.coolingCoil()) {
96
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
1 if (coil->handle() == this->handle()) {
97
1/1
✓ Branch 1 taken 1 time.
1 return zoneHVACLowTempRadiantConstFlow;
98 }
99 1 }
100 }
101 ✗ return boost::none;
102 1 }
103
104 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow_Impl::coolingHighWaterTemperatureSchedule() const {
105
1/1
✓ Branch 1 taken 2 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
106
1/1
✓ Branch 1 taken 2 times.
4 OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighWaterTemperatureScheduleName);
107 }
108
109 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow_Impl::coolingLowWaterTemperatureSchedule() const {
110
1/1
✓ Branch 1 taken 2 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
111
1/1
✓ Branch 1 taken 2 times.
4 OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowWaterTemperatureScheduleName);
112 }
113
114 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow_Impl::coolingHighControlTemperatureSchedule() const {
115
1/1
✓ Branch 1 taken 2 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
116
1/1
✓ Branch 1 taken 2 times.
4 OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighControlTemperatureScheduleName);
117 }
118
119 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow_Impl::coolingLowControlTemperatureSchedule() const {
120
1/1
✓ Branch 1 taken 2 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
121
1/1
✓ Branch 1 taken 2 times.
4 OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowControlTemperatureScheduleName);
122 }
123
124 2 std::string CoilCoolingLowTempRadiantConstFlow_Impl::condensationControlType() const {
125
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlType, true);
126
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
127
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
128 2 }
129
130 2 bool CoilCoolingLowTempRadiantConstFlow_Impl::isCondensationControlTypeDefaulted() const {
131 2 return isEmpty(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlType);
132 }
133
134 2 double CoilCoolingLowTempRadiantConstFlow_Impl::condensationControlDewpointOffset() const {
135
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlDewpointOffset, true);
136
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
137
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
138 }
139
140 2 bool CoilCoolingLowTempRadiantConstFlow_Impl::isCondensationControlDewpointOffsetDefaulted() const {
141 2 return isEmpty(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlDewpointOffset);
142 }
143
144 7 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingHighWaterTemperatureSchedule(Schedule& schedule) {
145
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighWaterTemperatureScheduleName,
146 "CoilCoolingLowTempRadiantConstFlow", "Cooling High Water Temperature", schedule);
147 7 return result;
148 }
149
150 ✗ void CoilCoolingLowTempRadiantConstFlow_Impl::resetCoolingHighWaterTemperatureSchedule() {
151 ✗ bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighWaterTemperatureScheduleName, "");
152 ✗ OS_ASSERT(result);
153 ✗ }
154
155 7 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingLowWaterTemperatureSchedule(Schedule& schedule) {
156
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowWaterTemperatureScheduleName,
157 "CoilCoolingLowTempRadiantConstFlow", "Cooling Low Water Temperature", schedule);
158 7 return result;
159 }
160
161 ✗ void CoilCoolingLowTempRadiantConstFlow_Impl::resetCoolingLowWaterTemperatureSchedule() {
162 ✗ bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowWaterTemperatureScheduleName, "");
163 ✗ OS_ASSERT(result);
164 ✗ }
165
166 7 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingHighControlTemperatureSchedule(Schedule& schedule) {
167
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighControlTemperatureScheduleName,
168 "CoilCoolingLowTempRadiantConstFlow", "Cooling High Control Temperature", schedule);
169 7 return result;
170 }
171
172 ✗ void CoilCoolingLowTempRadiantConstFlow_Impl::resetCoolingHighControlTemperatureSchedule() {
173 ✗ bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingHighControlTemperatureScheduleName, "");
174 ✗ OS_ASSERT(result);
175 ✗ }
176
177 7 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingLowControlTemperatureSchedule(Schedule& schedule) {
178
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowControlTemperatureScheduleName,
179 "CoilCoolingLowTempRadiantConstFlow", "Cooling Low Control Temperature", schedule);
180 7 return result;
181 }
182
183 ✗ void CoilCoolingLowTempRadiantConstFlow_Impl::resetCoolingLowControlTemperatureSchedule() {
184 ✗ bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CoolingLowControlTemperatureScheduleName, "");
185 ✗ OS_ASSERT(result);
186 ✗ }
187
188 1 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCondensationControlType(const std::string& condensationControlType) {
189 1 bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlType, condensationControlType);
190 1 return result;
191 }
192
193 1 void CoilCoolingLowTempRadiantConstFlow_Impl::resetCondensationControlType() {
194
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlType, "");
195
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
196 1 }
197
198 1 bool CoilCoolingLowTempRadiantConstFlow_Impl::setCondensationControlDewpointOffset(double condensationControlDewpointOffset) {
199 bool result =
200 1 setDouble(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlDewpointOffset, condensationControlDewpointOffset);
201
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
202 1 return result;
203 }
204
205 1 void CoilCoolingLowTempRadiantConstFlow_Impl::resetCondensationControlDewpointOffset() {
206
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlDewpointOffset, "");
207
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
208 1 }
209
210 ✗ std::vector<std::string> CoilCoolingLowTempRadiantConstFlow_Impl::condensationControlTypeValues() const {
211 ✗ return CoilCoolingLowTempRadiantConstFlow::condensationControlTypeValues();
212 }
213
214 ✗ boost::optional<ModelObject> CoilCoolingLowTempRadiantConstFlow_Impl::coolingHighWaterTemperatureScheduleAsModelObject() const {
215 ✗ OptionalModelObject result;
216 ✗ OptionalSchedule intermediate = coolingHighWaterTemperatureSchedule();
217 ✗ if (intermediate) {
218 ✗ result = *intermediate;
219 }
220 ✗ return result;
221 ✗ }
222
223 ✗ boost::optional<ModelObject> CoilCoolingLowTempRadiantConstFlow_Impl::coolingLowWaterTemperatureScheduleAsModelObject() const {
224 ✗ OptionalModelObject result;
225 ✗ OptionalSchedule intermediate = coolingLowWaterTemperatureSchedule();
226 ✗ if (intermediate) {
227 ✗ result = *intermediate;
228 }
229 ✗ return result;
230 ✗ }
231
232 ✗ boost::optional<ModelObject> CoilCoolingLowTempRadiantConstFlow_Impl::coolingHighControlTemperatureScheduleAsModelObject() const {
233 ✗ OptionalModelObject result;
234 ✗ OptionalSchedule intermediate = coolingHighControlTemperatureSchedule();
235 ✗ if (intermediate) {
236 ✗ result = *intermediate;
237 }
238 ✗ return result;
239 ✗ }
240
241 ✗ boost::optional<ModelObject> CoilCoolingLowTempRadiantConstFlow_Impl::coolingLowControlTemperatureScheduleAsModelObject() const {
242 ✗ OptionalModelObject result;
243 ✗ OptionalSchedule intermediate = coolingLowControlTemperatureSchedule();
244 ✗ if (intermediate) {
245 ✗ result = *intermediate;
246 }
247 ✗ return result;
248 ✗ }
249
250 bool
251 ✗ CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingHighWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
252 ✗ if (modelObject) {
253 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
254 ✗ if (intermediate) {
255 ✗ Schedule schedule(*intermediate);
256 ✗ return setCoolingHighWaterTemperatureSchedule(schedule);
257 ✗ } else {
258 ✗ return false;
259 }
260 ✗ } else {
261 ✗ resetCoolingHighWaterTemperatureSchedule();
262 }
263 ✗ return true;
264 }
265
266 bool
267 ✗ CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingLowWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
268 ✗ if (modelObject) {
269 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
270 ✗ if (intermediate) {
271 ✗ Schedule schedule(*intermediate);
272 ✗ return setCoolingLowWaterTemperatureSchedule(schedule);
273 ✗ } else {
274 ✗ return false;
275 }
276 ✗ } else {
277 ✗ resetCoolingLowWaterTemperatureSchedule();
278 }
279 ✗ return true;
280 }
281
282 ✗ bool CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingHighControlTemperatureScheduleAsModelObject(
283 const boost::optional<ModelObject>& modelObject) {
284 ✗ if (modelObject) {
285 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
286 ✗ if (intermediate) {
287 ✗ Schedule schedule(*intermediate);
288 ✗ return setCoolingHighControlTemperatureSchedule(schedule);
289 ✗ } else {
290 ✗ return false;
291 }
292 ✗ } else {
293 ✗ resetCoolingHighControlTemperatureSchedule();
294 }
295 ✗ return true;
296 }
297
298 bool
299 ✗ CoilCoolingLowTempRadiantConstFlow_Impl::setCoolingLowControlTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
300 ✗ if (modelObject) {
301 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
302 ✗ if (intermediate) {
303 ✗ Schedule schedule(*intermediate);
304 ✗ return setCoolingLowControlTemperatureSchedule(schedule);
305 ✗ } else {
306 ✗ return false;
307 }
308 ✗ } else {
309 ✗ resetCoolingLowControlTemperatureSchedule();
310 }
311 ✗ return true;
312 }
313
314 5 bool CoilCoolingLowTempRadiantConstFlow_Impl::addToNode(Node& node) {
315
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
10 if (boost::optional<PlantLoop> plant = node.plantLoop()) {
316
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
6 if (plant->demandComponent(node.handle())) {
317
1/1
✓ Branch 1 taken 2 times.
2 return StraightComponent_Impl::addToNode(node);
318 }
319 5 }
320
321 3 return false;
322 }
323
324 ✗ ComponentType CoilCoolingLowTempRadiantConstFlow_Impl::componentType() const {
325 ✗ return ComponentType::Cooling;
326 }
327
328 ✗ std::vector<FuelType> CoilCoolingLowTempRadiantConstFlow_Impl::coolingFuelTypes() const {
329 ✗ if (auto p_ = plantLoop()) {
330 ✗ return p_->coolingFuelTypes();
331 ✗ }
332 ✗ return {};
333 }
334
335 ✗ std::vector<FuelType> CoilCoolingLowTempRadiantConstFlow_Impl::heatingFuelTypes() const {
336 ✗ return {};
337 }
338
339 ✗ std::vector<AppGFuelType> CoilCoolingLowTempRadiantConstFlow_Impl::appGHeatingFuelTypes() const {
340 ✗ return {};
341 }
342
343 } // namespace detail
344
345 6 CoilCoolingLowTempRadiantConstFlow::CoilCoolingLowTempRadiantConstFlow(const Model& model, Schedule& coolingHighWaterTemperatureSchedule,
346 Schedule& coolingLowWaterTemperatureSchedule,
347 Schedule& coolingHighControlTemperatureSchedule,
348 6 Schedule& coolingLowControlTemperatureSchedule)
349 6 : StraightComponent(CoilCoolingLowTempRadiantConstFlow::iddObjectType(), model) {
350
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
6 OS_ASSERT(getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>());
351
352
1/1
✓ Branch 1 taken 6 times.
6 bool ok = setCoolingHighWaterTemperatureSchedule(coolingHighWaterTemperatureSchedule);
353
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
354
355
1/1
✓ Branch 1 taken 6 times.
6 ok = setCoolingLowWaterTemperatureSchedule(coolingLowWaterTemperatureSchedule);
356
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
357
358
1/1
✓ Branch 1 taken 6 times.
6 ok = setCoolingHighControlTemperatureSchedule(coolingHighControlTemperatureSchedule);
359
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
360
361
1/1
✓ Branch 1 taken 6 times.
6 ok = setCoolingLowControlTemperatureSchedule(coolingLowControlTemperatureSchedule);
362
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
363 6 }
364
365 7742 IddObjectType CoilCoolingLowTempRadiantConstFlow::iddObjectType() {
366
1/1
✓ Branch 1 taken 7742 times.
7742 return {IddObjectType::OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlow};
367 }
368
369 ✗ std::vector<std::string> CoilCoolingLowTempRadiantConstFlow::condensationControlTypeValues() {
370 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
371 ✗ OS_Coil_Cooling_LowTemperatureRadiant_ConstantFlowFields::CondensationControlType);
372 }
373
374 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow::coolingHighWaterTemperatureSchedule() const {
375
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->coolingHighWaterTemperatureSchedule();
376 }
377
378 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow::coolingLowWaterTemperatureSchedule() const {
379
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->coolingLowWaterTemperatureSchedule();
380 }
381
382 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow::coolingHighControlTemperatureSchedule() const {
383
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->coolingHighControlTemperatureSchedule();
384 }
385
386 2 boost::optional<Schedule> CoilCoolingLowTempRadiantConstFlow::coolingLowControlTemperatureSchedule() const {
387
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->coolingLowControlTemperatureSchedule();
388 }
389
390 2 std::string CoilCoolingLowTempRadiantConstFlow::condensationControlType() const {
391
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->condensationControlType();
392 }
393
394 2 bool CoilCoolingLowTempRadiantConstFlow::isCondensationControlTypeDefaulted() const {
395
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->isCondensationControlTypeDefaulted();
396 }
397
398 2 double CoilCoolingLowTempRadiantConstFlow::condensationControlDewpointOffset() const {
399
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->condensationControlDewpointOffset();
400 }
401
402 2 bool CoilCoolingLowTempRadiantConstFlow::isCondensationControlDewpointOffsetDefaulted() const {
403
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->isCondensationControlDewpointOffsetDefaulted();
404 }
405
406 7 bool CoilCoolingLowTempRadiantConstFlow::setCoolingHighWaterTemperatureSchedule(Schedule& schedule) {
407
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCoolingHighWaterTemperatureSchedule(schedule);
408 }
409
410 ✗ void CoilCoolingLowTempRadiantConstFlow::resetCoolingHighWaterTemperatureSchedule() {
411 ✗ getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCoolingHighWaterTemperatureSchedule();
412 ✗ }
413
414 7 bool CoilCoolingLowTempRadiantConstFlow::setCoolingLowWaterTemperatureSchedule(Schedule& schedule) {
415
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCoolingLowWaterTemperatureSchedule(schedule);
416 }
417
418 ✗ void CoilCoolingLowTempRadiantConstFlow::resetCoolingLowWaterTemperatureSchedule() {
419 ✗ getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCoolingLowWaterTemperatureSchedule();
420 ✗ }
421
422 7 bool CoilCoolingLowTempRadiantConstFlow::setCoolingHighControlTemperatureSchedule(Schedule& schedule) {
423
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCoolingHighControlTemperatureSchedule(schedule);
424 }
425
426 ✗ void CoilCoolingLowTempRadiantConstFlow::resetCoolingHighControlTemperatureSchedule() {
427 ✗ getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCoolingHighControlTemperatureSchedule();
428 ✗ }
429
430 7 bool CoilCoolingLowTempRadiantConstFlow::setCoolingLowControlTemperatureSchedule(Schedule& schedule) {
431
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCoolingLowControlTemperatureSchedule(schedule);
432 }
433
434 ✗ void CoilCoolingLowTempRadiantConstFlow::resetCoolingLowControlTemperatureSchedule() {
435 ✗ getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCoolingLowControlTemperatureSchedule();
436 ✗ }
437
438 1 bool CoilCoolingLowTempRadiantConstFlow::setCondensationControlType(const std::string& condensationControlType) {
439
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCondensationControlType(condensationControlType);
440 }
441
442 1 void CoilCoolingLowTempRadiantConstFlow::resetCondensationControlType() {
443
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCondensationControlType();
444 1 }
445
446 1 bool CoilCoolingLowTempRadiantConstFlow::setCondensationControlDewpointOffset(double condensationControlDewpointOffset) {
447
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->setCondensationControlDewpointOffset(condensationControlDewpointOffset);
448 }
449
450 1 void CoilCoolingLowTempRadiantConstFlow::resetCondensationControlDewpointOffset() {
451
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilCoolingLowTempRadiantConstFlow_Impl>()->resetCondensationControlDewpointOffset();
452 1 }
453
454 /// @cond
455 2 CoilCoolingLowTempRadiantConstFlow::CoilCoolingLowTempRadiantConstFlow(std::shared_ptr<detail::CoilCoolingLowTempRadiantConstFlow_Impl> impl)
456
1/1
✓ Branch 3 taken 2 times.
2 : StraightComponent(std::move(impl)) {}
457 /// @endcond
458
459 } // namespace model
460 } // namespace openstudio
461