GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData.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_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEEDSPEEDDATA_HPP
7 #define MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEEDSPEEDDATA_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17
18 namespace detail {
19
20 class CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData_Impl;
21
22 } // namespace detail
23
24 /** CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData is a ParentObject that wraps the OpenStudio IDD object 'OS:Coil:WaterHeating:AirToWaterHeatPump:VariableSpeed:SpeedData'. */
25 class MODEL_API CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData : public ParentObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData(const Model& model);
32
33 52 virtual ~CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 7 CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& other) = default;
36 17 CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData(CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData&& other) = default;
37 ✗ CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& operator=(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData&) = default;
38 ✗ CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& operator=(CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 /** @name Getters */
45 //@{
46
47 double ratedWaterHeatingCapacity() const;
48
49 double ratedWaterHeatingCOP() const;
50
51 double ratedSensibleHeatRatio() const;
52
53 double referenceUnitRatedAirFlowRate() const;
54
55 double referenceUnitRatedWaterFlowRate() const;
56
57 double referenceUnitWaterPumpInputPowerAtRatedConditions() const;
58
59 Curve totalWaterHeatingCapacityFunctionofTemperatureCurve() const;
60
61 Curve totalWaterHeatingCapacityFunctionofAirFlowFractionCurve() const;
62
63 Curve totalWaterHeatingCapacityFunctionofWaterFlowFractionCurve() const;
64
65 Curve copFunctionofTemperatureCurve() const;
66
67 Curve copFunctionofAirFlowFractionCurve() const;
68
69 Curve copFunctionofWaterFlowFractionCurve() const;
70
71 //@}
72 /** @name Setters */
73 //@{
74
75 bool setRatedWaterHeatingCapacity(double ratedWaterHeatingCapacity);
76
77 bool setRatedWaterHeatingCOP(double ratedWaterHeatingCOP);
78
79 bool setRatedSensibleHeatRatio(double ratedSensibleHeatRatio);
80
81 bool setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate);
82
83 bool setReferenceUnitRatedWaterFlowRate(double referenceUnitRatedWaterFlowRate);
84
85 bool setReferenceUnitWaterPumpInputPowerAtRatedConditions(double referenceUnitWaterPumpInputPowerAtRatedConditions);
86
87 bool setTotalWaterHeatingCapacityFunctionofTemperatureCurve(const Curve& curve);
88
89 bool setTotalWaterHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve);
90
91 bool setTotalWaterHeatingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve);
92
93 bool setCOPFunctionofTemperatureCurve(const Curve& curve);
94
95 bool setCOPFunctionofAirFlowFractionCurve(const Curve& curve);
96
97 bool setCOPFunctionofWaterFlowFractionCurve(const Curve& curve);
98
99 //@}
100 /** @name Other */
101 //@{
102
103 //@}
104 protected:
105 /// @cond
106 using ImplType = detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData_Impl;
107
108 explicit CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData(
109 std::shared_ptr<detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData_Impl> impl);
110
111 friend class detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData_Impl;
112 friend class Model;
113 friend class IdfObject;
114 friend class openstudio::detail::IdfObject_Impl;
115 /// @endcond
116 private:
117 REGISTER_LOGGER("openstudio.model.CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData");
118 };
119
120 /** \relates CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData*/
121 using OptionalCoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData = boost::optional<CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData>;
122
123 /** \relates CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData*/
124 using CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedDataVector = std::vector<CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData>;
125
126 } // namespace model
127 } // namespace openstudio
128
129 #endif // MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEEDSPEEDDATA_HPP
130