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

Method setSlatAngleSchedule

src/model/ShadingControl.cpp:334–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 }
333
334 bool ShadingControl_Impl::setSlatAngleSchedule(const Schedule& slatAngleSchedule) {
335 bool result = false;
336 std::string shadingType = this->shadingType();
337 if (ShadingControl_Impl::isTypeValueAllowingSlatAngleControl(shadingType)) {
338 result = setPointer(OS_ShadingControlFields::SlatAngleScheduleName, slatAngleSchedule.handle());
339 if (result) {
340 bool test = setString(OS_ShadingControlFields::TypeofSlatAngleControlforBlinds, "ScheduledSlatAngle");
341 OS_ASSERT(test);
342 }
343 } else {
344 LOG(Warn, briefDescription() << " has a Shading Type '" << shadingType << "' which does not allow a Slat Angle Schedule");
345 }
346 return result;
347 }
348
349 void ShadingControl_Impl::resetSlatAngleSchedule() {
350 bool result = false;

Callers 2

TEST_FFunction · 0.80

Calls 2

shadingTypeMethod · 0.95
handleMethod · 0.45

Tested by 1

TEST_FFunction · 0.64