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/CoilHeatingDXVariableSpeedSpeedData.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_COILHEATINGDXVARIABLESPEEDSPEEDDATA_HPP
7 #define MODEL_COILHEATINGDXVARIABLESPEEDSPEEDDATA_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 CoilHeatingDXVariableSpeedSpeedData_Impl;
21
22 } // namespace detail
23
24 /** CoilHeatingDXVariableSpeedSpeedData is a ParentObject that wraps the OpenStudio IDD object 'OS:Coil:Heating:DX:VariableSpeed:SpeedData'. */
25 class MODEL_API CoilHeatingDXVariableSpeedSpeedData : public ParentObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit CoilHeatingDXVariableSpeedSpeedData(const Model& model);
32
33 explicit CoilHeatingDXVariableSpeedSpeedData(const Model& model, const Curve& heatingCapacityFunctionofTemperatureCurve,
34 const Curve& totalHeatingCapacityFunctionofAirFlowFractionCurve,
35 const Curve& energyInputRatioFunctionofTemperatureCurve,
36 const Curve& energyInputRatioFunctionofAirFlowFractionCurve);
37
38 48 virtual ~CoilHeatingDXVariableSpeedSpeedData() override = default;
39 // Default the copy and move operators because the virtual dtor is explicit
40 14 CoilHeatingDXVariableSpeedSpeedData(const CoilHeatingDXVariableSpeedSpeedData& other) = default;
41 17 CoilHeatingDXVariableSpeedSpeedData(CoilHeatingDXVariableSpeedSpeedData&& other) = default;
42 ✗ CoilHeatingDXVariableSpeedSpeedData& operator=(const CoilHeatingDXVariableSpeedSpeedData&) = default;
43 ✗ CoilHeatingDXVariableSpeedSpeedData& operator=(CoilHeatingDXVariableSpeedSpeedData&&) = default;
44
45 //@}
46
47 static IddObjectType iddObjectType();
48
49 /** @name Getters */
50 //@{
51
52 double referenceUnitGrossRatedHeatingCapacity() const;
53
54 double referenceUnitGrossRatedHeatingCOP() const;
55
56 double referenceUnitRatedAirFlowRate() const;
57
58 double ratedSupplyFanPowerPerVolumeFlowRate2017() const;
59
60 double ratedSupplyFanPowerPerVolumeFlowRate2023() const;
61
62 Curve heatingCapacityFunctionofTemperatureCurve() const;
63
64 Curve totalHeatingCapacityFunctionofAirFlowFractionCurve() const;
65
66 Curve energyInputRatioFunctionofTemperatureCurve() const;
67
68 Curve energyInputRatioFunctionofAirFlowFractionCurve() const;
69
70 //@}
71 /** @name Setters */
72 //@{
73
74 bool setReferenceUnitGrossRatedHeatingCapacity(double referenceUnitGrossRatedHeatingCapacity);
75
76 bool setReferenceUnitGrossRatedHeatingCOP(double referenceUnitGrossRatedHeatingCOP);
77
78 bool setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate);
79
80 bool setRatedSupplyFanPowerPerVolumeFlowRate2017(double ratedSupplyFanPowerPerVolumeFlowRate2017);
81
82 bool setRatedSupplyFanPowerPerVolumeFlowRate2023(double ratedSupplyFanPowerPerVolumeFlowRate2023);
83
84 bool setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve);
85
86 bool setTotalHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve);
87
88 bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve);
89
90 bool setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve);
91
92 //@}
93 /** @name Other */
94 //@{
95
96 //@}
97 protected:
98 /// @cond
99 using ImplType = detail::CoilHeatingDXVariableSpeedSpeedData_Impl;
100
101 explicit CoilHeatingDXVariableSpeedSpeedData(std::shared_ptr<detail::CoilHeatingDXVariableSpeedSpeedData_Impl> impl);
102
103 friend class detail::CoilHeatingDXVariableSpeedSpeedData_Impl;
104 friend class Model;
105 friend class IdfObject;
106 friend class openstudio::detail::IdfObject_Impl;
107 /// @endcond
108 private:
109 REGISTER_LOGGER("openstudio.model.CoilHeatingDXVariableSpeedSpeedData");
110 };
111
112 /** \relates CoilHeatingDXVariableSpeedSpeedData*/
113 using OptionalCoilHeatingDXVariableSpeedSpeedData = boost::optional<CoilHeatingDXVariableSpeedSpeedData>;
114
115 /** \relates CoilHeatingDXVariableSpeedSpeedData*/
116 using CoilHeatingDXVariableSpeedSpeedDataVector = std::vector<CoilHeatingDXVariableSpeedSpeedData>;
117
118 } // namespace model
119 } // namespace openstudio
120
121 #endif // MODEL_COILHEATINGDXVARIABLESPEEDSPEEDDATA_HPP
122