| 278 | } |
| 279 | |
| 280 | Schedule RefrigerationWalkIn_Impl::defrostSchedule() const { |
| 281 | boost::optional<Schedule> value = optionalDefrostSchedule(); |
| 282 | if (!value) { |
| 283 | LOG_AND_THROW(briefDescription() << " does not have an Defrost Schedule attached."); |
| 284 | } |
| 285 | return value.get(); |
| 286 | } |
| 287 | |
| 288 | boost::optional<Schedule> RefrigerationWalkIn_Impl::defrostDripDownSchedule() const { |
| 289 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_WalkInFields::DefrostDripDownScheduleName); |