| 62 | } |
| 63 | |
| 64 | bool ShadingControl_Impl::isControlTypeValueNeedingSetpoint1(const std::string& controlType) { |
| 65 | static constexpr std::array data{ |
| 66 | //"AlwaysOn", |
| 67 | //"AlwaysOff", |
| 68 | //"OnIfScheduleAllows", |
| 69 | "OnIfHighSolarOnWindow", "OnIfHighHorizontalSolar", "OnIfHighOutdoorAirTemperature", "OnIfHighZoneAirTemperature", "OnIfHighZoneCooling", |
| 70 | //"OnIfHighGlare", |
| 71 | //"MeetDaylightIlluminanceSetpoint", |
| 72 | "OnNightIfLowOutdoorTempAndOffDay", "OnNightIfLowInsideTempAndOffDay", "OnNightIfHeatingAndOffDay", |
| 73 | "OnNightIfLowOutdoorTempAndOnDayIfCooling", "OnNightIfHeatingAndOnDayIfCooling", "OffNightAndOnDayIfCoolingAndHighSolarOnWindow", |
| 74 | "OnNightAndOnDayIfCoolingAndHighSolarOnWindow", "OnIfHighOutdoorAirTempAndHighSolarOnWindow", "OnIfHighOutdoorAirTempAndHighHorizontalSolar", |
| 75 | "OnIfHighZoneAirTempAndHighSolarOnWindow", "OnIfHighZoneAirTempAndHighHorizontalSolar"}; |
| 76 | return std::find_if(data.begin(), data.end(), [&controlType](auto c) { return openstudio::istringEqual(controlType, c); }) != data.end(); |
| 77 | } |
| 78 | |
| 79 | bool ShadingControl_Impl::isControlTypeValueNeedingSetpoint2(const std::string& controlType) { |
| 80 | static constexpr std::array data{"OnIfHighOutdoorAirTempAndHighSolarOnWindow", "OnIfHighOutdoorAirTempAndHighHorizontalSolar", |