| 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); |