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

Method setSourceSpace

src/model/ZoneMixing.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 bool ZoneMixing_Impl::setSourceSpace(const Space& space) {
164 auto receiving = this->zoneOrSpace();
165 // source zone cannot be the same as this zone
166 if (space.handle() == receiving.handle()) {
167 LOG(Warn, "For " << briefDescription() << ", Source Space cannot be the same as the Receiving Space '" << space.nameString() << "'.");
168 return false;
169 }
170 if (receiving.iddObjectType() != IddObjectType::OS_Space) {
171 LOG(Warn, "For " << briefDescription() << ", Receiving is a Zone, so you cannot set Source as a Space.");
172 return false;
173 }
174
175 return setPointer(OS_ZoneMixingFields::SourceZoneorSpaceName, space.handle());
176 }
177
178 void ZoneMixing_Impl::resetSourceZoneOrSpace() {
179 bool result = setString(OS_ZoneMixingFields::SourceZoneorSpaceName, "");

Callers 3

combineSpacesMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 4

zoneOrSpaceMethod · 0.95
nameStringMethod · 0.80
handleMethod · 0.45
iddObjectTypeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64