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

Method okToResetScheduleTypeLimits

src/model/Schedule.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 bool Schedule_Impl::okToResetScheduleTypeLimits() const {
60 // ok to zero out if all users are schedules
61 auto copyOfThis = getObject<Schedule>();
62 for (const ModelObject& user : getObject<Schedule>().getModelObjectSources<ModelObject>()) {
63 if (!user.getScheduleTypeKeys(copyOfThis).empty()) {
64 return false;
65 }
66 }
67 return true;
68 }
69
70 } // namespace detail
71

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
getScheduleTypeKeysMethod · 0.45

Tested by

no test coverage detected