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

Method candidateIsCompatibleWithCurrentUse

src/model/ScheduleDay.cpp:431–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 }
430
431 bool ScheduleDay_Impl::candidateIsCompatibleWithCurrentUse(const ScheduleTypeLimits& candidate) const {
432 // currently only check ScheduleDay against Schedules
433 ScheduleVector users = getObject<ScheduleDay>().getModelObjectSources<Schedule>();
434 for (const Schedule& user : users) {
435 if (OptionalScheduleTypeLimits userLimits = user.scheduleTypeLimits()) {
436 if (!isCompatible(*userLimits, candidate)) {
437 return false;
438 }
439 }
440 }
441 return true;
442 }
443
444 bool ScheduleDay_Impl::okToResetScheduleTypeLimits() const {
445 for (const ModelObject& user : getObject<ScheduleDay>().getModelObjectSources<ModelObject>()) {

Callers

nothing calls this directly

Calls 2

isCompatibleFunction · 0.70
scheduleTypeLimitsMethod · 0.45

Tested by

no test coverage detected