| 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>()) { |
nothing calls this directly
no test coverage detected