GCC Code Coverage Report


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

src/model/HeatPumpWaterToWaterEquationFitCooling_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_HEATPUMPWATERTOWATEREQUATIONFITCOOLING_IMPL_HPP
7 #define MODEL_HEATPUMPWATERTOWATEREQUATIONFITCOOLING_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "WaterToWaterComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class HeatPumpWaterToWaterEquationFitHeating;
17 class CurveQuadLinear;
18
19 namespace detail {
20
21 /** HeatPumpWaterToWaterEquationFitCooling_Impl is a WaterToWaterComponent_Impl that is the implementation class for HeatPumpWaterToWaterEquationFitCooling.*/
22 class MODEL_API HeatPumpWaterToWaterEquationFitCooling_Impl : public WaterToWaterComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 HeatPumpWaterToWaterEquationFitCooling_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 HeatPumpWaterToWaterEquationFitCooling_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 HeatPumpWaterToWaterEquationFitCooling_Impl(const HeatPumpWaterToWaterEquationFitCooling_Impl& other, Model_Impl* model, bool keepHandle);
33
34 5 virtual ~HeatPumpWaterToWaterEquationFitCooling_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual unsigned supplyInletPort() const override;
45
46 virtual unsigned supplyOutletPort() const override;
47
48 virtual unsigned demandInletPort() const override;
49
50 virtual unsigned demandOutletPort() const override;
51
52 virtual void autosize() override;
53
54 virtual void applySizingValues() override;
55
56 virtual ComponentType componentType() const override;
57 virtual std::vector<FuelType> coolingFuelTypes() const override;
58 virtual std::vector<FuelType> heatingFuelTypes() const override;
59 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
60
61 //@}
62 /** @name Getters */
63 //@{
64
65 boost::optional<double> referenceLoadSideFlowRate() const;
66
67 double ratedLoadSideFlowRate() const;
68
69 bool isReferenceLoadSideFlowRateAutosized() const;
70
71 boost::optional<double> referenceSourceSideFlowRate() const;
72
73 double ratedSourceSideFlowRate() const;
74
75 bool isReferenceSourceSideFlowRateAutosized() const;
76
77 boost::optional<double> ratedCoolingCapacity() const;
78
79 bool isRatedCoolingCapacityAutosized() const;
80
81 boost::optional<double> ratedCoolingPowerConsumption() const;
82
83 bool isRatedCoolingPowerConsumptionAutosized() const;
84
85 CurveQuadLinear coolingCapacityCurve() const;
86
87 CurveQuadLinear coolingCompressorPowerCurve() const;
88
89 double referenceCoefficientofPerformance() const;
90
91 double sizingFactor() const;
92
93 boost::optional<HeatPumpWaterToWaterEquationFitHeating> companionHeatingHeatPump() const;
94
95 boost::optional<double> autosizedReferenceLoadSideFlowRate() const;
96
97 boost::optional<double> autosizedReferenceSourceSideFlowRate() const;
98
99 boost::optional<double> autosizedRatedCoolingCapacity() const;
100
101 boost::optional<double> autosizedRatedCoolingPowerConsumption() const;
102
103 //@}
104 /** @name Setters */
105 //@{
106
107 bool setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate);
108
109 void autosizeReferenceLoadSideFlowRate();
110
111 bool setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate);
112
113 void autosizeReferenceSourceSideFlowRate();
114
115 bool setRatedCoolingCapacity(double ratedCoolingCapacity);
116
117 void autosizeRatedCoolingCapacity();
118
119 bool setRatedCoolingPowerConsumption(double ratedCoolingPowerConsumption);
120
121 void autosizeRatedCoolingPowerConsumption();
122
123 bool setCoolingCapacityCurve(const CurveQuadLinear& coolingCapacityCurve);
124
125 bool setCoolingCompressorPowerCurve(const CurveQuadLinear& coolingCompressorPowerCurve);
126
127 bool setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance);
128
129 bool setSizingFactor(double sizingFactor);
130
131 bool setCompanionHeatingHeatPump(const HeatPumpWaterToWaterEquationFitHeating& companionHP);
132
133 //@}
134 /** @name Other */
135 //@{
136
137 //@}
138 protected:
139 private:
140 REGISTER_LOGGER("openstudio.model.HeatPumpWaterToWaterEquationFitCooling");
141 };
142
143 } // namespace detail
144
145 } // namespace model
146 } // namespace openstudio
147
148 #endif // MODEL_HEATPUMPWATERTOWATEREQUATIONFITCOOLING_IMPL_HPP
149