| 352 | } |
| 353 | |
| 354 | bool FanComponentModel_Impl::addToNode(Node& node) { |
| 355 | auto oaSystem = node.airLoopHVACOutdoorAirSystem(); |
| 356 | auto airLoop = node.airLoopHVAC(); |
| 357 | |
| 358 | if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) { |
| 359 | if (StraightComponent_Impl::addToNode(node)) { |
| 360 | if (airLoop) { |
| 361 | SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get()); |
| 362 | } |
| 363 | return true; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | return false; |
| 368 | } |
| 369 | |
| 370 | boost::optional<HVACComponent> FanComponentModel_Impl::containingHVACComponent() const { |
| 371 | auto t_handle = handle(); |
nothing calls this directly
no test coverage detected