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/CoilWaterHeatingDesuperheater_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_COILWATERHEATINGDESUPERHEATER_IMPL_HPP
7 #define MODEL_COILWATERHEATINGDESUPERHEATER_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class CurveBiquadratic;
17 class HVACComponent;
18
19 namespace detail {
20
21 /** CoilWaterHeatingDesuperheater_Impl is a StraightComponent_Impl that is the implementation class for CoilWaterHeatingDesuperheater.*/
22 class MODEL_API CoilWaterHeatingDesuperheater_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 CoilWaterHeatingDesuperheater_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 CoilWaterHeatingDesuperheater_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 CoilWaterHeatingDesuperheater_Impl(const CoilWaterHeatingDesuperheater_Impl& other, Model_Impl* model, bool keepHandle);
33
34 33 virtual ~CoilWaterHeatingDesuperheater_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 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual unsigned inletPort() const override;
47
48 virtual unsigned outletPort() const override;
49
50 virtual bool addToNode(Node& node) override;
51
52 virtual ModelObject clone(Model model) const override;
53
54 virtual std::vector<IdfObject> remove() override;
55
56 virtual std::vector<IddObjectType> allowableChildTypes() const override;
57
58 virtual std::vector<ModelObject> children() const override;
59
60 virtual ComponentType componentType() const override;
61 virtual std::vector<FuelType> coolingFuelTypes() const override;
62 virtual std::vector<FuelType> heatingFuelTypes() const override;
63 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
64
65 //@}
66 /** @name Getters */
67 //@{
68
69 Schedule availabilitySchedule() const;
70
71 Schedule setpointTemperatureSchedule() const;
72
73 double deadBandTemperatureDifference() const;
74
75 bool isDeadBandTemperatureDifferenceDefaulted() const;
76
77 boost::optional<double> ratedHeatReclaimRecoveryEfficiency() const;
78
79 double ratedInletWaterTemperature() const;
80
81 double ratedOutdoorAirTemperature() const;
82
83 double maximumInletWaterTemperatureforHeatReclaim() const;
84
85 boost::optional<CurveBiquadratic> heatReclaimEfficiencyFunctionofTemperatureCurve() const;
86
87 // boost::optional<HVACComponent> tank() const;
88
89 boost::optional<ModelObject> heatingSource() const;
90
91 double waterFlowRate() const;
92
93 double waterPumpPower() const;
94
95 bool isWaterPumpPowerDefaulted() const;
96
97 double fractionofPumpHeattoWater() const;
98
99 bool isFractionofPumpHeattoWaterDefaulted() const;
100
101 double onCycleParasiticElectricLoad() const;
102
103 bool isOnCycleParasiticElectricLoadDefaulted() const;
104
105 double offCycleParasiticElectricLoad() const;
106
107 bool isOffCycleParasiticElectricLoadDefaulted() const;
108
109 //@}
110 /** @name Setters */
111 //@{
112
113 bool setAvailabilitySchedule(Schedule& schedule);
114
115 void resetAvailabilitySchedule();
116
117 bool setSetpointTemperatureSchedule(Schedule& schedule);
118
119 bool setDeadBandTemperatureDifference(double deadBandTemperatureDifference);
120
121 void resetDeadBandTemperatureDifference();
122
123 bool setRatedHeatReclaimRecoveryEfficiency(double ratedHeatReclaimRecoveryEfficiency);
124
125 void resetRatedHeatReclaimRecoveryEfficiency();
126
127 bool setRatedInletWaterTemperature(double ratedInletWaterTemperature);
128
129 bool setRatedOutdoorAirTemperature(double ratedOutdoorAirTemperature);
130
131 bool setMaximumInletWaterTemperatureforHeatReclaim(double maximumInletWaterTemperatureforHeatReclaim);
132
133 bool setHeatReclaimEfficiencyFunctionofTemperatureCurve(const CurveBiquadratic& curveBiquadratic);
134
135 void resetHeatReclaimEfficiencyFunctionofTemperatureCurve();
136
137 // bool setTank(const HVACComponent& waterHeater);
138
139 bool setHeatingSource(const ModelObject& heatingSource);
140
141 void resetHeatingSource();
142
143 bool setWaterFlowRate(double waterFlowRate);
144
145 bool setWaterPumpPower(double waterPumpPower);
146
147 void resetWaterPumpPower();
148
149 bool setFractionofPumpHeattoWater(double fractionofPumpHeattoWater);
150
151 void resetFractionofPumpHeattoWater();
152
153 bool setOnCycleParasiticElectricLoad(double onCycleParasiticElectricLoad);
154
155 void resetOnCycleParasiticElectricLoad();
156
157 bool setOffCycleParasiticElectricLoad(double offCycleParasiticElectricLoad);
158
159 void resetOffCycleParasiticElectricLoad();
160
161 //@}
162 /** @name Other */
163 //@{
164
165 boost::optional<ModelObject> heatRejectionTarget() const;
166
167 bool addToHeatRejectionTarget(const ModelObject& heatRejectionTarget);
168
169 void removeFromHeatRejectionTarget();
170
171 //@}
172 protected:
173 private:
174 − REGISTER_LOGGER("openstudio.model.CoilWaterHeatingDesuperheater");
175
176 // Optional getters for use by methods like children() so can remove() if the constructor fails.
177 // There are other ways for the public versions of these getters to fail--perhaps all required
178 // objects should be returned as boost::optionals
179 boost::optional<Schedule> optionalSetpointTemperatureSchedule() const;
180 // boost::optional<HVACComponent> optionalTank() const;
181 };
182
183 } // namespace detail
184
185 } // namespace model
186 } // namespace openstudio
187
188 #endif // MODEL_COILWATERHEATINGDESUPERHEATER_IMPL_HPP
189