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