| 226 | } |
| 227 | |
| 228 | void DefaultScheduleSet_Impl::merge(const DefaultScheduleSet& other) { |
| 229 | boost::optional<Schedule> schedule; |
| 230 | |
| 231 | if (!(this->hoursofOperationSchedule())) { |
| 232 | schedule = other.hoursofOperationSchedule(); |
| 233 | if (schedule) { |
| 234 | this->setHoursofOperationSchedule(*schedule); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | if (!(this->numberofPeopleSchedule())) { |
| 239 | schedule = other.numberofPeopleSchedule(); |
| 240 | if (schedule) { |
| 241 | this->setNumberofPeopleSchedule(*schedule); |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | if (!(this->peopleActivityLevelSchedule())) { |
| 246 | schedule = other.peopleActivityLevelSchedule(); |
| 247 | if (schedule) { |
| 248 | this->setPeopleActivityLevelSchedule(*schedule); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | if (!(this->lightingSchedule())) { |
| 253 | schedule = other.lightingSchedule(); |
| 254 | if (schedule) { |
| 255 | this->setLightingSchedule(*schedule); |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | if (!(this->electricEquipmentSchedule())) { |
| 260 | schedule = other.electricEquipmentSchedule(); |
| 261 | if (schedule) { |
| 262 | this->setElectricEquipmentSchedule(*schedule); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | if (!(this->gasEquipmentSchedule())) { |
| 267 | schedule = other.gasEquipmentSchedule(); |
| 268 | if (schedule) { |
| 269 | this->setGasEquipmentSchedule(*schedule); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | if (!(this->hotWaterEquipmentSchedule())) { |
| 274 | schedule = other.hotWaterEquipmentSchedule(); |
| 275 | if (schedule) { |
| 276 | this->setHotWaterEquipmentSchedule(*schedule); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | if (!(this->steamEquipmentSchedule())) { |
| 281 | schedule = other.steamEquipmentSchedule(); |
| 282 | if (schedule) { |
| 283 | this->setSteamEquipmentSchedule(*schedule); |
| 284 | } |
| 285 | } |
no test coverage detected