src/model/ZoneControlHumidistat.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_ZONECONTROLHUMIDISTAT_HPP | ||
| 7 | #define MODEL_ZONECONTROLHUMIDISTAT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class ThermalZone; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class ZoneControlHumidistat_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** ZoneControlHumidistat is a ModelObject that wraps the OpenStudio IDD object 'OS:ZoneControl:Humidistat'. */ | ||
| 25 | class MODEL_API ZoneControlHumidistat : public ModelObject | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit ZoneControlHumidistat(const Model& model); | ||
| 32 | |||
| 33 | 79 | virtual ~ZoneControlHumidistat() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | ZoneControlHumidistat(const ZoneControlHumidistat& other) = default; | |
| 36 | 46 | ZoneControlHumidistat(ZoneControlHumidistat&& other) = default; | |
| 37 | ✗ | ZoneControlHumidistat& operator=(const ZoneControlHumidistat&) = default; | |
| 38 | 1 | ZoneControlHumidistat& operator=(ZoneControlHumidistat&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | boost::optional<ThermalZone> controlledZone() const; | ||
| 48 | |||
| 49 | boost::optional<Schedule> humidifyingRelativeHumiditySetpointSchedule() const; | ||
| 50 | |||
| 51 | boost::optional<Schedule> dehumidifyingRelativeHumiditySetpointSchedule() const; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Setters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | bool setHumidifyingRelativeHumiditySetpointSchedule(Schedule& schedule); | ||
| 58 | |||
| 59 | bool setDehumidifyingRelativeHumiditySetpointSchedule(Schedule& schedule); | ||
| 60 | |||
| 61 | void resetHumidifyingRelativeHumiditySetpointSchedule(); | ||
| 62 | |||
| 63 | void resetDehumidifyingRelativeHumiditySetpointSchedule(); | ||
| 64 | |||
| 65 | //@} | ||
| 66 | /** @name Other */ | ||
| 67 | //@{ | ||
| 68 | |||
| 69 | //@} | ||
| 70 | protected: | ||
| 71 | /// @cond | ||
| 72 | using ImplType = detail::ZoneControlHumidistat_Impl; | ||
| 73 | |||
| 74 | explicit ZoneControlHumidistat(std::shared_ptr<detail::ZoneControlHumidistat_Impl> impl); | ||
| 75 | |||
| 76 | friend class detail::ZoneControlHumidistat_Impl; | ||
| 77 | friend class Model; | ||
| 78 | friend class IdfObject; | ||
| 79 | friend class openstudio::detail::IdfObject_Impl; | ||
| 80 | /// @endcond | ||
| 81 | private: | ||
| 82 | REGISTER_LOGGER("openstudio.model.ZoneControlHumidistat"); | ||
| 83 | }; | ||
| 84 | |||
| 85 | /** \relates ZoneControlHumidistat*/ | ||
| 86 | using OptionalZoneControlHumidistat = boost::optional<ZoneControlHumidistat>; | ||
| 87 | |||
| 88 | /** \relates ZoneControlHumidistat*/ | ||
| 89 | using ZoneControlHumidistatVector = std::vector<ZoneControlHumidistat>; | ||
| 90 | |||
| 91 | } // namespace model | ||
| 92 | } // namespace openstudio | ||
| 93 | |||
| 94 | #endif // MODEL_ZONECONTROLHUMIDISTAT_HPP | ||
| 95 |