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

Method controlledZone

src/model/ZoneControlHumidistat.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 boost::optional<ThermalZone> ZoneControlHumidistat_Impl::controlledZone() const {
97 Handle h = handle();
98 auto zones = model().getConcreteModelObjects<model::ThermalZone>();
99 for (const auto& zone : zones) {
100 if (auto humidistat = zone.zoneControlHumidistat()) {
101 if (humidistat->handle() == h) {
102 return zone;
103 }
104 }
105 }
106 return boost::none;
107 }
108
109 } // namespace detail
110

Calls 2

zoneControlHumidistatMethod · 0.80
handleMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36