src/model/ScheduleWeek_Impl.hpp
| 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 | #ifndef MODEL_SCHEDULEWEEK_IMPL_HPP | ||
| 7 | #define MODEL_SCHEDULEWEEK_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ScheduleDay; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** ScheduleWeek_Impl is a ResourceObject_Impl that is the implementation class for ScheduleWeek.*/ | ||
| 20 | class MODEL_API ScheduleWeek_Impl : public ResourceObject_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** @name Constructors and Destructors */ | ||
| 24 | //@{ | ||
| 25 | |||
| 26 | ScheduleWeek_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | ScheduleWeek_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | ScheduleWeek_Impl(const ScheduleWeek_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | 1021 | virtual ~ScheduleWeek_Impl() override = default; | |
| 33 | |||
| 34 | //@} | ||
| 35 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 36 | |||
| 37 | virtual IddObjectType iddObjectType() const override; | ||
| 38 | |||
| 39 | //@} | ||
| 40 | /** @name Getters */ | ||
| 41 | //@{ | ||
| 42 | |||
| 43 | boost::optional<ScheduleDay> sundaySchedule() const; | ||
| 44 | |||
| 45 | boost::optional<ScheduleDay> mondaySchedule() const; | ||
| 46 | |||
| 47 | boost::optional<ScheduleDay> tuesdaySchedule() const; | ||
| 48 | |||
| 49 | boost::optional<ScheduleDay> wednesdaySchedule() const; | ||
| 50 | |||
| 51 | boost::optional<ScheduleDay> thursdaySchedule() const; | ||
| 52 | |||
| 53 | boost::optional<ScheduleDay> fridaySchedule() const; | ||
| 54 | |||
| 55 | boost::optional<ScheduleDay> saturdaySchedule() const; | ||
| 56 | |||
| 57 | boost::optional<ScheduleDay> holidaySchedule() const; | ||
| 58 | |||
| 59 | boost::optional<ScheduleDay> summerDesignDaySchedule() const; | ||
| 60 | |||
| 61 | boost::optional<ScheduleDay> winterDesignDaySchedule() const; | ||
| 62 | |||
| 63 | boost::optional<ScheduleDay> customDay1Schedule() const; | ||
| 64 | |||
| 65 | boost::optional<ScheduleDay> customDay2Schedule() const; | ||
| 66 | |||
| 67 | //@} | ||
| 68 | /** @name Setters */ | ||
| 69 | //@{ | ||
| 70 | |||
| 71 | bool setSundaySchedule(const ScheduleDay& schedule); | ||
| 72 | |||
| 73 | bool setMondaySchedule(const ScheduleDay& schedule); | ||
| 74 | |||
| 75 | bool setTuesdaySchedule(const ScheduleDay& schedule); | ||
| 76 | |||
| 77 | bool setWednesdaySchedule(const ScheduleDay& schedule); | ||
| 78 | |||
| 79 | bool setThursdaySchedule(const ScheduleDay& schedule); | ||
| 80 | |||
| 81 | bool setFridaySchedule(const ScheduleDay& schedule); | ||
| 82 | |||
| 83 | bool setSaturdaySchedule(const ScheduleDay& schedule); | ||
| 84 | |||
| 85 | bool setHolidaySchedule(const ScheduleDay& schedule); | ||
| 86 | |||
| 87 | bool setSummerDesignDaySchedule(const ScheduleDay& schedule); | ||
| 88 | |||
| 89 | bool setWinterDesignDaySchedule(const ScheduleDay& schedule); | ||
| 90 | |||
| 91 | bool setCustomDay1Schedule(const ScheduleDay& schedule); | ||
| 92 | |||
| 93 | bool setCustomDay2Schedule(const ScheduleDay& schedule); | ||
| 94 | |||
| 95 | //@} | ||
| 96 | |||
| 97 | /// Set schedules for all days. | ||
| 98 | bool setAllSchedules(const ScheduleDay& schedule); | ||
| 99 | |||
| 100 | /// Set schedules for all weekdays. | ||
| 101 | bool setWeekdaySchedule(const ScheduleDay& schedule); | ||
| 102 | |||
| 103 | /// Set schedules for all weekends. | ||
| 104 | bool setWeekendSchedule(const ScheduleDay& schedule); | ||
| 105 | |||
| 106 | protected: | ||
| 107 | private: | ||
| 108 | REGISTER_LOGGER("openstudio.model.ScheduleWeek"); | ||
| 109 | }; | ||
| 110 | |||
| 111 | } // namespace detail | ||
| 112 | |||
| 113 | } // namespace model | ||
| 114 | } // namespace openstudio | ||
| 115 | |||
| 116 | #endif // MODEL_SCHEDULEWEEK_IMPL_HPP | ||
| 117 |