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

Method plantLoop

src/model/HVACComponent.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 boost::optional<PlantLoop> HVACComponent_Impl::plantLoop() const {
97 if (m_plantLoop) {
98 return m_plantLoop;
99 } else {
100 std::vector<PlantLoop> plantLoops = this->model().getConcreteModelObjects<PlantLoop>();
101
102 for (auto& plantLoop : plantLoops) {
103 if (plantLoop.component(this->handle())) {
104 m_plantLoop = plantLoop;
105 return plantLoop;
106 }
107 }
108 }
109
110 return boost::none;
111 }
112
113 bool HVACComponent_Impl::removeFromLoop(const HVACComponent& systemStartComponent, const HVACComponent& systemEndComponent,
114 unsigned componentInletPort, unsigned componentOutletPort) {

Callers 1

loopMethod · 0.95

Calls 3

modelMethod · 0.45
componentMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected