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

Method setpoint

src/model/ShadingControl.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 boost::optional<double> ShadingControl_Impl::setpoint() const {
161 boost::optional<double> result = getDouble(OS_ShadingControlFields::Setpoint);
162 if (!result) {
163 std::string shadingControlType = this->shadingControlType();
164 if (istringEqual("OnIfHighSolarOnWindow", shadingControlType)) {
165 result = 27; // w/m^2
166 }
167 }
168 return result;
169 }
170
171 bool ShadingControl_Impl::isSetpointDefaulted() const {
172 return isEmpty(OS_ShadingControlFields::Setpoint);

Callers 4

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

shadingControlTypeMethod · 0.95
istringEqualFunction · 0.85

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64