src/model/CoilHeatingLowTempRadiantConstFlow.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 "CoilHeatingLowTempRadiantConstFlow.hpp" | ||
| 7 | #include "CoilHeatingLowTempRadiantConstFlow_Impl.hpp" | ||
| 8 | #include "ZoneHVACLowTempRadiantConstFlow.hpp" | ||
| 9 | #include "ZoneHVACLowTempRadiantConstFlow_Impl.hpp" | ||
| 10 | #include "Schedule.hpp" | ||
| 11 | #include "Schedule_Impl.hpp" | ||
| 12 | #include "ScheduleTypeLimits.hpp" | ||
| 13 | #include "ScheduleTypeRegistry.hpp" | ||
| 14 | #include "Model.hpp" | ||
| 15 | #include "Model_Impl.hpp" | ||
| 16 | #include "Node.hpp" | ||
| 17 | #include "Node_Impl.hpp" | ||
| 18 | #include "PlantLoop.hpp" | ||
| 19 | #include "PlantLoop_Impl.hpp" | ||
| 20 | |||
| 21 | #include <utilities/idd/IddFactory.hxx> | ||
| 22 | |||
| 23 | #include <utilities/idd/OS_Coil_Heating_LowTemperatureRadiant_ConstantFlow_FieldEnums.hxx> | ||
| 24 | #include <utilities/idd/IddEnums.hxx> | ||
| 25 | |||
| 26 | #include "../utilities/core/Assert.hpp" | ||
| 27 | #include "../utilities/data/DataEnums.hpp" | ||
| 28 | |||
| 29 | namespace openstudio { | ||
| 30 | namespace model { | ||
| 31 | |||
| 32 | namespace detail { | ||
| 33 | |||
| 34 | 7 | CoilHeatingLowTempRadiantConstFlow_Impl::CoilHeatingLowTempRadiantConstFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 35 | 7 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 36 |
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() == CoilHeatingLowTempRadiantConstFlow::iddObjectType()); |
| 37 | 7 | } | |
| 38 | |||
| 39 | 1 | CoilHeatingLowTempRadiantConstFlow_Impl::CoilHeatingLowTempRadiantConstFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 40 | 1 | Model_Impl* model, bool keepHandle) | |
| 41 | 1 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 42 |
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() == CoilHeatingLowTempRadiantConstFlow::iddObjectType()); |
| 43 | 1 | } | |
| 44 | |||
| 45 | 5 | CoilHeatingLowTempRadiantConstFlow_Impl::CoilHeatingLowTempRadiantConstFlow_Impl(const CoilHeatingLowTempRadiantConstFlow_Impl& other, | |
| 46 | 5 | Model_Impl* model, bool keepHandle) | |
| 47 | 5 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 48 | |||
| 49 | ✗ | const std::vector<std::string>& CoilHeatingLowTempRadiantConstFlow_Impl::outputVariableNames() const { | |
| 50 | ✗ | static const std::vector<std::string> result; | |
| 51 | ✗ | return result; | |
| 52 | } | ||
| 53 | |||
| 54 | ✗ | IddObjectType CoilHeatingLowTempRadiantConstFlow_Impl::iddObjectType() const { | |
| 55 | ✗ | return CoilHeatingLowTempRadiantConstFlow::iddObjectType(); | |
| 56 | } | ||
| 57 | |||
| 58 | ✗ | std::vector<ScheduleTypeKey> CoilHeatingLowTempRadiantConstFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 59 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 60 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 61 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 62 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 63 | ✗ | if (std::find(b, e, OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighWaterTemperatureScheduleName) != e) { | |
| 64 | ✗ | result.push_back(ScheduleTypeKey("CoilHeatingLowTempRadiantConstFlow", "Heating High Water Temperature")); | |
| 65 | } | ||
| 66 | ✗ | if (std::find(b, e, OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowWaterTemperatureScheduleName) != e) { | |
| 67 | ✗ | result.push_back(ScheduleTypeKey("CoilHeatingLowTempRadiantConstFlow", "Heating Low Water Temperature")); | |
| 68 | } | ||
| 69 | ✗ | if (std::find(b, e, OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighControlTemperatureScheduleName) != e) { | |
| 70 | ✗ | result.push_back(ScheduleTypeKey("CoilHeatingLowTempRadiantConstFlow", "Heating High Control Temperature")); | |
| 71 | } | ||
| 72 | ✗ | if (std::find(b, e, OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowControlTemperatureScheduleName) != e) { | |
| 73 | ✗ | result.push_back(ScheduleTypeKey("CoilHeatingLowTempRadiantConstFlow", "Heating Low Control Temperature")); | |
| 74 | } | ||
| 75 | ✗ | return result; | |
| 76 | ✗ | } | |
| 77 | |||
| 78 | 4 | unsigned CoilHeatingLowTempRadiantConstFlow_Impl::inletPort() const { | |
| 79 | 4 | return OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingWaterInletNodeName; | |
| 80 | } | ||
| 81 | |||
| 82 | 11 | unsigned CoilHeatingLowTempRadiantConstFlow_Impl::outletPort() const { | |
| 83 | 11 | return OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingWaterOutletNodeName; | |
| 84 | } | ||
| 85 | |||
| 86 | 1 | boost::optional<ZoneHVACComponent> CoilHeatingLowTempRadiantConstFlow_Impl::containingZoneHVACComponent() const { | |
| 87 | 1 | std::vector<ZoneHVACLowTempRadiantConstFlow> zoneHVACLowTempRadiantConstFlows; | |
| 88 | |||
| 89 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | zoneHVACLowTempRadiantConstFlows = this->model().getConcreteModelObjects<ZoneHVACLowTempRadiantConstFlow>(); |
| 90 | |||
| 91 |
1/2✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
|
1 | for (const auto& zoneHVACLowTempRadiantConstFlow : zoneHVACLowTempRadiantConstFlows) { |
| 92 |
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.heatingCoil()) { |
| 93 |
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()) { |
| 94 |
1/1✓ Branch 1 taken 1 time.
|
1 | return zoneHVACLowTempRadiantConstFlow; |
| 95 | } | ||
| 96 | 1 | } | |
| 97 | } | ||
| 98 | ✗ | return boost::none; | |
| 99 | 1 | } | |
| 100 | |||
| 101 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow_Impl::heatingHighWaterTemperatureSchedule() const { | |
| 102 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 103 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighWaterTemperatureScheduleName); |
| 104 | } | ||
| 105 | |||
| 106 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow_Impl::heatingLowWaterTemperatureSchedule() const { | |
| 107 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 108 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowWaterTemperatureScheduleName); |
| 109 | } | ||
| 110 | |||
| 111 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow_Impl::heatingHighControlTemperatureSchedule() const { | |
| 112 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 113 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighControlTemperatureScheduleName); |
| 114 | } | ||
| 115 | |||
| 116 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow_Impl::heatingLowControlTemperatureSchedule() const { | |
| 117 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 118 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowControlTemperatureScheduleName); |
| 119 | } | ||
| 120 | |||
| 121 | 7 | bool CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingHighWaterTemperatureSchedule(Schedule& schedule) { | |
| 122 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
28 | bool result = setSchedule(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighWaterTemperatureScheduleName, |
| 123 | "CoilHeatingLowTempRadiantConstFlow", "Heating High Water Temperature", schedule); | ||
| 124 | 7 | return result; | |
| 125 | } | ||
| 126 | |||
| 127 | ✗ | void CoilHeatingLowTempRadiantConstFlow_Impl::resetHeatingHighWaterTemperatureSchedule() { | |
| 128 | ✗ | bool result = setString(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighWaterTemperatureScheduleName, ""); | |
| 129 | ✗ | OS_ASSERT(result); | |
| 130 | ✗ | } | |
| 131 | |||
| 132 | 7 | bool CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingLowWaterTemperatureSchedule(Schedule& schedule) { | |
| 133 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
28 | bool result = setSchedule(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowWaterTemperatureScheduleName, |
| 134 | "CoilHeatingLowTempRadiantConstFlow", "Heating Low Water Temperature", schedule); | ||
| 135 | 7 | return result; | |
| 136 | } | ||
| 137 | |||
| 138 | ✗ | void CoilHeatingLowTempRadiantConstFlow_Impl::resetHeatingLowWaterTemperatureSchedule() { | |
| 139 | ✗ | bool result = setString(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowWaterTemperatureScheduleName, ""); | |
| 140 | ✗ | OS_ASSERT(result); | |
| 141 | ✗ | } | |
| 142 | |||
| 143 | 7 | bool CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingHighControlTemperatureSchedule(Schedule& schedule) { | |
| 144 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
28 | bool result = setSchedule(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighControlTemperatureScheduleName, |
| 145 | "CoilHeatingLowTempRadiantConstFlow", "Heating High Control Temperature", schedule); | ||
| 146 | 7 | return result; | |
| 147 | } | ||
| 148 | |||
| 149 | ✗ | void CoilHeatingLowTempRadiantConstFlow_Impl::resetHeatingHighControlTemperatureSchedule() { | |
| 150 | ✗ | bool result = setString(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingHighControlTemperatureScheduleName, ""); | |
| 151 | ✗ | OS_ASSERT(result); | |
| 152 | ✗ | } | |
| 153 | |||
| 154 | 7 | bool CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingLowControlTemperatureSchedule(Schedule& schedule) { | |
| 155 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
28 | bool result = setSchedule(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowControlTemperatureScheduleName, |
| 156 | "CoilHeatingLowTempRadiantConstFlow", "Heating Low Control Temperature", schedule); | ||
| 157 | 7 | return result; | |
| 158 | } | ||
| 159 | |||
| 160 | ✗ | void CoilHeatingLowTempRadiantConstFlow_Impl::resetHeatingLowControlTemperatureSchedule() { | |
| 161 | ✗ | bool result = setString(OS_Coil_Heating_LowTemperatureRadiant_ConstantFlowFields::HeatingLowControlTemperatureScheduleName, ""); | |
| 162 | ✗ | OS_ASSERT(result); | |
| 163 | ✗ | } | |
| 164 | |||
| 165 | ✗ | boost::optional<ModelObject> CoilHeatingLowTempRadiantConstFlow_Impl::heatingHighWaterTemperatureScheduleAsModelObject() const { | |
| 166 | ✗ | OptionalModelObject result; | |
| 167 | ✗ | OptionalSchedule intermediate = heatingHighWaterTemperatureSchedule(); | |
| 168 | ✗ | if (intermediate) { | |
| 169 | ✗ | result = *intermediate; | |
| 170 | } | ||
| 171 | ✗ | return result; | |
| 172 | ✗ | } | |
| 173 | |||
| 174 | ✗ | boost::optional<ModelObject> CoilHeatingLowTempRadiantConstFlow_Impl::heatingLowWaterTemperatureScheduleAsModelObject() const { | |
| 175 | ✗ | OptionalModelObject result; | |
| 176 | ✗ | OptionalSchedule intermediate = heatingLowWaterTemperatureSchedule(); | |
| 177 | ✗ | if (intermediate) { | |
| 178 | ✗ | result = *intermediate; | |
| 179 | } | ||
| 180 | ✗ | return result; | |
| 181 | ✗ | } | |
| 182 | |||
| 183 | ✗ | boost::optional<ModelObject> CoilHeatingLowTempRadiantConstFlow_Impl::heatingHighControlTemperatureScheduleAsModelObject() const { | |
| 184 | ✗ | OptionalModelObject result; | |
| 185 | ✗ | OptionalSchedule intermediate = heatingHighControlTemperatureSchedule(); | |
| 186 | ✗ | if (intermediate) { | |
| 187 | ✗ | result = *intermediate; | |
| 188 | } | ||
| 189 | ✗ | return result; | |
| 190 | ✗ | } | |
| 191 | |||
| 192 | ✗ | boost::optional<ModelObject> CoilHeatingLowTempRadiantConstFlow_Impl::heatingLowControlTemperatureScheduleAsModelObject() const { | |
| 193 | ✗ | OptionalModelObject result; | |
| 194 | ✗ | OptionalSchedule intermediate = heatingLowControlTemperatureSchedule(); | |
| 195 | ✗ | if (intermediate) { | |
| 196 | ✗ | result = *intermediate; | |
| 197 | } | ||
| 198 | ✗ | return result; | |
| 199 | ✗ | } | |
| 200 | |||
| 201 | bool | ||
| 202 | ✗ | CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingHighWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 203 | ✗ | if (modelObject) { | |
| 204 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 205 | ✗ | if (intermediate) { | |
| 206 | ✗ | Schedule schedule(*intermediate); | |
| 207 | ✗ | return setHeatingHighWaterTemperatureSchedule(schedule); | |
| 208 | ✗ | } else { | |
| 209 | ✗ | return false; | |
| 210 | } | ||
| 211 | ✗ | } else { | |
| 212 | ✗ | resetHeatingHighWaterTemperatureSchedule(); | |
| 213 | } | ||
| 214 | ✗ | return true; | |
| 215 | } | ||
| 216 | |||
| 217 | bool | ||
| 218 | ✗ | CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingLowWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 219 | ✗ | if (modelObject) { | |
| 220 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 221 | ✗ | if (intermediate) { | |
| 222 | ✗ | Schedule schedule(*intermediate); | |
| 223 | ✗ | return setHeatingLowWaterTemperatureSchedule(schedule); | |
| 224 | ✗ | } else { | |
| 225 | ✗ | return false; | |
| 226 | } | ||
| 227 | ✗ | } else { | |
| 228 | ✗ | resetHeatingLowWaterTemperatureSchedule(); | |
| 229 | } | ||
| 230 | ✗ | return true; | |
| 231 | } | ||
| 232 | |||
| 233 | ✗ | bool CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingHighControlTemperatureScheduleAsModelObject( | |
| 234 | const boost::optional<ModelObject>& modelObject) { | ||
| 235 | ✗ | if (modelObject) { | |
| 236 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 237 | ✗ | if (intermediate) { | |
| 238 | ✗ | Schedule schedule(*intermediate); | |
| 239 | ✗ | return setHeatingHighControlTemperatureSchedule(schedule); | |
| 240 | ✗ | } else { | |
| 241 | ✗ | return false; | |
| 242 | } | ||
| 243 | ✗ | } else { | |
| 244 | ✗ | resetHeatingHighControlTemperatureSchedule(); | |
| 245 | } | ||
| 246 | ✗ | return true; | |
| 247 | } | ||
| 248 | |||
| 249 | bool | ||
| 250 | ✗ | CoilHeatingLowTempRadiantConstFlow_Impl::setHeatingLowControlTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 251 | ✗ | if (modelObject) { | |
| 252 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 253 | ✗ | if (intermediate) { | |
| 254 | ✗ | Schedule schedule(*intermediate); | |
| 255 | ✗ | return setHeatingLowControlTemperatureSchedule(schedule); | |
| 256 | ✗ | } else { | |
| 257 | ✗ | return false; | |
| 258 | } | ||
| 259 | ✗ | } else { | |
| 260 | ✗ | resetHeatingLowControlTemperatureSchedule(); | |
| 261 | } | ||
| 262 | ✗ | return true; | |
| 263 | } | ||
| 264 | |||
| 265 | 5 | bool CoilHeatingLowTempRadiantConstFlow_Impl::addToNode(Node& node) { | |
| 266 |
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()) { |
| 267 |
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())) { |
| 268 |
1/1✓ Branch 1 taken 2 times.
|
2 | return StraightComponent_Impl::addToNode(node); |
| 269 | } | ||
| 270 | 5 | } | |
| 271 | |||
| 272 | 3 | return false; | |
| 273 | } | ||
| 274 | |||
| 275 | ✗ | ComponentType CoilHeatingLowTempRadiantConstFlow_Impl::componentType() const { | |
| 276 | ✗ | return ComponentType::Heating; | |
| 277 | } | ||
| 278 | |||
| 279 | ✗ | std::vector<FuelType> CoilHeatingLowTempRadiantConstFlow_Impl::coolingFuelTypes() const { | |
| 280 | ✗ | return {}; | |
| 281 | } | ||
| 282 | |||
| 283 | ✗ | std::vector<FuelType> CoilHeatingLowTempRadiantConstFlow_Impl::heatingFuelTypes() const { | |
| 284 | ✗ | if (auto p_ = plantLoop()) { | |
| 285 | ✗ | return p_->heatingFuelTypes(); | |
| 286 | ✗ | } | |
| 287 | ✗ | return {}; | |
| 288 | } | ||
| 289 | |||
| 290 | ✗ | std::vector<AppGFuelType> CoilHeatingLowTempRadiantConstFlow_Impl::appGHeatingFuelTypes() const { | |
| 291 | ✗ | if (auto p_ = plantLoop()) { | |
| 292 | ✗ | return p_->appGHeatingFuelTypes(); | |
| 293 | ✗ | } | |
| 294 | ✗ | return {}; | |
| 295 | } | ||
| 296 | |||
| 297 | } // namespace detail | ||
| 298 | |||
| 299 | 6 | CoilHeatingLowTempRadiantConstFlow::CoilHeatingLowTempRadiantConstFlow(const Model& model, Schedule& heatingHighWaterTemperatureSchedule, | |
| 300 | Schedule& heatingLowWaterTemperatureSchedule, | ||
| 301 | Schedule& heatingHighControlTemperatureSchedule, | ||
| 302 | 6 | Schedule& heatingLowControlTemperatureSchedule) | |
| 303 | 6 | : StraightComponent(CoilHeatingLowTempRadiantConstFlow::iddObjectType(), model) { | |
| 304 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()); |
| 305 |
1/1✓ Branch 1 taken 6 times.
|
6 | bool ok = setHeatingHighWaterTemperatureSchedule(heatingHighWaterTemperatureSchedule); |
| 306 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 307 | |||
| 308 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setHeatingLowWaterTemperatureSchedule(heatingLowWaterTemperatureSchedule); |
| 309 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 310 | |||
| 311 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setHeatingHighControlTemperatureSchedule(heatingHighControlTemperatureSchedule); |
| 312 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 313 | |||
| 314 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setHeatingLowControlTemperatureSchedule(heatingLowControlTemperatureSchedule); |
| 315 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 316 | 6 | } | |
| 317 | |||
| 318 | 7612 | IddObjectType CoilHeatingLowTempRadiantConstFlow::iddObjectType() { | |
| 319 |
1/1✓ Branch 1 taken 7612 times.
|
7612 | return {IddObjectType::OS_Coil_Heating_LowTemperatureRadiant_ConstantFlow}; |
| 320 | } | ||
| 321 | |||
| 322 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow::heatingHighWaterTemperatureSchedule() const { | |
| 323 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->heatingHighWaterTemperatureSchedule(); |
| 324 | } | ||
| 325 | |||
| 326 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow::heatingLowWaterTemperatureSchedule() const { | |
| 327 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->heatingLowWaterTemperatureSchedule(); |
| 328 | } | ||
| 329 | |||
| 330 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow::heatingHighControlTemperatureSchedule() const { | |
| 331 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->heatingHighControlTemperatureSchedule(); |
| 332 | } | ||
| 333 | |||
| 334 | 2 | boost::optional<Schedule> CoilHeatingLowTempRadiantConstFlow::heatingLowControlTemperatureSchedule() const { | |
| 335 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->heatingLowControlTemperatureSchedule(); |
| 336 | } | ||
| 337 | |||
| 338 | 7 | bool CoilHeatingLowTempRadiantConstFlow::setHeatingHighWaterTemperatureSchedule(Schedule& schedule) { | |
| 339 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->setHeatingHighWaterTemperatureSchedule(schedule); |
| 340 | } | ||
| 341 | |||
| 342 | ✗ | void CoilHeatingLowTempRadiantConstFlow::resetHeatingHighWaterTemperatureSchedule() { | |
| 343 | ✗ | getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->resetHeatingHighWaterTemperatureSchedule(); | |
| 344 | ✗ | } | |
| 345 | |||
| 346 | 7 | bool CoilHeatingLowTempRadiantConstFlow::setHeatingLowWaterTemperatureSchedule(Schedule& schedule) { | |
| 347 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->setHeatingLowWaterTemperatureSchedule(schedule); |
| 348 | } | ||
| 349 | |||
| 350 | ✗ | void CoilHeatingLowTempRadiantConstFlow::resetHeatingLowWaterTemperatureSchedule() { | |
| 351 | ✗ | getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->resetHeatingLowWaterTemperatureSchedule(); | |
| 352 | ✗ | } | |
| 353 | |||
| 354 | 7 | bool CoilHeatingLowTempRadiantConstFlow::setHeatingHighControlTemperatureSchedule(Schedule& schedule) { | |
| 355 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->setHeatingHighControlTemperatureSchedule(schedule); |
| 356 | } | ||
| 357 | |||
| 358 | ✗ | void CoilHeatingLowTempRadiantConstFlow::resetHeatingHighControlTemperatureSchedule() { | |
| 359 | ✗ | getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->resetHeatingHighControlTemperatureSchedule(); | |
| 360 | ✗ | } | |
| 361 | |||
| 362 | 7 | bool CoilHeatingLowTempRadiantConstFlow::setHeatingLowControlTemperatureSchedule(Schedule& schedule) { | |
| 363 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->setHeatingLowControlTemperatureSchedule(schedule); |
| 364 | } | ||
| 365 | |||
| 366 | ✗ | void CoilHeatingLowTempRadiantConstFlow::resetHeatingLowControlTemperatureSchedule() { | |
| 367 | ✗ | getImpl<detail::CoilHeatingLowTempRadiantConstFlow_Impl>()->resetHeatingLowControlTemperatureSchedule(); | |
| 368 | ✗ | } | |
| 369 | |||
| 370 | /// @cond | ||
| 371 | 2 | CoilHeatingLowTempRadiantConstFlow::CoilHeatingLowTempRadiantConstFlow(std::shared_ptr<detail::CoilHeatingLowTempRadiantConstFlow_Impl> impl) | |
| 372 |
1/1✓ Branch 3 taken 2 times.
|
2 | : StraightComponent(std::move(impl)) {} |
| 373 | /// @endcond | ||
| 374 | |||
| 375 | } // namespace model | ||
| 376 | } // namespace openstudio | ||
| 377 |