src/model/GeneratorFuelCellElectricalStorage.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_GENERATORFUELCELLELECTRICALSTORAGE_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELLELECTRICALSTORAGE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class GeneratorFuelCell; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class GeneratorFuelCellElectricalStorage_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** GeneratorFuelCellElectricalStorage is a ModelObject that wraps the OpenStudio IDD object 'OS:Generator:FuelCell:ElectricalStorage'. */ | ||
| 25 | class MODEL_API GeneratorFuelCellElectricalStorage : public ModelObject | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit GeneratorFuelCellElectricalStorage(const Model& model); | ||
| 32 | |||
| 33 | 66 | virtual ~GeneratorFuelCellElectricalStorage() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | 12 | GeneratorFuelCellElectricalStorage(const GeneratorFuelCellElectricalStorage& other) = default; | |
| 36 | 30 | GeneratorFuelCellElectricalStorage(GeneratorFuelCellElectricalStorage&& other) = default; | |
| 37 | ✗ | GeneratorFuelCellElectricalStorage& operator=(const GeneratorFuelCellElectricalStorage&) = default; | |
| 38 | ✗ | GeneratorFuelCellElectricalStorage& operator=(GeneratorFuelCellElectricalStorage&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | static std::vector<std::string> choiceofModelValues(); | ||
| 45 | |||
| 46 | /** @name Getters */ | ||
| 47 | //@{ | ||
| 48 | |||
| 49 | std::string choiceofModel() const; | ||
| 50 | |||
| 51 | double nominalChargingEnergeticEfficiency() const; | ||
| 52 | |||
| 53 | double nominalDischargingEnergeticEfficiency() const; | ||
| 54 | |||
| 55 | double simpleMaximumCapacity() const; | ||
| 56 | |||
| 57 | double simpleMaximumPowerDraw() const; | ||
| 58 | |||
| 59 | double simpleMaximumPowerStore() const; | ||
| 60 | |||
| 61 | double initialChargeState() const; | ||
| 62 | |||
| 63 | // Return optional parent generator | ||
| 64 | boost::optional<GeneratorFuelCell> fuelCell() const; | ||
| 65 | |||
| 66 | //@} | ||
| 67 | /** @name Setters */ | ||
| 68 | //@{ | ||
| 69 | |||
| 70 | bool setChoiceofModel(const std::string& choiceofModel); | ||
| 71 | |||
| 72 | void resetChoiceofModel(); | ||
| 73 | |||
| 74 | bool setNominalChargingEnergeticEfficiency(double nominalChargingEnergeticEfficiency); | ||
| 75 | |||
| 76 | void resetNominalChargingEnergeticEfficiency(); | ||
| 77 | |||
| 78 | bool setNominalDischargingEnergeticEfficiency(double nominalDischargingEnergeticEfficiency); | ||
| 79 | |||
| 80 | void resetNominalDischargingEnergeticEfficiency(); | ||
| 81 | |||
| 82 | bool setSimpleMaximumCapacity(double simpleMaximumCapacity); | ||
| 83 | |||
| 84 | void resetSimpleMaximumCapacity(); | ||
| 85 | |||
| 86 | bool setSimpleMaximumPowerDraw(double simpleMaximumPowerDraw); | ||
| 87 | |||
| 88 | void resetSimpleMaximumPowerDraw(); | ||
| 89 | |||
| 90 | bool setSimpleMaximumPowerStore(double simpleMaximumPowerStore); | ||
| 91 | |||
| 92 | void resetSimpleMaximumPowerStore(); | ||
| 93 | |||
| 94 | bool setInitialChargeState(double initialChargeState); | ||
| 95 | |||
| 96 | void resetInitialChargeState(); | ||
| 97 | |||
| 98 | //@} | ||
| 99 | /** @name Other */ | ||
| 100 | //@{ | ||
| 101 | |||
| 102 | //@} | ||
| 103 | protected: | ||
| 104 | /// @cond | ||
| 105 | using ImplType = detail::GeneratorFuelCellElectricalStorage_Impl; | ||
| 106 | |||
| 107 | explicit GeneratorFuelCellElectricalStorage(std::shared_ptr<detail::GeneratorFuelCellElectricalStorage_Impl> impl); | ||
| 108 | |||
| 109 | friend class detail::GeneratorFuelCellElectricalStorage_Impl; | ||
| 110 | friend class Model; | ||
| 111 | friend class IdfObject; | ||
| 112 | friend class openstudio::detail::IdfObject_Impl; | ||
| 113 | /// @endcond | ||
| 114 | private: | ||
| 115 | REGISTER_LOGGER("openstudio.model.GeneratorFuelCellElectricalStorage"); | ||
| 116 | }; | ||
| 117 | |||
| 118 | /** \relates GeneratorFuelCellElectricalStorage*/ | ||
| 119 | using OptionalGeneratorFuelCellElectricalStorage = boost::optional<GeneratorFuelCellElectricalStorage>; | ||
| 120 | |||
| 121 | /** \relates GeneratorFuelCellElectricalStorage*/ | ||
| 122 | using GeneratorFuelCellElectricalStorageVector = std::vector<GeneratorFuelCellElectricalStorage>; | ||
| 123 | |||
| 124 | } // namespace model | ||
| 125 | } // namespace openstudio | ||
| 126 | |||
| 127 | #endif // MODEL_GENERATORFUELCELLELECTRICALSTORAGE_HPP | ||
| 128 |