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

Method addSecondarySystemLoad

src/model/RefrigerationSystem.cpp:527–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525 }
526
527 bool RefrigerationSystem_Impl::addSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystem) {
528 // Enforce unicity
529 if (boost::optional<RefrigerationSystem> currentSystem = refrigerationSecondarySystem.system()) {
530 LOG(Warn, refrigerationSecondarySystem.briefDescription()
531 << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'.");
532 currentSystem->removeSecondarySystemLoad(refrigerationSecondarySystem);
533 }
534 boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList();
535 return addTemplate<RefrigerationSecondarySystem>(refrigerationSecondarySystem, modelObjectList);
536 }
537
538 void RefrigerationSystem_Impl::removeSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystem) {
539 boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList();

Callers 1

TEST_FFunction · 0.80

Calls 4

briefDescriptionMethod · 0.80
nameStringMethod · 0.80
systemMethod · 0.45

Tested by 1

TEST_FFunction · 0.64