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/AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_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_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIRMULTISPEED_IMPL_HPP
7 #define MODEL_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIRMULTISPEED_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 ThermalZone;
17
18 namespace detail {
19
20 /** AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl is a StraightComponent_Impl that is the implementation class for AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.*/
21 class MODEL_API AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(const AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 16 virtual ~AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_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 std::vector<ModelObject> children() const override;
47
48 virtual unsigned inletPort() const override;
49 virtual unsigned outletPort() const override;
50 virtual bool addToNode(Node& node) override;
51
52 virtual ModelObject clone(Model model) const override;
53
54 virtual ComponentType componentType() const override;
55 virtual std::vector<FuelType> coolingFuelTypes() const override;
56 virtual std::vector<FuelType> heatingFuelTypes() const override;
57 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
58
59 //@}
60 /** @name Getters */
61 //@{
62
63 boost::optional<Schedule> availabilitySchedule() const;
64
65 boost::optional<ThermalZone> controllingZoneorThermostatLocation() const;
66
67 HVACComponent supplyAirFan() const;
68
69 std::string supplyAirFanPlacement() const;
70
71 Schedule supplyAirFanOperatingModeSchedule() const;
72
73 HVACComponent heatingCoil() const;
74
75 double dXHeatingCoilSizingRatio() const;
76
77 HVACComponent coolingCoil() const;
78
79 HVACComponent supplementalHeatingCoil() const;
80
81 boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater() const;
82
83 bool isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const;
84
85 double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const;
86
87 double auxiliaryOnCycleElectricPower() const;
88
89 double auxiliaryOffCycleElectricPower() const;
90
91 double designHeatRecoveryWaterFlowRate() const;
92
93 double maximumTemperatureforHeatRecovery() const;
94
95 boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
96
97 bool isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const;
98
99 int numberofSpeedsforHeating() const;
100
101 int numberofSpeedsforCooling() const;
102
103 boost::optional<double> speed1SupplyAirFlowRateDuringHeatingOperation() const;
104
105 bool isSpeed1SupplyAirFlowRateDuringHeatingOperationAutosized() const;
106
107 boost::optional<double> speed2SupplyAirFlowRateDuringHeatingOperation() const;
108
109 bool isSpeed2SupplyAirFlowRateDuringHeatingOperationAutosized() const;
110
111 boost::optional<double> speed3SupplyAirFlowRateDuringHeatingOperation() const;
112
113 bool isSpeed3SupplyAirFlowRateDuringHeatingOperationAutosized() const;
114
115 boost::optional<double> speed4SupplyAirFlowRateDuringHeatingOperation() const;
116
117 bool isSpeed4SupplyAirFlowRateDuringHeatingOperationAutosized() const;
118
119 boost::optional<double> speed1SupplyAirFlowRateDuringCoolingOperation() const;
120
121 bool isSpeed1SupplyAirFlowRateDuringCoolingOperationAutosized() const;
122
123 boost::optional<double> speed2SupplyAirFlowRateDuringCoolingOperation() const;
124
125 bool isSpeed2SupplyAirFlowRateDuringCoolingOperationAutosized() const;
126
127 boost::optional<double> speed3SupplyAirFlowRateDuringCoolingOperation() const;
128
129 bool isSpeed3SupplyAirFlowRateDuringCoolingOperationAutosized() const;
130
131 boost::optional<double> speed4SupplyAirFlowRateDuringCoolingOperation() const;
132
133 bool isSpeed4SupplyAirFlowRateDuringCoolingOperationAutosized() const;
134
135 boost::optional<double> autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const;
136
137 boost::optional<double> autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
138
139 boost::optional<double> autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation() const;
140
141 boost::optional<double> autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation() const;
142
143 boost::optional<double> autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation() const;
144
145 boost::optional<double> autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation() const;
146
147 boost::optional<double> autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation() const;
148
149 boost::optional<double> autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation() const;
150
151 boost::optional<double> autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation() const;
152
153 boost::optional<double> autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation() const;
154
155 virtual void autosize() override;
156
157 virtual void applySizingValues() override;
158
159 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
160
161 virtual std::vector<std::string> emsInternalVariableNames() const override;
162
163 //@}
164 /** @name Setters */
165 //@{
166
167 bool setAvailabilitySchedule(Schedule& schedule);
168
169 void resetAvailabilitySchedule();
170
171 bool setControllingZoneorThermostatLocation(const boost::optional<ThermalZone>& thermalZone);
172
173 void resetControllingZoneorThermostatLocation();
174
175 bool setSupplyAirFan(const HVACComponent& fan);
176
177 bool setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement);
178
179 bool setSupplyAirFanOperatingModeSchedule(Schedule& schedule);
180
181 bool setHeatingCoil(const HVACComponent& coil);
182
183 bool setDXHeatingCoilSizingRatio(double dXHeatingCoilSizingRatio);
184
185 bool setCoolingCoil(const HVACComponent& coil);
186
187 bool setSupplementalHeatingCoil(const HVACComponent& coil);
188
189 bool setMaximumSupplyAirTemperaturefromSupplementalHeater(boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater);
190
191 void autosizeMaximumSupplyAirTemperaturefromSupplementalHeater();
192
193 bool setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation);
194
195 bool setAuxiliaryOnCycleElectricPower(double auxiliaryOnCycleElectricPower);
196
197 bool setAuxiliaryOffCycleElectricPower(double auxiliaryOffCycleElectricPower);
198
199 bool setDesignHeatRecoveryWaterFlowRate(double designHeatRecoveryWaterFlowRate);
200
201 bool setMaximumTemperatureforHeatRecovery(double maximumTemperatureforHeatRecovery);
202
203 bool setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded);
204
205 void autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
206
207 bool setNumberofSpeedsforHeating(int numberofSpeedsforHeating);
208
209 bool setNumberofSpeedsforCooling(int numberofSpeedsforCooling);
210
211 bool setSpeed1SupplyAirFlowRateDuringHeatingOperation(boost::optional<double> speed1SupplyAirFlowRateDuringHeatingOperation);
212
213 void autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation();
214
215 bool setSpeed2SupplyAirFlowRateDuringHeatingOperation(boost::optional<double> speed2SupplyAirFlowRateDuringHeatingOperation);
216
217 void autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation();
218
219 bool setSpeed3SupplyAirFlowRateDuringHeatingOperation(boost::optional<double> speed3SupplyAirFlowRateDuringHeatingOperation);
220
221 void autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation();
222
223 bool setSpeed4SupplyAirFlowRateDuringHeatingOperation(boost::optional<double> speed4SupplyAirFlowRateDuringHeatingOperation);
224
225 void autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation();
226
227 bool setSpeed1SupplyAirFlowRateDuringCoolingOperation(boost::optional<double> speed1SupplyAirFlowRateDuringCoolingOperation);
228
229 void autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation();
230
231 bool setSpeed2SupplyAirFlowRateDuringCoolingOperation(boost::optional<double> speed2SupplyAirFlowRateDuringCoolingOperation);
232
233 void autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation();
234
235 bool setSpeed3SupplyAirFlowRateDuringCoolingOperation(boost::optional<double> speed3SupplyAirFlowRateDuringCoolingOperation);
236
237 void autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation();
238
239 bool setSpeed4SupplyAirFlowRateDuringCoolingOperation(boost::optional<double> speed4SupplyAirFlowRateDuringCoolingOperation);
240
241 void autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation();
242
243 //@}
244 /** @name Other */
245 //@{
246
247 //@}
248 protected:
249 private:
250 − REGISTER_LOGGER("openstudio.model.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed");
251
252 boost::optional<HVACComponent> optionalSupplyAirFan() const;
253 boost::optional<HVACComponent> optionalHeatingCoil() const;
254 boost::optional<HVACComponent> optionalCoolingCoil() const;
255 boost::optional<HVACComponent> optionalSupplementalHeatingCoil() const;
256 };
257
258 } // namespace detail
259
260 } // namespace model
261 } // namespace openstudio
262
263 #endif // MODEL_AIRLOOPHVACUNITARYHEATPUMPAIRTOAIRMULTISPEED_IMPL_HPP
264