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

Method setSetpoint

src/model/ShadingControl.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 bool ShadingControl_Impl::setSetpoint(double setpoint) {
283 bool result = false;
284 std::string shadingControlType = this->shadingControlType();
285 if (ShadingControl_Impl::isControlTypeValueNeedingSetpoint1(shadingControlType)) {
286 result = setDouble(OS_ShadingControlFields::Setpoint, setpoint);
287 } else {
288 LOG(Warn, briefDescription() << " has a Shading Control Type '" << shadingControlType << "' which does not require a Setpoint");
289 }
290 return result;
291 }
292
293 void ShadingControl_Impl::resetSetpoint() {
294 std::string shadingControlType = this->shadingControlType();

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

shadingControlTypeMethod · 0.95

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64