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

Method isControlTypeValueNeedingSetpoint2

src/model/ShadingControl.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 bool ShadingControl_Impl::isControlTypeValueNeedingSetpoint2(const std::string& controlType) {
80 static constexpr std::array data{"OnIfHighOutdoorAirTempAndHighSolarOnWindow", "OnIfHighOutdoorAirTempAndHighHorizontalSolar",
81 "OnIfHighZoneAirTempAndHighSolarOnWindow", "OnIfHighZoneAirTempAndHighHorizontalSolar"};
82 return std::find_if(data.begin(), data.end(), [&controlType](auto c) { return openstudio::istringEqual(controlType, c); }) != data.end();
83 }
84
85 bool ShadingControl_Impl::isControlTypeValueAllowingSchedule(const std::string& controlType) {
86 static constexpr std::array data{//"AlwaysOn",

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