GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 77.4% 205 / 0 / 265
Functions: 82.7% 67 / 0 / 81
Branches: 58.6% 112 / 0 / 191

src/model/HumidifierSteamGas.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 "HumidifierSteamGas.hpp"
7 #include "HumidifierSteamGas_Impl.hpp"
8
9 #include "Schedule.hpp"
10 #include "Schedule_Impl.hpp"
11 #include "ScheduleTypeLimits.hpp"
12 #include "ScheduleTypeRegistry.hpp"
13 #include "Curve.hpp"
14 #include "Curve_Impl.hpp"
15
16 #include "../utilities/core/Assert.hpp"
17 #include "../utilities/data/DataEnums.hpp"
18
19 #include <utilities/idd/OS_Humidifier_Steam_Gas_FieldEnums.hxx>
20 #include <utilities/idd/IddEnums.hxx>
21
22 namespace openstudio {
23 namespace model {
24
25 namespace detail {
26
27 6 HumidifierSteamGas_Impl::HumidifierSteamGas_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
28 6 : StraightComponent_Impl(idfObject, model, keepHandle) {
29
4/6
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 6 times.
✗ Branch 13 not taken.
6 OS_ASSERT(idfObject.iddObject().type() == HumidifierSteamGas::iddObjectType());
30 6 }
31
32 ✗ HumidifierSteamGas_Impl::HumidifierSteamGas_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
33 ✗ : StraightComponent_Impl(other, model, keepHandle) {
34 ✗ OS_ASSERT(other.iddObject().type() == HumidifierSteamGas::iddObjectType());
35 ✗ }
36
37 2 HumidifierSteamGas_Impl::HumidifierSteamGas_Impl(const HumidifierSteamGas_Impl& other, Model_Impl* model, bool keepHandle)
38 2 : StraightComponent_Impl(other, model, keepHandle) {}
39
40 ✗ const std::vector<std::string>& HumidifierSteamGas_Impl::outputVariableNames() const {
41 static const std::vector<std::string> result{
42 "Humidifier Water Volume Flow Rate",
43 "Humidifier Water Volume",
44 "Humidifier NaturalGas Use Thermal Efficiency",
45 "Humidifier NaturalGas Rate",
46 "Humidifier NaturalGas Energy",
47 "Humidifier Auxiliary Electricity Rate",
48 "Humidifier Auxiliary Electricity Energy",
49 "Humidifier Mains Water Volume"
50
51 // Water Storage Tank Name isn't implemented
52 // https://github.com/NREL/EnergyPlus/blob/a5b04d73ecfef706cda7d0543ccad31e7c27087a/src/EnergyPlus/Humidifiers.cc#L471
53 //"Humidifier Storage Tank Water Volume Flow Rate",
54 //"Humidifier Storage Tank Water Volume",
55 //"Humidifier Starved Storage Tank Water Volume Flow Rate",
56 //"Humidifier Starved Storage Tank Water Volume"
57 ✗ };
58 ✗ return result;
59 ✗ }
60
61 ✗ IddObjectType HumidifierSteamGas_Impl::iddObjectType() const {
62 ✗ return HumidifierSteamGas::iddObjectType();
63 }
64
65 ✗ std::vector<ScheduleTypeKey> HumidifierSteamGas_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
66 ✗ std::vector<ScheduleTypeKey> result;
67 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
68 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
69 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
70 ✗ if (std::find(b, e, OS_Humidifier_Steam_GasFields::AvailabilityScheduleName) != e) {
71 ✗ result.push_back(ScheduleTypeKey("HumidifierSteamGas", "Availability"));
72 }
73 ✗ return result;
74 ✗ }
75
76 27 unsigned HumidifierSteamGas_Impl::inletPort() const {
77 27 return OS_Humidifier_Steam_GasFields::AirInletNodeName;
78 }
79
80 35 unsigned HumidifierSteamGas_Impl::outletPort() const {
81 35 return OS_Humidifier_Steam_GasFields::AirOutletNodeName;
82 }
83
84 3 boost::optional<Schedule> HumidifierSteamGas_Impl::availabilitySchedule() const {
85
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Humidifier_Steam_GasFields::AvailabilityScheduleName);
86 }
87
88 3 boost::optional<double> HumidifierSteamGas_Impl::ratedCapacity() const {
89 3 return getDouble(OS_Humidifier_Steam_GasFields::RatedCapacity, true);
90 }
91
92 3 bool HumidifierSteamGas_Impl::isRatedCapacityAutosized() const {
93 3 bool result = false;
94
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Humidifier_Steam_GasFields::RatedCapacity, true);
95
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (value) {
96
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 result = openstudio::istringEqual(value.get(), "autosize");
97 }
98 3 return result;
99 3 }
100
101 4 boost::optional<double> HumidifierSteamGas_Impl::ratedGasUseRate() const {
102 4 return getDouble(OS_Humidifier_Steam_GasFields::RatedGasUseRate, true);
103 }
104
105 3 bool HumidifierSteamGas_Impl::isRatedGasUseRateAutosized() const {
106 3 bool result = false;
107
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Humidifier_Steam_GasFields::RatedGasUseRate, true);
108
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (value) {
109
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 result = openstudio::istringEqual(value.get(), "autosize");
110 }
111 3 return result;
112 3 }
113
114 3 double HumidifierSteamGas_Impl::thermalEfficiency() const {
115
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Humidifier_Steam_GasFields::ThermalEfficiency, true);
116
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
117
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
118 }
119
120 3 bool HumidifierSteamGas_Impl::isThermalEfficiencyDefaulted() const {
121 3 return isEmpty(OS_Humidifier_Steam_GasFields::ThermalEfficiency);
122 }
123
124 3 boost::optional<Curve> HumidifierSteamGas_Impl::thermalEfficiencyModifierCurve() const {
125
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Humidifier_Steam_GasFields::ThermalEfficiencyModifierCurveName);
126 }
127
128 3 boost::optional<double> HumidifierSteamGas_Impl::ratedFanPower() const {
129 3 return getDouble(OS_Humidifier_Steam_GasFields::RatedFanPower, true);
130 }
131
132 3 double HumidifierSteamGas_Impl::auxiliaryElectricPower() const {
133
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Humidifier_Steam_GasFields::AuxiliaryElectricPower, true);
134
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
135
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
136 }
137
138 3 bool HumidifierSteamGas_Impl::isAuxiliaryElectricPowerDefaulted() const {
139 3 return isEmpty(OS_Humidifier_Steam_GasFields::AuxiliaryElectricPower);
140 }
141
142 // boost::optional<WaterStorageTank> HumidifierSteamGas_Impl::waterStorageTank() const {
143 // return getObject<ModelObject>().getModelObjectTarget<WaterStorageTank>(OS_Humidifier_Steam_GasFields::WaterStorageTankName);
144 // }
145
146 3 std::string HumidifierSteamGas_Impl::inletWaterTemperatureOption() const {
147
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Humidifier_Steam_GasFields::InletWaterTemperatureOption, true);
148
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
149
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
150 3 }
151
152 3 bool HumidifierSteamGas_Impl::isInletWaterTemperatureOptionDefaulted() const {
153 3 return isEmpty(OS_Humidifier_Steam_GasFields::InletWaterTemperatureOption);
154 }
155
156 1 bool HumidifierSteamGas_Impl::setAvailabilitySchedule(Schedule& schedule) {
157
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_Humidifier_Steam_GasFields::AvailabilityScheduleName, "HumidifierSteamGas", "Availability", schedule);
158 1 return result;
159 }
160
161 1 void HumidifierSteamGas_Impl::resetAvailabilitySchedule() {
162
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::AvailabilityScheduleName, "");
163
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
164 1 }
165
166 1 bool HumidifierSteamGas_Impl::setRatedCapacity(boost::optional<double> ratedCapacity) {
167 1 bool result(false);
168
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (ratedCapacity) {
169 1 result = setDouble(OS_Humidifier_Steam_GasFields::RatedCapacity, ratedCapacity.get());
170 }
171 1 return result;
172 }
173
174 7 void HumidifierSteamGas_Impl::autosizeRatedCapacity() {
175
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_Humidifier_Steam_GasFields::RatedCapacity, "autosize");
176
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
177 7 }
178
179 6 bool HumidifierSteamGas_Impl::setRatedGasUseRate(boost::optional<double> ratedGasUseRate) {
180 6 bool result(false);
181
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (ratedGasUseRate) {
182 6 result = setDouble(OS_Humidifier_Steam_GasFields::RatedGasUseRate, ratedGasUseRate.get());
183 } else {
184 ✗ resetRatedGasUseRate();
185 ✗ result = true;
186 }
187 6 return result;
188 }
189
190 1 void HumidifierSteamGas_Impl::resetRatedGasUseRate() {
191
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::RatedGasUseRate, "");
192
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
193 1 }
194
195 1 void HumidifierSteamGas_Impl::autosizeRatedGasUseRate() {
196
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::RatedGasUseRate, "autosize");
197
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
198 1 }
199
200 1 bool HumidifierSteamGas_Impl::setThermalEfficiency(boost::optional<double> thermalEfficiency) {
201 1 bool result(false);
202
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (thermalEfficiency) {
203 1 result = setDouble(OS_Humidifier_Steam_GasFields::ThermalEfficiency, thermalEfficiency.get());
204 } else {
205 ✗ resetThermalEfficiency();
206 ✗ result = true;
207 }
208 1 return result;
209 }
210
211 1 void HumidifierSteamGas_Impl::resetThermalEfficiency() {
212
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::ThermalEfficiency, "");
213
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
214 1 }
215
216 1 bool HumidifierSteamGas_Impl::setThermalEfficiencyModifierCurve(const boost::optional<Curve>& curve) {
217 1 bool result(false);
218
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (curve) {
219
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 result = setPointer(OS_Humidifier_Steam_GasFields::ThermalEfficiencyModifierCurveName, curve.get().handle());
220 } else {
221 ✗ resetThermalEfficiencyModifierCurve();
222 ✗ result = true;
223 }
224 1 return result;
225 }
226
227 1 void HumidifierSteamGas_Impl::resetThermalEfficiencyModifierCurve() {
228
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::ThermalEfficiencyModifierCurveName, "");
229
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
230 1 }
231
232 1 bool HumidifierSteamGas_Impl::setRatedFanPower(boost::optional<double> ratedFanPower) {
233 1 bool result(false);
234
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (ratedFanPower) {
235 1 result = setDouble(OS_Humidifier_Steam_GasFields::RatedFanPower, ratedFanPower.get());
236 } else {
237 ✗ resetRatedFanPower();
238 ✗ result = true;
239 }
240 1 return result;
241 }
242
243 1 void HumidifierSteamGas_Impl::resetRatedFanPower() {
244
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::RatedFanPower, "");
245
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
246 1 }
247
248 1 bool HumidifierSteamGas_Impl::setAuxiliaryElectricPower(boost::optional<double> auxiliaryElectricPower) {
249 1 bool result(false);
250
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (auxiliaryElectricPower) {
251 1 result = setDouble(OS_Humidifier_Steam_GasFields::AuxiliaryElectricPower, auxiliaryElectricPower.get());
252 } else {
253 ✗ resetAuxiliaryElectricPower();
254 ✗ result = true;
255 }
256 1 return result;
257 }
258
259 1 void HumidifierSteamGas_Impl::resetAuxiliaryElectricPower() {
260
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::AuxiliaryElectricPower, "");
261
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
262 1 }
263
264 // bool HumidifierSteamGas_Impl::setWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank) {
265 // bool result(false);
266 // if (waterStorageTank) {
267 // result = setPointer(OS_Humidifier_Steam_GasFields::WaterStorageTankName, waterStorageTank.get().handle());
268 // }
269 // else {
270 // resetWaterStorageTank();
271 // result = true;
272 // }
273 // return result;
274 // }
275
276 // void HumidifierSteamGas_Impl::resetWaterStorageTank() {
277 // bool result = setString(OS_Humidifier_Steam_GasFields::WaterStorageTankName, "");
278 // OS_ASSERT(result);
279 // }
280
281 1 bool HumidifierSteamGas_Impl::setInletWaterTemperatureOption(boost::optional<std::string> inletWaterTemperatureOption) {
282 1 bool result(false);
283
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (inletWaterTemperatureOption) {
284 1 result = setString(OS_Humidifier_Steam_GasFields::InletWaterTemperatureOption, inletWaterTemperatureOption.get());
285 } else {
286 ✗ resetInletWaterTemperatureOption();
287 ✗ result = true;
288 }
289 1 return result;
290 }
291
292 1 void HumidifierSteamGas_Impl::resetInletWaterTemperatureOption() {
293
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Humidifier_Steam_GasFields::InletWaterTemperatureOption, "");
294
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
295 1 }
296
297 ✗ boost::optional<double> HumidifierSteamGas_Impl::autosizedRatedCapacity() const {
298 ✗ return getAutosizedValue("Design Size Nominal Capacity Volume", "m3/s");
299 }
300
301 ✗ boost::optional<double> HumidifierSteamGas_Impl::autosizedRatedGasUseRate() const {
302 ✗ return getAutosizedValue("Design Size Rated Power", "W");
303 }
304
305 ✗ void HumidifierSteamGas_Impl::autosize() {
306 ✗ autosizeRatedCapacity();
307 ✗ autosizeRatedGasUseRate();
308 ✗ }
309
310 ✗ void HumidifierSteamGas_Impl::applySizingValues() {
311 ✗ boost::optional<double> val;
312 ✗ val = autosizedRatedCapacity();
313 ✗ if (val) {
314 ✗ setRatedCapacity(val.get());
315 }
316
317 ✗ val = autosizedRatedGasUseRate();
318 ✗ if (val) {
319 ✗ setRatedGasUseRate(val.get());
320 }
321 ✗ }
322
323 ✗ ComponentType HumidifierSteamGas_Impl::componentType() const {
324 ✗ return ComponentType::Heating; // TODO: is that right?
325 }
326
327 ✗ std::vector<FuelType> HumidifierSteamGas_Impl::coolingFuelTypes() const {
328 ✗ return {};
329 }
330
331 ✗ std::vector<FuelType> HumidifierSteamGas_Impl::heatingFuelTypes() const {
332 ✗ return {FuelType::Gas}; // TODO: is that right?
333 }
334
335 ✗ std::vector<AppGFuelType> HumidifierSteamGas_Impl::appGHeatingFuelTypes() const {
336 ✗ return {AppGFuelType::Fuel}; // TODO: is that right?
337 }
338
339 } // namespace detail
340
341 6 HumidifierSteamGas::HumidifierSteamGas(const Model& model) : StraightComponent(HumidifierSteamGas::iddObjectType(), model) {
342
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
6 OS_ASSERT(getImpl<detail::HumidifierSteamGas_Impl>());
343
1/1
✓ Branch 1 taken 6 times.
6 autosizeRatedCapacity();
344
1/1
✓ Branch 1 taken 6 times.
6 setRatedGasUseRate(104000); // JJR: per idf example in docs
345
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 setString(OS_Humidifier_Steam_GasFields::WaterStorageTankName, "");
346 6 }
347
348 7740 IddObjectType HumidifierSteamGas::iddObjectType() {
349
1/1
✓ Branch 1 taken 7740 times.
7740 return {IddObjectType::OS_Humidifier_Steam_Gas};
350 }
351
352 3 boost::optional<Schedule> HumidifierSteamGas::availabilitySchedule() const {
353
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->availabilitySchedule();
354 }
355
356 3 boost::optional<double> HumidifierSteamGas::ratedCapacity() const {
357
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->ratedCapacity();
358 }
359
360 3 bool HumidifierSteamGas::isRatedCapacityAutosized() const {
361
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->isRatedCapacityAutosized();
362 }
363
364 4 boost::optional<double> HumidifierSteamGas::ratedGasUseRate() const {
365
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HumidifierSteamGas_Impl>()->ratedGasUseRate();
366 }
367
368 3 bool HumidifierSteamGas::isRatedGasUseRateAutosized() const {
369
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->isRatedGasUseRateAutosized();
370 }
371
372 3 double HumidifierSteamGas::thermalEfficiency() const {
373
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->thermalEfficiency();
374 }
375
376 3 bool HumidifierSteamGas::isThermalEfficiencyDefaulted() const {
377
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->isThermalEfficiencyDefaulted();
378 }
379
380 3 boost::optional<Curve> HumidifierSteamGas::thermalEfficiencyModifierCurve() const {
381
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->thermalEfficiencyModifierCurve();
382 }
383
384 3 boost::optional<double> HumidifierSteamGas::ratedFanPower() const {
385
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->ratedFanPower();
386 }
387
388 3 double HumidifierSteamGas::auxiliaryElectricPower() const {
389
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->auxiliaryElectricPower();
390 }
391
392 3 bool HumidifierSteamGas::isAuxiliaryElectricPowerDefaulted() const {
393
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->isAuxiliaryElectricPowerDefaulted();
394 }
395
396 // boost::optional<WaterStorageTank> HumidifierSteamGas::waterStorageTank() const {
397 // return getImpl<detail::HumidifierSteamGas_Impl>()->waterStorageTank();
398 // }
399
400 3 std::string HumidifierSteamGas::inletWaterTemperatureOption() const {
401
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->inletWaterTemperatureOption();
402 }
403
404 3 bool HumidifierSteamGas::isInletWaterTemperatureOptionDefaulted() const {
405
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HumidifierSteamGas_Impl>()->isInletWaterTemperatureOptionDefaulted();
406 }
407
408 1 bool HumidifierSteamGas::setAvailabilitySchedule(Schedule& schedule) {
409
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setAvailabilitySchedule(schedule);
410 }
411
412 1 void HumidifierSteamGas::resetAvailabilitySchedule() {
413
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetAvailabilitySchedule();
414 1 }
415
416 1 bool HumidifierSteamGas::setRatedCapacity(double ratedCapacity) {
417
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setRatedCapacity(ratedCapacity);
418 }
419
420 7 void HumidifierSteamGas::autosizeRatedCapacity() {
421
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::HumidifierSteamGas_Impl>()->autosizeRatedCapacity();
422 7 }
423
424 6 bool HumidifierSteamGas::setRatedGasUseRate(double ratedGasUseRate) {
425
2/2
✓ Branch 3 taken 6 times.
✓ Branch 6 taken 6 times.
6 return getImpl<detail::HumidifierSteamGas_Impl>()->setRatedGasUseRate(ratedGasUseRate);
426 }
427
428 1 void HumidifierSteamGas::resetRatedGasUseRate() {
429
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetRatedGasUseRate();
430 1 }
431
432 1 void HumidifierSteamGas::autosizeRatedGasUseRate() {
433
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->autosizeRatedGasUseRate();
434 1 }
435
436 1 bool HumidifierSteamGas::setThermalEfficiency(double thermalEfficiency) {
437
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setThermalEfficiency(thermalEfficiency);
438 }
439
440 1 void HumidifierSteamGas::resetThermalEfficiency() {
441
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetThermalEfficiency();
442 1 }
443
444 1 bool HumidifierSteamGas::setThermalEfficiencyModifierCurve(const Curve& curve) {
445
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setThermalEfficiencyModifierCurve(curve);
446 }
447
448 1 void HumidifierSteamGas::resetThermalEfficiencyModifierCurve() {
449
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetThermalEfficiencyModifierCurve();
450 1 }
451
452 1 bool HumidifierSteamGas::setRatedFanPower(double ratedFanPower) {
453
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setRatedFanPower(ratedFanPower);
454 }
455
456 1 void HumidifierSteamGas::resetRatedFanPower() {
457
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetRatedFanPower();
458 1 }
459
460 1 bool HumidifierSteamGas::setAuxiliaryElectricPower(double auxiliaryElectricPower) {
461
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setAuxiliaryElectricPower(auxiliaryElectricPower);
462 }
463
464 1 void HumidifierSteamGas::resetAuxiliaryElectricPower() {
465
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetAuxiliaryElectricPower();
466 1 }
467
468 // bool HumidifierSteamGas::setWaterStorageTank(const WaterStorageTank& waterStorageTank) {
469 // return getImpl<detail::HumidifierSteamGas_Impl>()->setWaterStorageTank(waterStorageTank);
470 // }
471
472 // void HumidifierSteamGas::resetWaterStorageTank() {
473 // getImpl<detail::HumidifierSteamGas_Impl>()->resetWaterStorageTank();
474 // }
475
476 1 bool HumidifierSteamGas::setInletWaterTemperatureOption(const std::string& inletWaterTemperatureOption) {
477
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::HumidifierSteamGas_Impl>()->setInletWaterTemperatureOption(inletWaterTemperatureOption);
478 }
479
480 1 void HumidifierSteamGas::resetInletWaterTemperatureOption() {
481
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HumidifierSteamGas_Impl>()->resetInletWaterTemperatureOption();
482 1 }
483
484 /// @cond
485
1/1
✓ Branch 3 taken 1 time.
1 HumidifierSteamGas::HumidifierSteamGas(std::shared_ptr<detail::HumidifierSteamGas_Impl> impl) : StraightComponent(std::move(impl)) {}
486 /// @endcond
487
488 ✗ boost::optional<double> HumidifierSteamGas::autosizedRatedCapacity() const {
489 ✗ return getImpl<detail::HumidifierSteamGas_Impl>()->autosizedRatedCapacity();
490 }
491
492 ✗ boost::optional<double> HumidifierSteamGas::autosizedRatedGasUseRate() const {
493 ✗ return getImpl<detail::HumidifierSteamGas_Impl>()->autosizedRatedGasUseRate();
494 }
495
496 } // namespace model
497 } // namespace openstudio
498