Fan:OnOff can not be added to an AirLoopHVAC. It can only be contained within another HVAC Component, such as Unitary, ZoneHVAC, etc.
| 311 | // Fan:OnOff can not be added to an AirLoopHVAC. |
| 312 | // It can only be contained within another HVAC Component, such as Unitary, ZoneHVAC, etc. |
| 313 | bool FanOnOff_Impl::addToNode(Node& node) { |
| 314 | if (node.loop()) { |
| 315 | return false; |
| 316 | } else if (node.airLoopHVACOutdoorAirSystem()) { |
| 317 | return false; |
| 318 | } else { |
| 319 | return StraightComponent_Impl::addToNode(node); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | boost::optional<HVACComponent> FanOnOff_Impl::containingHVACComponent() const { |
| 324 | // Process all types that might contain a FanOnOff object. |
nothing calls this directly
no test coverage detected