| 161 | } |
| 162 | |
| 163 | bool FanConstantVolume_Impl::addToNode(Node& node) { |
| 164 | auto oaSystem = node.airLoopHVACOutdoorAirSystem(); |
| 165 | auto airLoop = node.airLoopHVAC(); |
| 166 | |
| 167 | if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) { |
| 168 | if (StraightComponent_Impl::addToNode(node)) { |
| 169 | if (airLoop) { |
| 170 | SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get()); |
| 171 | } |
| 172 | return true; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | return false; |
| 177 | } |
| 178 | |
| 179 | std::vector<openstudio::IdfObject> FanConstantVolume_Impl::remove() { |
| 180 | return StraightComponent_Impl::remove(); |
nothing calls this directly
no test coverage detected