GCC Code Coverage Report


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

src/model/CoilCoolingDXVariableSpeedSpeedData_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_COILCOOLINGDXVARIABLESPEEDSPEEDDATA_IMPL_HPP
7 #define MODEL_COILCOOLINGDXVARIABLESPEEDSPEEDDATA_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Curve;
16
17 namespace detail {
18
19 /** CoilCoolingDXVariableSpeedSpeedData_Impl is a ParentObject_Impl that is the implementation class for CoilCoolingDXVariableSpeedSpeedData.*/
20 class MODEL_API CoilCoolingDXVariableSpeedSpeedData_Impl : public ParentObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilCoolingDXVariableSpeedSpeedData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilCoolingDXVariableSpeedSpeedData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilCoolingDXVariableSpeedSpeedData_Impl(const CoilCoolingDXVariableSpeedSpeedData_Impl& other, Model_Impl* model, bool keepHandle);
31
32 9 virtual ~CoilCoolingDXVariableSpeedSpeedData_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual ModelObject clone(Model model) const override;
43
44 virtual std::vector<ModelObject> children() const override;
45
46 //@}
47 /** @name Getters */
48 //@{
49
50 double referenceUnitGrossRatedTotalCoolingCapacity() const;
51
52 double referenceUnitGrossRatedSensibleHeatRatio() const;
53
54 double referenceUnitGrossRatedCoolingCOP() const;
55
56 double referenceUnitRatedAirFlowRate() const;
57
58 double ratedEvaporatorFanPowerPerVolumeFlowRate2017() const;
59
60 double ratedEvaporatorFanPowerPerVolumeFlowRate2023() const;
61
62 boost::optional<double> referenceUnitRatedCondenserAirFlowRate() const;
63
64 boost::optional<double> referenceUnitRatedPadEffectivenessofEvapPrecooling() const;
65
66 Curve totalCoolingCapacityFunctionofTemperatureCurve() const;
67
68 Curve totalCoolingCapacityFunctionofAirFlowFractionCurve() const;
69
70 Curve energyInputRatioFunctionofTemperatureCurve() const;
71
72 Curve energyInputRatioFunctionofAirFlowFractionCurve() const;
73
74 //@}
75 /** @name Setters */
76 //@{
77
78 bool setReferenceUnitGrossRatedTotalCoolingCapacity(double referenceUnitGrossRatedTotalCoolingCapacity);
79
80 bool setReferenceUnitGrossRatedSensibleHeatRatio(double referenceUnitGrossRatedSensibleHeatRatio);
81
82 bool setReferenceUnitGrossRatedCoolingCOP(double referenceUnitGrossRatedCoolingCOP);
83
84 bool setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate);
85
86 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedEvaporatorFanPowerPerVolumeFlowRate2017);
87
88 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedEvaporatorFanPowerPerVolumeFlowRate2023);
89
90 bool setReferenceUnitRatedCondenserAirFlowRate(boost::optional<double> referenceUnitRatedCondenserAirFlowRate);
91
92 void resetReferenceUnitRatedCondenserAirFlowRate();
93
94 bool setReferenceUnitRatedPadEffectivenessofEvapPrecooling(boost::optional<double> referenceUnitRatedPadEffectivenessofEvapPrecooling);
95
96 void resetReferenceUnitRatedPadEffectivenessofEvapPrecooling();
97
98 bool setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve);
99
100 bool setTotalCoolingCapacityFunctionofAirFlowFractionCurve(const Curve& curve);
101
102 bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve);
103
104 bool setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve);
105
106 //@}
107 /** @name Other */
108 //@{
109
110 //@}
111 protected:
112 private:
113 − REGISTER_LOGGER("openstudio.model.CoilCoolingDXVariableSpeedSpeedData");
114
115 // Optional getters for use by methods like children() so can remove() if the constructor fails.
116 // There are other ways for the public versions of these getters to fail--perhaps all required
117 // objects should be returned as boost::optionals
118 boost::optional<Curve> optionalTotalCoolingCapacityFunctionofTemperatureCurve() const;
119 boost::optional<Curve> optionalTotalCoolingCapacityFunctionofAirFlowFractionCurve() const;
120 boost::optional<Curve> optionalEnergyInputRatioFunctionofTemperatureCurve() const;
121 boost::optional<Curve> optionalEnergyInputRatioFunctionofAirFlowFractionCurve() const;
122 };
123
124 } // namespace detail
125
126 } // namespace model
127 } // namespace openstudio
128
129 #endif // MODEL_COILCOOLINGDXVARIABLESPEEDSPEEDDATA_IMPL_HPP
130