MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / addToNode

Method addToNode

src/model/FanSystemModel.cpp:306–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305
306 bool FanSystemModel_Impl::addToNode(Node& node) {
307 auto oaSystem = node.airLoopHVACOutdoorAirSystem();
308 auto airLoop = node.airLoopHVAC();
309
310 if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) {
311 if (StraightComponent_Impl::addToNode(node)) {
312 if (airLoop) {
313 SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get());
314 }
315 return true;
316 }
317 }
318
319 return false;
320 }
321
322 boost::optional<HVACComponent> FanSystemModel_Impl::containingHVACComponent() const {
323 auto t_handle = handle();

Callers

nothing calls this directly

Calls 6

supplyComponentMethod · 0.80
airLoopHVACMethod · 0.45
handleMethod · 0.45
componentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected