src/model/HumidifierSteamElectric.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_HUMIDIFIERSTEAMELECTRIC_HPP | ||
| 7 | #define MODEL_HUMIDIFIERSTEAMELECTRIC_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class HumidifierSteamElectric_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** HumidifierSteamElectric is a StraightComponent that wraps the OpenStudio IDD object 'OS:Humidifier:Steam:Electric'. */ | ||
| 25 | class MODEL_API HumidifierSteamElectric : public StraightComponent | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit HumidifierSteamElectric(const Model& model); | ||
| 32 | |||
| 33 | 8 | virtual ~HumidifierSteamElectric() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | HumidifierSteamElectric(const HumidifierSteamElectric& other) = default; | |
| 36 | ✗ | HumidifierSteamElectric(HumidifierSteamElectric&& other) = default; | |
| 37 | ✗ | HumidifierSteamElectric& operator=(const HumidifierSteamElectric&) = default; | |
| 38 | ✗ | HumidifierSteamElectric& operator=(HumidifierSteamElectric&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | boost::optional<Schedule> availabilitySchedule() const; | ||
| 48 | |||
| 49 | boost::optional<double> ratedCapacity() const; | ||
| 50 | |||
| 51 | bool isRatedCapacityAutosized() const; | ||
| 52 | |||
| 53 | boost::optional<double> ratedPower() const; | ||
| 54 | |||
| 55 | bool isRatedPowerAutosized() const; | ||
| 56 | |||
| 57 | boost::optional<double> ratedFanPower() const; | ||
| 58 | |||
| 59 | boost::optional<double> standbyPower() const; | ||
| 60 | |||
| 61 | // boost::optional<WaterStorageTank> waterStorageTank() const; | ||
| 62 | |||
| 63 | //@} | ||
| 64 | /** @name Setters */ | ||
| 65 | //@{ | ||
| 66 | |||
| 67 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 68 | |||
| 69 | void resetAvailabilitySchedule(); | ||
| 70 | |||
| 71 | bool setRatedCapacity(double ratedCapacity); | ||
| 72 | |||
| 73 | void autosizeRatedCapacity(); | ||
| 74 | |||
| 75 | bool setRatedPower(double ratedPower); | ||
| 76 | |||
| 77 | void resetRatedPower(); | ||
| 78 | |||
| 79 | void autosizeRatedPower(); | ||
| 80 | |||
| 81 | bool setRatedFanPower(double ratedFanPower); | ||
| 82 | |||
| 83 | void resetRatedFanPower(); | ||
| 84 | |||
| 85 | bool setStandbyPower(double standbyPower); | ||
| 86 | |||
| 87 | void resetStandbyPower(); | ||
| 88 | |||
| 89 | // bool setWaterStorageTank(const WaterStorageTank& waterStorageTank); | ||
| 90 | |||
| 91 | // void resetWaterStorageTank(); | ||
| 92 | |||
| 93 | //@} | ||
| 94 | /** @name Other */ | ||
| 95 | //@{ | ||
| 96 | |||
| 97 | boost::optional<double> autosizedRatedCapacity() const; | ||
| 98 | |||
| 99 | boost::optional<double> autosizedRatedPower() const; | ||
| 100 | |||
| 101 | //@} | ||
| 102 | protected: | ||
| 103 | /// @cond | ||
| 104 | using ImplType = detail::HumidifierSteamElectric_Impl; | ||
| 105 | |||
| 106 | explicit HumidifierSteamElectric(std::shared_ptr<detail::HumidifierSteamElectric_Impl> impl); | ||
| 107 | |||
| 108 | friend class detail::HumidifierSteamElectric_Impl; | ||
| 109 | friend class Model; | ||
| 110 | friend class IdfObject; | ||
| 111 | friend class openstudio::detail::IdfObject_Impl; | ||
| 112 | /// @endcond | ||
| 113 | private: | ||
| 114 | REGISTER_LOGGER("openstudio.model.HumidifierSteamElectric"); | ||
| 115 | }; | ||
| 116 | |||
| 117 | /** \relates HumidifierSteamElectric*/ | ||
| 118 | using OptionalHumidifierSteamElectric = boost::optional<HumidifierSteamElectric>; | ||
| 119 | |||
| 120 | /** \relates HumidifierSteamElectric*/ | ||
| 121 | using HumidifierSteamElectricVector = std::vector<HumidifierSteamElectric>; | ||
| 122 | |||
| 123 | } // namespace model | ||
| 124 | } // namespace openstudio | ||
| 125 | |||
| 126 | #endif // MODEL_HUMIDIFIERSTEAMELECTRIC_HPP | ||
| 127 |