src/model/HeatPumpAirToWaterHeatingSpeedData_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_HEATPUMPAIRTOWATERHEATINGSPEEDDATA_IMPL_HPP | ||
| 7 | #define MODEL_HEATPUMPAIRTOWATERHEATINGSPEEDDATA_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | class HeatPumpAirToWaterHeating; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** HeatPumpAirToWaterHeatingSpeedData_Impl is a ResourceObject_Impl that is the implementation class for HeatPumpAirToWaterHeatingSpeedData.*/ | ||
| 21 | class MODEL_API HeatPumpAirToWaterHeatingSpeedData_Impl : public ResourceObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | HeatPumpAirToWaterHeatingSpeedData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | HeatPumpAirToWaterHeatingSpeedData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | HeatPumpAirToWaterHeatingSpeedData_Impl(const HeatPumpAirToWaterHeatingSpeedData_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 91 | virtual ~HeatPumpAirToWaterHeatingSpeedData_Impl() = 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 | // Overriding clone and children here because we want to try to remove the Curves (if they aren't used by something else) | ||
| 44 | // So we list them as children. But ResourceObject_Impl::clone would also clone them, so we override clone to call ModelObject_Impl::clone | ||
| 45 | virtual ModelObject clone(Model model) const override; | ||
| 46 | |||
| 47 | virtual std::vector<ModelObject> children() const override; | ||
| 48 | |||
| 49 | //@} | ||
| 50 | /** @name Getters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | boost::optional<double> ratedHeatingCapacity() const; | ||
| 54 | |||
| 55 | bool isRatedHeatingCapacityAutosized() const; | ||
| 56 | |||
| 57 | boost::optional<double> autosizedRatedHeatingCapacity(); | ||
| 58 | |||
| 59 | double ratedCOPforHeating() const; | ||
| 60 | |||
| 61 | Curve normalizedHeatingCapacityFunctionofTemperatureCurve() const; | ||
| 62 | |||
| 63 | Curve heatingEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 64 | |||
| 65 | Curve heatingEnergyInputRatioFunctionofPLRCurve() const; | ||
| 66 | |||
| 67 | //@} | ||
| 68 | /** @name Setters */ | ||
| 69 | //@{ | ||
| 70 | |||
| 71 | bool setRatedHeatingCapacity(double ratedHeatingCapacity); | ||
| 72 | |||
| 73 | void autosizeRatedHeatingCapacity(); | ||
| 74 | |||
| 75 | bool setRatedCOPforHeating(double ratedCOPforHeating); | ||
| 76 | |||
| 77 | bool setNormalizedHeatingCapacityFunctionofTemperatureCurve(const Curve& bivariateFunctions); | ||
| 78 | |||
| 79 | bool setHeatingEnergyInputRatioFunctionofTemperatureCurve(const Curve& bivariateFunctions); | ||
| 80 | |||
| 81 | bool setHeatingEnergyInputRatioFunctionofPLRCurve(const Curve& univariateFunctions); | ||
| 82 | |||
| 83 | //@} | ||
| 84 | /** @name Other */ | ||
| 85 | //@{ | ||
| 86 | |||
| 87 | // convenience function that returns a vector of HeatPumpAirToWaterHeating that use this as their Speed Data (either regular speed or Booster) | ||
| 88 | std::vector<HeatPumpAirToWaterHeating> heatPumpAirToWaterHeatings() const; | ||
| 89 | |||
| 90 | void autosize(); | ||
| 91 | |||
| 92 | void applySizingValues(); | ||
| 93 | |||
| 94 | //@} | ||
| 95 | protected: | ||
| 96 | private: | ||
| 97 | − | REGISTER_LOGGER("openstudio.model.HeatPumpAirToWaterHeatingSpeedData"); | |
| 98 | |||
| 99 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 100 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 101 | // objects should be returned as boost::optionals | ||
| 102 | boost::optional<Curve> optionalNormalizedHeatingCapacityFunctionofTemperatureCurve() const; | ||
| 103 | boost::optional<Curve> optionalHeatingEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 104 | boost::optional<Curve> optionalHeatingEnergyInputRatioFunctionofPLRCurve() const; | ||
| 105 | }; | ||
| 106 | |||
| 107 | } // namespace detail | ||
| 108 | |||
| 109 | } // namespace model | ||
| 110 | } // namespace openstudio | ||
| 111 | |||
| 112 | #endif // MODEL_HEATPUMPAIRTOWATERHEATINGSPEEDDATA_IMPL_HPP | ||
| 113 |