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

Method modules

src/model/CentralHeatPumpSystem.cpp:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 std::vector<CentralHeatPumpSystemModule> CentralHeatPumpSystem_Impl::modules() const {
224 std::vector<CentralHeatPumpSystemModule> result;
225 auto const modelObjectList = chillerHeaterModuleList();
226 if (modelObjectList) {
227 auto const modelObjects = modelObjectList->modelObjects();
228
229 for (const auto& elem : modelObjects) {
230 auto const modelObject = elem.optionalCast<CentralHeatPumpSystemModule>();
231 if (modelObject) {
232 result.push_back(modelObject.get());
233 }
234 }
235 }
236 return result;
237 }
238
239 /** Convenience Function to return the Cooling Loop **/
240 boost::optional<PlantLoop> CentralHeatPumpSystem_Impl::coolingPlantLoop() const {

Callers 7

cloneMethod · 0.95
centralHeatPumpSystemMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 3

modelObjectsMethod · 0.45
push_backMethod · 0.45
getMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64