src/model/ScheduleWeek.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "ScheduleWeek.hpp" | ||
| 7 | #include "ScheduleWeek_Impl.hpp" | ||
| 8 | #include "ScheduleDay.hpp" | ||
| 9 | #include "ScheduleDay_Impl.hpp" | ||
| 10 | #include "Model.hpp" | ||
| 11 | |||
| 12 | #include <utilities/idd/OS_Schedule_Week_FieldEnums.hxx> | ||
| 13 | #include <utilities/idd/IddEnums.hxx> | ||
| 14 | |||
| 15 | #include "../utilities/core/Assert.hpp" | ||
| 16 | |||
| 17 | namespace openstudio { | ||
| 18 | namespace model { | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | 562 | ScheduleWeek_Impl::ScheduleWeek_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 23 | 562 | : ResourceObject_Impl(idfObject, model, keepHandle) { | |
| 24 |
4/6✓ Branch 1 taken 562 times.
✓ Branch 4 taken 562 times.
✓ Branch 7 taken 562 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 562 times.
✗ Branch 13 not taken.
|
562 | OS_ASSERT(idfObject.iddObject().type() == ScheduleWeek::iddObjectType()); |
| 25 | 562 | } | |
| 26 | |||
| 27 | 423 | ScheduleWeek_Impl::ScheduleWeek_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 28 | 423 | : ResourceObject_Impl(other, model, keepHandle) { | |
| 29 |
4/6✓ Branch 1 taken 423 times.
✓ Branch 4 taken 423 times.
✓ Branch 7 taken 423 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 423 times.
✗ Branch 13 not taken.
|
423 | OS_ASSERT(other.iddObject().type() == ScheduleWeek::iddObjectType()); |
| 30 | 423 | } | |
| 31 | |||
| 32 | 36 | ScheduleWeek_Impl::ScheduleWeek_Impl(const ScheduleWeek_Impl& other, Model_Impl* model, bool keepHandle) | |
| 33 | 36 | : ResourceObject_Impl(other, model, keepHandle) {} | |
| 34 | |||
| 35 | ✗ | const std::vector<std::string>& ScheduleWeek_Impl::outputVariableNames() const { | |
| 36 | ✗ | static const std::vector<std::string> result; | |
| 37 | ✗ | return result; | |
| 38 | } | ||
| 39 | |||
| 40 | ✗ | IddObjectType ScheduleWeek_Impl::iddObjectType() const { | |
| 41 | ✗ | return ScheduleWeek::iddObjectType(); | |
| 42 | } | ||
| 43 | |||
| 44 | 64 | boost::optional<ScheduleDay> ScheduleWeek_Impl::sundaySchedule() const { | |
| 45 | 64 | boost::optional<ScheduleDay> result; | |
| 46 |
1/1✓ Branch 1 taken 64 times.
|
64 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::SundaySchedule_DayName); |
| 47 |
2/2✓ Branch 0 taken 60 times.
✓ Branch 1 taken 4 times.
|
64 | if (schedule) { |
| 48 |
2/2✓ Branch 1 taken 60 times.
✓ Branch 4 taken 60 times.
|
60 | result = schedule->optionalCast<ScheduleDay>(); |
| 49 | } | ||
| 50 | 128 | return result; | |
| 51 | 64 | } | |
| 52 | |||
| 53 | 64 | boost::optional<ScheduleDay> ScheduleWeek_Impl::mondaySchedule() const { | |
| 54 | 64 | boost::optional<ScheduleDay> result; | |
| 55 |
1/1✓ Branch 1 taken 64 times.
|
64 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::MondaySchedule_DayName); |
| 56 |
2/2✓ Branch 0 taken 62 times.
✓ Branch 1 taken 2 times.
|
64 | if (schedule) { |
| 57 |
2/2✓ Branch 1 taken 62 times.
✓ Branch 4 taken 62 times.
|
62 | result = schedule->optionalCast<ScheduleDay>(); |
| 58 | } | ||
| 59 | 128 | return result; | |
| 60 | 64 | } | |
| 61 | |||
| 62 | 57 | boost::optional<ScheduleDay> ScheduleWeek_Impl::tuesdaySchedule() const { | |
| 63 | 57 | boost::optional<ScheduleDay> result; | |
| 64 |
1/1✓ Branch 1 taken 57 times.
|
57 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::TuesdaySchedule_DayName); |
| 65 |
2/2✓ Branch 0 taken 56 times.
✓ Branch 1 taken 1 time.
|
57 | if (schedule) { |
| 66 |
2/2✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
|
56 | result = schedule->optionalCast<ScheduleDay>(); |
| 67 | } | ||
| 68 | 114 | return result; | |
| 69 | 57 | } | |
| 70 | |||
| 71 | 57 | boost::optional<ScheduleDay> ScheduleWeek_Impl::wednesdaySchedule() const { | |
| 72 | 57 | boost::optional<ScheduleDay> result; | |
| 73 |
1/1✓ Branch 1 taken 57 times.
|
57 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::WednesdaySchedule_DayName); |
| 74 |
2/2✓ Branch 0 taken 56 times.
✓ Branch 1 taken 1 time.
|
57 | if (schedule) { |
| 75 |
2/2✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
|
56 | result = schedule->optionalCast<ScheduleDay>(); |
| 76 | } | ||
| 77 | 114 | return result; | |
| 78 | 57 | } | |
| 79 | |||
| 80 | 57 | boost::optional<ScheduleDay> ScheduleWeek_Impl::thursdaySchedule() const { | |
| 81 | 57 | boost::optional<ScheduleDay> result; | |
| 82 |
1/1✓ Branch 1 taken 57 times.
|
57 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::ThursdaySchedule_DayName); |
| 83 |
2/2✓ Branch 0 taken 56 times.
✓ Branch 1 taken 1 time.
|
57 | if (schedule) { |
| 84 |
2/2✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
|
56 | result = schedule->optionalCast<ScheduleDay>(); |
| 85 | } | ||
| 86 | 114 | return result; | |
| 87 | 57 | } | |
| 88 | |||
| 89 | 57 | boost::optional<ScheduleDay> ScheduleWeek_Impl::fridaySchedule() const { | |
| 90 | 57 | boost::optional<ScheduleDay> result; | |
| 91 |
1/1✓ Branch 1 taken 57 times.
|
57 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::FridaySchedule_DayName); |
| 92 |
2/2✓ Branch 0 taken 56 times.
✓ Branch 1 taken 1 time.
|
57 | if (schedule) { |
| 93 |
2/2✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
|
56 | result = schedule->optionalCast<ScheduleDay>(); |
| 94 | } | ||
| 95 | 114 | return result; | |
| 96 | 57 | } | |
| 97 | |||
| 98 | 57 | boost::optional<ScheduleDay> ScheduleWeek_Impl::saturdaySchedule() const { | |
| 99 | 57 | boost::optional<ScheduleDay> result; | |
| 100 |
1/1✓ Branch 1 taken 57 times.
|
57 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::SaturdaySchedule_DayName); |
| 101 |
2/2✓ Branch 0 taken 56 times.
✓ Branch 1 taken 1 time.
|
57 | if (schedule) { |
| 102 |
2/2✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
|
56 | result = schedule->optionalCast<ScheduleDay>(); |
| 103 | } | ||
| 104 | 114 | return result; | |
| 105 | 57 | } | |
| 106 | |||
| 107 | 84 | boost::optional<ScheduleDay> ScheduleWeek_Impl::holidaySchedule() const { | |
| 108 | 84 | boost::optional<ScheduleDay> result; | |
| 109 |
1/1✓ Branch 1 taken 84 times.
|
84 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::HolidaySchedule_DayName); |
| 110 |
2/2✓ Branch 0 taken 76 times.
✓ Branch 1 taken 8 times.
|
84 | if (schedule) { |
| 111 |
2/2✓ Branch 1 taken 76 times.
✓ Branch 4 taken 76 times.
|
76 | result = schedule->optionalCast<ScheduleDay>(); |
| 112 | } | ||
| 113 | 168 | return result; | |
| 114 | 84 | } | |
| 115 | |||
| 116 | 56 | boost::optional<ScheduleDay> ScheduleWeek_Impl::summerDesignDaySchedule() const { | |
| 117 | 56 | boost::optional<ScheduleDay> result; | |
| 118 |
1/1✓ Branch 1 taken 56 times.
|
56 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::SummerDesignDaySchedule_DayName); |
| 119 |
2/2✓ Branch 0 taken 54 times.
✓ Branch 1 taken 2 times.
|
56 | if (schedule) { |
| 120 |
2/2✓ Branch 1 taken 54 times.
✓ Branch 4 taken 54 times.
|
54 | result = schedule->optionalCast<ScheduleDay>(); |
| 121 | } | ||
| 122 | 112 | return result; | |
| 123 | 56 | } | |
| 124 | |||
| 125 | 56 | boost::optional<ScheduleDay> ScheduleWeek_Impl::winterDesignDaySchedule() const { | |
| 126 | 56 | boost::optional<ScheduleDay> result; | |
| 127 |
1/1✓ Branch 1 taken 56 times.
|
56 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::WinterDesignDaySchedule_DayName); |
| 128 |
2/2✓ Branch 0 taken 54 times.
✓ Branch 1 taken 2 times.
|
56 | if (schedule) { |
| 129 |
2/2✓ Branch 1 taken 54 times.
✓ Branch 4 taken 54 times.
|
54 | result = schedule->optionalCast<ScheduleDay>(); |
| 130 | } | ||
| 131 | 112 | return result; | |
| 132 | 56 | } | |
| 133 | |||
| 134 | 77 | boost::optional<ScheduleDay> ScheduleWeek_Impl::customDay1Schedule() const { | |
| 135 | 77 | boost::optional<ScheduleDay> result; | |
| 136 |
1/1✓ Branch 1 taken 77 times.
|
77 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::CustomDay1Schedule_DayName); |
| 137 |
2/2✓ Branch 0 taken 74 times.
✓ Branch 1 taken 3 times.
|
77 | if (schedule) { |
| 138 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
74 | result = schedule->optionalCast<ScheduleDay>(); |
| 139 | } | ||
| 140 | 154 | return result; | |
| 141 | 77 | } | |
| 142 | |||
| 143 | 77 | boost::optional<ScheduleDay> ScheduleWeek_Impl::customDay2Schedule() const { | |
| 144 | 77 | boost::optional<ScheduleDay> result; | |
| 145 |
1/1✓ Branch 1 taken 77 times.
|
77 | OptionalWorkspaceObject schedule = getTarget(OS_Schedule_WeekFields::CustomDay2Schedule_DayName); |
| 146 |
2/2✓ Branch 0 taken 74 times.
✓ Branch 1 taken 3 times.
|
77 | if (schedule) { |
| 147 |
2/2✓ Branch 1 taken 74 times.
✓ Branch 4 taken 74 times.
|
74 | result = schedule->optionalCast<ScheduleDay>(); |
| 148 | } | ||
| 149 | 154 | return result; | |
| 150 | 77 | } | |
| 151 | |||
| 152 | 141 | bool ScheduleWeek_Impl::setSundaySchedule(const ScheduleDay& schedule) { | |
| 153 |
2/2✓ Branch 1 taken 141 times.
✓ Branch 4 taken 141 times.
|
141 | return setPointer(OS_Schedule_WeekFields::SundaySchedule_DayName, schedule.handle()); |
| 154 | } | ||
| 155 | |||
| 156 | 141 | bool ScheduleWeek_Impl::setMondaySchedule(const ScheduleDay& schedule) { | |
| 157 |
2/2✓ Branch 1 taken 141 times.
✓ Branch 4 taken 141 times.
|
141 | return setPointer(OS_Schedule_WeekFields::MondaySchedule_DayName, schedule.handle()); |
| 158 | } | ||
| 159 | |||
| 160 | 140 | bool ScheduleWeek_Impl::setTuesdaySchedule(const ScheduleDay& schedule) { | |
| 161 |
2/2✓ Branch 1 taken 140 times.
✓ Branch 4 taken 140 times.
|
140 | return setPointer(OS_Schedule_WeekFields::TuesdaySchedule_DayName, schedule.handle()); |
| 162 | } | ||
| 163 | |||
| 164 | 140 | bool ScheduleWeek_Impl::setWednesdaySchedule(const ScheduleDay& schedule) { | |
| 165 |
2/2✓ Branch 1 taken 140 times.
✓ Branch 4 taken 140 times.
|
140 | return setPointer(OS_Schedule_WeekFields::WednesdaySchedule_DayName, schedule.handle()); |
| 166 | } | ||
| 167 | |||
| 168 | 140 | bool ScheduleWeek_Impl::setThursdaySchedule(const ScheduleDay& schedule) { | |
| 169 |
2/2✓ Branch 1 taken 140 times.
✓ Branch 4 taken 140 times.
|
140 | return setPointer(OS_Schedule_WeekFields::ThursdaySchedule_DayName, schedule.handle()); |
| 170 | } | ||
| 171 | |||
| 172 | 140 | bool ScheduleWeek_Impl::setFridaySchedule(const ScheduleDay& schedule) { | |
| 173 |
2/2✓ Branch 1 taken 140 times.
✓ Branch 4 taken 140 times.
|
140 | return setPointer(OS_Schedule_WeekFields::FridaySchedule_DayName, schedule.handle()); |
| 174 | } | ||
| 175 | |||
| 176 | 141 | bool ScheduleWeek_Impl::setSaturdaySchedule(const ScheduleDay& schedule) { | |
| 177 |
2/2✓ Branch 1 taken 141 times.
✓ Branch 4 taken 141 times.
|
141 | return setPointer(OS_Schedule_WeekFields::SaturdaySchedule_DayName, schedule.handle()); |
| 178 | } | ||
| 179 | |||
| 180 | 139 | bool ScheduleWeek_Impl::setHolidaySchedule(const ScheduleDay& schedule) { | |
| 181 |
2/2✓ Branch 1 taken 139 times.
✓ Branch 4 taken 139 times.
|
139 | return setPointer(OS_Schedule_WeekFields::HolidaySchedule_DayName, schedule.handle()); |
| 182 | } | ||
| 183 | |||
| 184 | 139 | bool ScheduleWeek_Impl::setSummerDesignDaySchedule(const ScheduleDay& schedule) { | |
| 185 |
2/2✓ Branch 1 taken 139 times.
✓ Branch 4 taken 139 times.
|
139 | return setPointer(OS_Schedule_WeekFields::SummerDesignDaySchedule_DayName, schedule.handle()); |
| 186 | } | ||
| 187 | |||
| 188 | 139 | bool ScheduleWeek_Impl::setWinterDesignDaySchedule(const ScheduleDay& schedule) { | |
| 189 |
2/2✓ Branch 1 taken 139 times.
✓ Branch 4 taken 139 times.
|
139 | return setPointer(OS_Schedule_WeekFields::WinterDesignDaySchedule_DayName, schedule.handle()); |
| 190 | } | ||
| 191 | |||
| 192 | 125 | bool ScheduleWeek_Impl::setCustomDay1Schedule(const ScheduleDay& schedule) { | |
| 193 |
2/2✓ Branch 1 taken 125 times.
✓ Branch 4 taken 125 times.
|
125 | return setPointer(OS_Schedule_WeekFields::CustomDay1Schedule_DayName, schedule.handle()); |
| 194 | } | ||
| 195 | |||
| 196 | 125 | bool ScheduleWeek_Impl::setCustomDay2Schedule(const ScheduleDay& schedule) { | |
| 197 |
2/2✓ Branch 1 taken 125 times.
✓ Branch 4 taken 125 times.
|
125 | return setPointer(OS_Schedule_WeekFields::CustomDay2Schedule_DayName, schedule.handle()); |
| 198 | } | ||
| 199 | |||
| 200 | 33 | bool ScheduleWeek_Impl::setAllSchedules(const ScheduleDay& schedule) { | |
| 201 | 33 | bool result = true; | |
| 202 | |||
| 203 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setSundaySchedule(schedule); |
| 204 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setMondaySchedule(schedule); |
| 205 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setTuesdaySchedule(schedule); |
| 206 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setWednesdaySchedule(schedule); |
| 207 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setThursdaySchedule(schedule); |
| 208 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setFridaySchedule(schedule); |
| 209 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setSaturdaySchedule(schedule); |
| 210 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setHolidaySchedule(schedule); |
| 211 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setSummerDesignDaySchedule(schedule); |
| 212 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setWinterDesignDaySchedule(schedule); |
| 213 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setCustomDay1Schedule(schedule); |
| 214 |
2/4✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
|
33 | result = result && setCustomDay2Schedule(schedule); |
| 215 | |||
| 216 | 33 | return result; | |
| 217 | } | ||
| 218 | |||
| 219 | 15 | bool ScheduleWeek_Impl::setWeekdaySchedule(const ScheduleDay& schedule) { | |
| 220 | 15 | bool result = true; | |
| 221 | |||
| 222 |
2/4✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
15 | result = result && setMondaySchedule(schedule); |
| 223 |
2/4✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
15 | result = result && setTuesdaySchedule(schedule); |
| 224 |
2/4✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
15 | result = result && setWednesdaySchedule(schedule); |
| 225 |
2/4✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
15 | result = result && setThursdaySchedule(schedule); |
| 226 |
2/4✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 15 times.
✗ Branch 4 not taken.
|
15 | result = result && setFridaySchedule(schedule); |
| 227 | |||
| 228 | 15 | return result; | |
| 229 | } | ||
| 230 | |||
| 231 | 2 | bool ScheduleWeek_Impl::setWeekendSchedule(const ScheduleDay& schedule) { | |
| 232 | 2 | bool result = true; | |
| 233 | |||
| 234 |
2/4✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
2 | result = result && setSundaySchedule(schedule); |
| 235 |
2/4✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
2 | result = result && setSaturdaySchedule(schedule); |
| 236 | |||
| 237 | 2 | return result; | |
| 238 | } | ||
| 239 | |||
| 240 | } // namespace detail | ||
| 241 | |||
| 242 | 139 | ScheduleWeek::ScheduleWeek(const Model& model) : ResourceObject(ScheduleWeek::iddObjectType(), model) { | |
| 243 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 139 times.
✗ Branch 5 not taken.
|
139 | OS_ASSERT(getImpl<detail::ScheduleWeek_Impl>()); |
| 244 | 139 | } | |
| 245 | |||
| 246 | 8890 | IddObjectType ScheduleWeek::iddObjectType() { | |
| 247 |
1/1✓ Branch 1 taken 8890 times.
|
8890 | IddObjectType result(IddObjectType::OS_Schedule_Week); |
| 248 | 8890 | return result; | |
| 249 | } | ||
| 250 | |||
| 251 | /// @cond | ||
| 252 |
1/1✓ Branch 3 taken 356 times.
|
356 | ScheduleWeek::ScheduleWeek(std::shared_ptr<detail::ScheduleWeek_Impl> impl) : ResourceObject(std::move(impl)) {} |
| 253 | /// @endcond | ||
| 254 | |||
| 255 | 64 | boost::optional<ScheduleDay> ScheduleWeek::sundaySchedule() const { | |
| 256 |
1/1✓ Branch 3 taken 64 times.
|
64 | return getImpl<detail::ScheduleWeek_Impl>()->sundaySchedule(); |
| 257 | } | ||
| 258 | |||
| 259 | 64 | boost::optional<ScheduleDay> ScheduleWeek::mondaySchedule() const { | |
| 260 |
1/1✓ Branch 3 taken 64 times.
|
64 | return getImpl<detail::ScheduleWeek_Impl>()->mondaySchedule(); |
| 261 | } | ||
| 262 | |||
| 263 | 57 | boost::optional<ScheduleDay> ScheduleWeek::tuesdaySchedule() const { | |
| 264 |
1/1✓ Branch 3 taken 57 times.
|
57 | return getImpl<detail::ScheduleWeek_Impl>()->tuesdaySchedule(); |
| 265 | } | ||
| 266 | |||
| 267 | 57 | boost::optional<ScheduleDay> ScheduleWeek::wednesdaySchedule() const { | |
| 268 |
1/1✓ Branch 3 taken 57 times.
|
57 | return getImpl<detail::ScheduleWeek_Impl>()->wednesdaySchedule(); |
| 269 | } | ||
| 270 | |||
| 271 | 57 | boost::optional<ScheduleDay> ScheduleWeek::thursdaySchedule() const { | |
| 272 |
1/1✓ Branch 3 taken 57 times.
|
57 | return getImpl<detail::ScheduleWeek_Impl>()->thursdaySchedule(); |
| 273 | } | ||
| 274 | |||
| 275 | 57 | boost::optional<ScheduleDay> ScheduleWeek::fridaySchedule() const { | |
| 276 |
1/1✓ Branch 3 taken 57 times.
|
57 | return getImpl<detail::ScheduleWeek_Impl>()->fridaySchedule(); |
| 277 | } | ||
| 278 | |||
| 279 | 57 | boost::optional<ScheduleDay> ScheduleWeek::saturdaySchedule() const { | |
| 280 |
1/1✓ Branch 3 taken 57 times.
|
57 | return getImpl<detail::ScheduleWeek_Impl>()->saturdaySchedule(); |
| 281 | } | ||
| 282 | |||
| 283 | 84 | boost::optional<ScheduleDay> ScheduleWeek::holidaySchedule() const { | |
| 284 |
1/1✓ Branch 3 taken 84 times.
|
84 | return getImpl<detail::ScheduleWeek_Impl>()->holidaySchedule(); |
| 285 | } | ||
| 286 | |||
| 287 | 56 | boost::optional<ScheduleDay> ScheduleWeek::summerDesignDaySchedule() const { | |
| 288 |
1/1✓ Branch 3 taken 56 times.
|
56 | return getImpl<detail::ScheduleWeek_Impl>()->summerDesignDaySchedule(); |
| 289 | } | ||
| 290 | |||
| 291 | 56 | boost::optional<ScheduleDay> ScheduleWeek::winterDesignDaySchedule() const { | |
| 292 |
1/1✓ Branch 3 taken 56 times.
|
56 | return getImpl<detail::ScheduleWeek_Impl>()->winterDesignDaySchedule(); |
| 293 | } | ||
| 294 | |||
| 295 | 77 | boost::optional<ScheduleDay> ScheduleWeek::customDay1Schedule() const { | |
| 296 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::ScheduleWeek_Impl>()->customDay1Schedule(); |
| 297 | } | ||
| 298 | |||
| 299 | 77 | boost::optional<ScheduleDay> ScheduleWeek::customDay2Schedule() const { | |
| 300 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::ScheduleWeek_Impl>()->customDay2Schedule(); |
| 301 | } | ||
| 302 | |||
| 303 | 106 | bool ScheduleWeek::setSundaySchedule(const ScheduleDay& schedule) { | |
| 304 |
1/1✓ Branch 3 taken 106 times.
|
106 | return getImpl<detail::ScheduleWeek_Impl>()->setSundaySchedule(schedule); |
| 305 | } | ||
| 306 | |||
| 307 | 93 | bool ScheduleWeek::setMondaySchedule(const ScheduleDay& schedule) { | |
| 308 |
1/1✓ Branch 3 taken 93 times.
|
93 | return getImpl<detail::ScheduleWeek_Impl>()->setMondaySchedule(schedule); |
| 309 | } | ||
| 310 | |||
| 311 | 92 | bool ScheduleWeek::setTuesdaySchedule(const ScheduleDay& schedule) { | |
| 312 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setTuesdaySchedule(schedule); |
| 313 | } | ||
| 314 | |||
| 315 | 92 | bool ScheduleWeek::setWednesdaySchedule(const ScheduleDay& schedule) { | |
| 316 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setWednesdaySchedule(schedule); |
| 317 | } | ||
| 318 | |||
| 319 | 92 | bool ScheduleWeek::setThursdaySchedule(const ScheduleDay& schedule) { | |
| 320 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setThursdaySchedule(schedule); |
| 321 | } | ||
| 322 | |||
| 323 | 92 | bool ScheduleWeek::setFridaySchedule(const ScheduleDay& schedule) { | |
| 324 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setFridaySchedule(schedule); |
| 325 | } | ||
| 326 | |||
| 327 | 106 | bool ScheduleWeek::setSaturdaySchedule(const ScheduleDay& schedule) { | |
| 328 |
1/1✓ Branch 3 taken 106 times.
|
106 | return getImpl<detail::ScheduleWeek_Impl>()->setSaturdaySchedule(schedule); |
| 329 | } | ||
| 330 | |||
| 331 | 106 | bool ScheduleWeek::setHolidaySchedule(const ScheduleDay& schedule) { | |
| 332 |
1/1✓ Branch 3 taken 106 times.
|
106 | return getImpl<detail::ScheduleWeek_Impl>()->setHolidaySchedule(schedule); |
| 333 | } | ||
| 334 | |||
| 335 | 106 | bool ScheduleWeek::setSummerDesignDaySchedule(const ScheduleDay& schedule) { | |
| 336 |
1/1✓ Branch 3 taken 106 times.
|
106 | return getImpl<detail::ScheduleWeek_Impl>()->setSummerDesignDaySchedule(schedule); |
| 337 | } | ||
| 338 | |||
| 339 | 106 | bool ScheduleWeek::setWinterDesignDaySchedule(const ScheduleDay& schedule) { | |
| 340 |
1/1✓ Branch 3 taken 106 times.
|
106 | return getImpl<detail::ScheduleWeek_Impl>()->setWinterDesignDaySchedule(schedule); |
| 341 | } | ||
| 342 | |||
| 343 | 92 | bool ScheduleWeek::setCustomDay1Schedule(const ScheduleDay& schedule) { | |
| 344 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setCustomDay1Schedule(schedule); |
| 345 | } | ||
| 346 | |||
| 347 | 92 | bool ScheduleWeek::setCustomDay2Schedule(const ScheduleDay& schedule) { | |
| 348 |
1/1✓ Branch 3 taken 92 times.
|
92 | return getImpl<detail::ScheduleWeek_Impl>()->setCustomDay2Schedule(schedule); |
| 349 | } | ||
| 350 | |||
| 351 | 33 | bool ScheduleWeek::setAllSchedules(const ScheduleDay& schedule) { | |
| 352 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::ScheduleWeek_Impl>()->setAllSchedules(schedule); |
| 353 | } | ||
| 354 | |||
| 355 | 15 | bool ScheduleWeek::setWeekdaySchedule(const ScheduleDay& schedule) { | |
| 356 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::ScheduleWeek_Impl>()->setWeekdaySchedule(schedule); |
| 357 | } | ||
| 358 | |||
| 359 | 2 | bool ScheduleWeek::setWeekendSchedule(const ScheduleDay& schedule) { | |
| 360 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ScheduleWeek_Impl>()->setWeekendSchedule(schedule); |
| 361 | } | ||
| 362 | |||
| 363 | } // namespace model | ||
| 364 | } // namespace openstudio | ||
| 365 |