src/model/ElectricalStorage_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_ELECTRICALSTORAGE_IMPL_HPP | ||
| 7 | #define MODEL_ELECTRICALSTORAGE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ParentObject_Impl.hpp" | ||
| 10 | #include "ThermalZone_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | /** ElectricStorage_Impl is a ParentObject_Impl that is the implementation class for ElectricStorage_Impl. | ||
| 18 | It is the Base Class of ElectricLoadCenterStorageSimple, ElectricLoadCenterStorageBattery, and ElectricLoadCenterStorageLiIonNMCBattery*/ | ||
| 19 | class MODEL_API ElectricalStorage_Impl : public ParentObject_Impl | ||
| 20 | { | ||
| 21 | public: | ||
| 22 | /** @name Constructors and Destructors */ | ||
| 23 | //@{ | ||
| 24 | |||
| 25 | ElectricalStorage_Impl(IddObjectType type, Model_Impl* model); | ||
| 26 | |||
| 27 | ElectricalStorage_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | ElectricalStorage_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ElectricalStorage_Impl(const ElectricalStorage_Impl& other, Model_Impl* model, bool keepHandles); | ||
| 32 | |||
| 33 | 17 | virtual ~ElectricalStorage_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | //@} | ||
| 40 | /** @name Getters */ | ||
| 41 | //@{ | ||
| 42 | |||
| 43 | // Convenience method to return the (optional) electricalLoadCenter on which it's assigned | ||
| 44 | boost::optional<ElectricLoadCenterDistribution> electricLoadCenterDistribution() const; | ||
| 45 | |||
| 46 | virtual boost::optional<ThermalZone> thermalZone() const = 0; | ||
| 47 | |||
| 48 | //@} | ||
| 49 | /** @name Setters */ | ||
| 50 | //@{ | ||
| 51 | |||
| 52 | virtual bool setThermalZone(const ThermalZone& thermalZone) = 0; | ||
| 53 | |||
| 54 | virtual void resetThermalZone() = 0; | ||
| 55 | |||
| 56 | //@} | ||
| 57 | /** @name Other */ | ||
| 58 | //@{ | ||
| 59 | |||
| 60 | //@} | ||
| 61 | private: | ||
| 62 | REGISTER_LOGGER("openstudio.model.ElectricalStorage"); | ||
| 63 | }; | ||
| 64 | |||
| 65 | } // namespace detail | ||
| 66 | |||
| 67 | } // namespace model | ||
| 68 | } // namespace openstudio | ||
| 69 | |||
| 70 | #endif // MODEL_ELECTRICALSTORAGE_IMPL_HPP | ||
| 71 |