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

Method setSchedule

src/model/ShadingControl.cpp:254–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 }
253
254 bool ShadingControl_Impl::setSchedule(const Schedule& schedule) {
255 bool result = false;
256 std::string shadingControlType = this->shadingControlType();
257 if (ShadingControl_Impl::isControlTypeValueAllowingSchedule(shadingControlType)) {
258 result = setPointer(OS_ShadingControlFields::ScheduleName, schedule.handle());
259 if (result) {
260 bool test = setString(OS_ShadingControlFields::ShadingControlIsScheduled, "Yes");
261 OS_ASSERT(test);
262 }
263 } else {
264 LOG(Warn, briefDescription() << " has a Shading Control Type '" << shadingControlType << "' which does not allow a Schedule");
265 }
266 return result;
267 }
268
269 void ShadingControl_Impl::resetSchedule() {
270 std::string shadingControlType = this->shadingControlType();

Callers

nothing calls this directly

Calls 2

shadingControlTypeMethod · 0.95
handleMethod · 0.45

Tested by

no test coverage detected