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

Method isControlTypeValueAllowingSchedule

src/model/ShadingControl.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 bool ShadingControl_Impl::isControlTypeValueAllowingSchedule(const std::string& controlType) {
86 static constexpr std::array data{//"AlwaysOn",
87 //"AlwaysOff",
88 "OnIfScheduleAllows", "OnIfHighSolarOnWindow", "OnIfHighHorizontalSolar", "OnIfHighOutdoorAirTemperature",
89 "OnIfHighZoneAirTemperature", "OnIfHighZoneCooling",
90 //"OnIfHighGlare",
91 //"MeetDaylightIlluminanceSetpoint",
92 "OnNightIfLowOutdoorTempAndOffDay", "OnNightIfLowInsideTempAndOffDay", "OnNightIfHeatingAndOffDay",
93 "OnNightIfLowOutdoorTempAndOnDayIfCooling", "OnNightIfHeatingAndOnDayIfCooling",
94 "OffNightAndOnDayIfCoolingAndHighSolarOnWindow", "OnNightAndOnDayIfCoolingAndHighSolarOnWindow",
95 "OnIfHighOutdoorAirTempAndHighSolarOnWindow", "OnIfHighOutdoorAirTempAndHighHorizontalSolar",
96 "OnIfHighZoneAirTempAndHighSolarOnWindow", "OnIfHighZoneAirTempAndHighHorizontalSolar"};
97 return std::find_if(data.begin(), data.end(), [&controlType](auto c) { return openstudio::istringEqual(controlType, c); }) != data.end();
98 }
99
100 bool ShadingControl_Impl::isControlTypeValueRequiringSchedule(const std::string& controlType) {
101 return openstudio::istringEqual("OnIfScheduleAllows", controlType);

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