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

Method airLoopHVAC

src/model/HVACComponent.cpp:56–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 boost::optional<AirLoopHVAC> HVACComponent_Impl::airLoopHVAC() const {
57 if (m_airLoopHVAC) {
58 return m_airLoopHVAC;
59 } else {
60 AirLoopHVACVector airLoops = this->model().getConcreteModelObjects<AirLoopHVAC>();
61
62 for (auto& airLoop : airLoops) {
63 if (airLoop.component(this->handle())) {
64 m_airLoopHVAC = airLoop;
65 return airLoop;
66 }
67 if (OptionalAirLoopHVACOutdoorAirSystem oaSystem = airLoop.airLoopHVACOutdoorAirSystem()) {
68 if (oaSystem->component(this->handle())) {
69 m_airLoopHVAC = airLoop;
70 return airLoop;
71 }
72 }
73 }
74 }
75
76 return boost::none;
77 }
78
79 boost::optional<AirLoopHVACOutdoorAirSystem> HVACComponent_Impl::airLoopHVACOutdoorAirSystem() const {
80 if (m_airLoopHVACOutdoorAirSystem) {

Callers 1

loopMethod · 0.95

Calls 4

modelMethod · 0.45
componentMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected