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/CoilHeatingDXMultiSpeedStageData_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_COILHEATINGDXMULTISPEEDSTAGEDATA_IMPL_HPP
7 #define MODEL_COILHEATINGDXMULTISPEEDSTAGEDATA_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Curve;
16 class CoilHeatingDXMultiSpeed;
17
18 namespace detail {
19
20 /** CoilHeatingDXMultiSpeedStageData_Impl is a ParentObject_Impl that is the implementation class for CoilHeatingDXMultiSpeedStageData.*/
21 class MODEL_API CoilHeatingDXMultiSpeedStageData_Impl : public ParentObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoilHeatingDXMultiSpeedStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoilHeatingDXMultiSpeedStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoilHeatingDXMultiSpeedStageData_Impl(const CoilHeatingDXMultiSpeedStageData_Impl& other, Model_Impl* model, bool keepHandle);
32
33 60 virtual ~CoilHeatingDXMultiSpeedStageData_Impl() override = 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 virtual ModelObject clone(Model model) const override;
44
45 virtual std::vector<ModelObject> children() const override;
46
47 // If this object is used by any CoilHeatingDXMultiSpeed, remove the corresponding extensible group to avoid having 'blanks'
48 virtual std::vector<IdfObject> remove() override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 boost::optional<double> grossRatedHeatingCapacity() const;
55
56 bool isGrossRatedHeatingCapacityAutosized() const;
57
58 double grossRatedHeatingCOP() const;
59
60 boost::optional<double> ratedAirFlowRate() const;
61
62 bool isRatedAirFlowRateAutosized() const;
63
64 double ratedSupplyAirFanPowerPerVolumeFlowRate2017() const;
65
66 double ratedSupplyAirFanPowerPerVolumeFlowRate2023() const;
67
68 Curve heatingCapacityFunctionofTemperatureCurve() const;
69
70 Curve heatingCapacityFunctionofFlowFractionCurve() const;
71
72 Curve energyInputRatioFunctionofTemperatureCurve() const;
73
74 Curve energyInputRatioFunctionofFlowFractionCurve() const;
75
76 Curve partLoadFractionCorrelationCurve() const;
77
78 double ratedWasteHeatFractionofPowerInput() const;
79
80 Curve wasteHeatFunctionofTemperatureCurve() const;
81
82 //@}
83 /** @name Setters */
84 //@{
85
86 bool setGrossRatedHeatingCapacity(boost::optional<double> grossRatedHeatingCapacity);
87
88 void autosizeGrossRatedHeatingCapacity();
89
90 bool setGrossRatedHeatingCOP(double grossRatedHeatingCOP);
91
92 bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate);
93
94 void autosizeRatedAirFlowRate();
95
96 bool setRatedSupplyAirFanPowerPerVolumeFlowRate2017(double ratedSupplyAirFanPowerPerVolumeFlowRate2017);
97
98 bool setRatedSupplyAirFanPowerPerVolumeFlowRate2023(double ratedSupplyAirFanPowerPerVolumeFlowRate2023);
99
100 bool setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve);
101
102 bool setHeatingCapacityFunctionofFlowFractionCurve(const Curve& curve);
103
104 bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve);
105
106 bool setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve);
107
108 bool setPartLoadFractionCorrelationCurve(const Curve& curve);
109
110 bool setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput);
111
112 bool setWasteHeatFunctionofTemperatureCurve(const Curve& curve);
113
114 //@}
115 /** @name Other */
116 //@{
117
118 boost::optional<double> autosizedGrossRatedHeatingCapacity() const;
119
120 boost::optional<double> autosizedRatedAirFlowRate() const;
121
122 void autosize();
123
124 void applySizingValues();
125
126 // Returns the CoilHeatingDXMultiSpeed that references it if any
127 boost::optional<CoilHeatingDXMultiSpeed> parentCoil() const;
128
129 // Used to determine the index of this performance data in the
130 // list of stages in the parent object.
131 boost::optional<std::tuple<int, CoilHeatingDXMultiSpeed>> stageIndexAndParentCoil() const;
132
133 //@}
134 protected:
135 private:
136 − REGISTER_LOGGER("openstudio.model.CoilHeatingDXMultiSpeedStageData");
137
138 // Optional getters for use by methods like children() so can remove() if the constructor fails.
139 // There are other ways for the public versions of these getters to fail--perhaps all required
140 // objects should be returned as boost::optionals
141 boost::optional<Curve> optionalHeatingCapacityFunctionofTemperatureCurve() const;
142 boost::optional<Curve> optionalHeatingCapacityFunctionofFlowFractionCurve() const;
143 boost::optional<Curve> optionalEnergyInputRatioFunctionofTemperatureCurve() const;
144 boost::optional<Curve> optionalEnergyInputRatioFunctionofFlowFractionCurve() const;
145 boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const;
146 boost::optional<Curve> optionalWasteHeatFunctionofTemperatureCurve() const;
147 };
148
149 } // namespace detail
150
151 } // namespace model
152 } // namespace openstudio
153
154 #endif // MODEL_COILHEATINGDXMULTISPEEDSTAGEDATA_IMPL_HPP
155