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

Method demandMixer

src/model/PlantLoop.cpp:726–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724 }
725
726 Mixer PlantLoop_Impl::demandMixer() const {
727 auto result = getObject<ModelObject>().getModelObjectTarget<Mixer>(OS_PlantLoopFields::DemandMixerName);
728 if (result) {
729 return result.get();
730 }
731 return demandComponents(IddObjectType::OS_Connector_Mixer).front().cast<Mixer>();
732 }
733
734 bool PlantLoop_Impl::setDemandMixer(Mixer const& mixer) {
735 auto result = setPointer(OS_PlantLoopFields::DemandMixerName, mixer.handle());

Callers 2

cloneMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected