GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 80.0% 4 / 1 / 6
Functions: 80.0% 4 / 1 / 6
Branches: -% 0 / 1 / 1

src/model/HeatPumpAirToWaterHeatingSpeedData.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_HPP
7 #define MODEL_HEATPUMPAIRTOWATERHEATINGSPEEDDATA_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17 class HeatPumpAirToWaterHeating;
18
19 namespace detail {
20
21 class HeatPumpAirToWaterHeatingSpeedData_Impl;
22
23 } // namespace detail
24
25 /** HeatPumpAirToWaterHeatingSpeedData is a ResourceObject that wraps the OpenStudio IDD object 'OS:HeatPump:AirToWater:Heating:SpeedData'. */
26 class MODEL_API HeatPumpAirToWaterHeatingSpeedData : public ResourceObject
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit HeatPumpAirToWaterHeatingSpeedData(const Model& model);
33
34 explicit HeatPumpAirToWaterHeatingSpeedData(const Model& model, const Curve& normalizedHeatingCapacityFunctionofTemperatureCurve,
35 const Curve& heatingEnergyInputRatioFunctionofTemperatureCurve,
36 const Curve& heatingEnergyInputRatioFunctionofPLRCurve);
37
38 2252 virtual ~HeatPumpAirToWaterHeatingSpeedData() = default;
39 // Default the copy and move operators because the virtual dtor is explicit
40 22 HeatPumpAirToWaterHeatingSpeedData(const HeatPumpAirToWaterHeatingSpeedData& other) = default;
41 1588 HeatPumpAirToWaterHeatingSpeedData(HeatPumpAirToWaterHeatingSpeedData&& other) = default;
42 ✗ HeatPumpAirToWaterHeatingSpeedData& operator=(const HeatPumpAirToWaterHeatingSpeedData&) = default;
43 5 HeatPumpAirToWaterHeatingSpeedData& operator=(HeatPumpAirToWaterHeatingSpeedData&&) = default;
44
45 //@}
46
47 static IddObjectType iddObjectType();
48
49 /** @name Getters */
50 //@{
51
52 boost::optional<double> ratedHeatingCapacity() const;
53
54 bool isRatedHeatingCapacityAutosized() const;
55
56 double ratedCOPforHeating() const;
57
58 Curve normalizedHeatingCapacityFunctionofTemperatureCurve() const;
59
60 Curve heatingEnergyInputRatioFunctionofTemperatureCurve() const;
61
62 Curve heatingEnergyInputRatioFunctionofPLRCurve() const;
63
64 //@}
65 /** @name Setters */
66 //@{
67
68 bool setRatedHeatingCapacity(double ratedHeatingCapacity);
69
70 void autosizeRatedHeatingCapacity();
71
72 bool setRatedCOPforHeating(double ratedCOPforHeating);
73
74 bool setNormalizedHeatingCapacityFunctionofTemperatureCurve(const Curve& bivariateFunctions);
75
76 bool setHeatingEnergyInputRatioFunctionofTemperatureCurve(const Curve& bivariateFunctions);
77
78 bool setHeatingEnergyInputRatioFunctionofPLRCurve(const Curve& univariateFunctions);
79
80 //@}
81 /** @name Other */
82 //@{
83
84 // convenience function that returns a vector of HeatPumpAirToWaterHeating that use this as their Speed Data (either regular speed or Booster)
85 std::vector<HeatPumpAirToWaterHeating> heatPumpAirToWaterHeatings() const;
86
87 boost::optional<double> autosizedRatedHeatingCapacity();
88
89 void autosize();
90
91 //@}
92 protected:
93 /// @cond
94 using ImplType = detail::HeatPumpAirToWaterHeatingSpeedData_Impl;
95
96 explicit HeatPumpAirToWaterHeatingSpeedData(std::shared_ptr<detail::HeatPumpAirToWaterHeatingSpeedData_Impl> impl);
97
98 friend class detail::HeatPumpAirToWaterHeatingSpeedData_Impl;
99 friend class Model;
100 friend class IdfObject;
101 friend class openstudio::detail::IdfObject_Impl;
102 /// @endcond
103 private:
104 − REGISTER_LOGGER("openstudio.model.HeatPumpAirToWaterHeatingSpeedData");
105 };
106
107 /** \relates HeatPumpAirToWaterHeatingSpeedData*/
108 using OptionalHeatPumpAirToWaterHeatingSpeedData = boost::optional<HeatPumpAirToWaterHeatingSpeedData>;
109
110 /** \relates HeatPumpAirToWaterHeatingSpeedData*/
111 using HeatPumpAirToWaterHeatingSpeedDataVector = std::vector<HeatPumpAirToWaterHeatingSpeedData>;
112
113 } // namespace model
114 } // namespace openstudio
115
116 #endif // MODEL_HEATPUMPAIRTOWATERHEATINGSPEEDDATA_HPP
117