| 176 | } |
| 177 | |
| 178 | std::vector<RefrigerationWalkInZoneBoundary> RefrigerationWalkIn_Impl::zoneBoundaries() const { |
| 179 | std::vector<RefrigerationWalkInZoneBoundary> result; |
| 180 | |
| 181 | std::vector<IdfExtensibleGroup> groups = extensibleGroups(); |
| 182 | |
| 183 | for (const auto& group : groups) { |
| 184 | if (boost::optional<WorkspaceObject> wo = |
| 185 | group.cast<WorkspaceExtensibleGroup>().getTarget(OS_Refrigeration_WalkInExtensibleFields::WalkInZoneBoundary)) { |
| 186 | if (boost::optional<RefrigerationWalkInZoneBoundary> refrigerationWalkInZoneBoundary = |
| 187 | wo->optionalCast<RefrigerationWalkInZoneBoundary>()) { |
| 188 | if (refrigerationWalkInZoneBoundary) { |
| 189 | result.push_back(refrigerationWalkInZoneBoundary.get()); |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | return result; |
| 196 | } |
| 197 | |
| 198 | boost::optional<Schedule> RefrigerationWalkIn_Impl::availabilitySchedule() const { |
| 199 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_WalkInFields::AvailabilityScheduleName); |