src/model/GeneratorFuelCellInverter_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_GENERATORFUELCELLINVERTER_IMPL_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELLINVERTER_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class CurveQuadratic; | ||
| 16 | class GeneratorFuelCell; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** GeneratorFuelCellInverter_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCellInverter.*/ | ||
| 21 | class MODEL_API GeneratorFuelCellInverter_Impl : public ModelObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | GeneratorFuelCellInverter_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | GeneratorFuelCellInverter_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | GeneratorFuelCellInverter_Impl(const GeneratorFuelCellInverter_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 15 | virtual ~GeneratorFuelCellInverter_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | virtual std::vector<IddObjectType> allowableChildTypes() const; | ||
| 44 | |||
| 45 | virtual std::vector<ModelObject> children() const; | ||
| 46 | |||
| 47 | //@} | ||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | std::string inverterEfficiencyCalculationMode() const; | ||
| 52 | |||
| 53 | double inverterEfficiency() const; | ||
| 54 | |||
| 55 | boost::optional<CurveQuadratic> efficiencyFunctionofDCPowerCurve() const; | ||
| 56 | |||
| 57 | // Return optional parent generator | ||
| 58 | boost::optional<GeneratorFuelCell> fuelCell() const; | ||
| 59 | |||
| 60 | //@} | ||
| 61 | /** @name Setters */ | ||
| 62 | //@{ | ||
| 63 | |||
| 64 | bool setInverterEfficiencyCalculationMode(const std::string& inverterEfficiencyCalculationMode); | ||
| 65 | |||
| 66 | void resetInverterEfficiencyCalculationMode(); | ||
| 67 | |||
| 68 | bool setInverterEfficiency(double inverterEfficiency); | ||
| 69 | |||
| 70 | void resetInverterEfficiency(); | ||
| 71 | |||
| 72 | bool setEfficiencyFunctionofDCPowerCurve(const CurveQuadratic& quadraticCurves); | ||
| 73 | |||
| 74 | void resetEfficiencyFunctionofDCPowerCurve(); | ||
| 75 | |||
| 76 | //@} | ||
| 77 | /** @name Other */ | ||
| 78 | //@{ | ||
| 79 | |||
| 80 | //@} | ||
| 81 | protected: | ||
| 82 | private: | ||
| 83 | − | REGISTER_LOGGER("openstudio.model.GeneratorFuelCellInverter"); | |
| 84 | }; | ||
| 85 | |||
| 86 | } // namespace detail | ||
| 87 | |||
| 88 | } // namespace model | ||
| 89 | } // namespace openstudio | ||
| 90 | |||
| 91 | #endif // MODEL_GENERATORFUELCELLINVERTER_IMPL_HPP | ||
| 92 |