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

Method isControlTypeValueNeedingSetpoint1

src/model/ShadingControl.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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",

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 4

istringEqualFunction · 0.85
beginMethod · 0.80
endMethod · 0.45
shadingControlTypeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64