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/WaterHeaterHeatPumpWrappedCondenser_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_WATERHEATERHEATPUMPWRAPPEDCONDENSER_IMPL_HPP
7 #define MODEL_WATERHEATERHEATPUMPWRAPPEDCONDENSER_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ZoneHVACComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class HVACComponent;
17
18 namespace detail {
19
20 /** WaterHeaterHeatPumpWrappedCondenser_Impl is a ZoneHVACComponent_Impl that is the implementation class for WaterHeaterHeatPumpWrappedCondenser.*/
21 class MODEL_API WaterHeaterHeatPumpWrappedCondenser_Impl : public ZoneHVACComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 WaterHeaterHeatPumpWrappedCondenser_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 WaterHeaterHeatPumpWrappedCondenser_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 WaterHeaterHeatPumpWrappedCondenser_Impl(const WaterHeaterHeatPumpWrappedCondenser_Impl& other, Model_Impl* model, bool keepHandle);
32
33 9 virtual ~WaterHeaterHeatPumpWrappedCondenser_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 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual ComponentType componentType() const override;
46 virtual std::vector<FuelType> coolingFuelTypes() const override;
47 virtual std::vector<FuelType> heatingFuelTypes() const override;
48 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 boost::optional<Schedule> availabilitySchedule() const;
55
56 Schedule compressorSetpointTemperatureSchedule() const;
57
58 double deadBandTemperatureDifference() const;
59
60 double condenserBottomLocation() const;
61
62 double condenserTopLocation() const;
63
64 boost::optional<double> evaporatorAirFlowRate() const;
65
66 bool isEvaporatorAirFlowRateAutocalculated() const;
67
68 std::string inletAirConfiguration() const;
69
70 boost::optional<Schedule> inletAirTemperatureSchedule() const;
71
72 boost::optional<Schedule> inletAirHumiditySchedule() const;
73
74 HVACComponent tank() const;
75
76 ModelObject dXCoil() const;
77
78 double minimumInletAirTemperatureforCompressorOperation() const;
79
80 double maximumInletAirTemperatureforCompressorOperation() const;
81
82 std::string compressorLocation() const;
83
84 boost::optional<Schedule> compressorAmbientTemperatureSchedule() const;
85
86 HVACComponent fan() const;
87
88 std::string fanPlacement() const;
89
90 double onCycleParasiticElectricLoad() const;
91
92 double offCycleParasiticElectricLoad() const;
93
94 std::string parasiticHeatRejectionLocation() const;
95
96 boost::optional<Schedule> inletAirMixerSchedule() const;
97
98 std::string tankElementControlLogic() const;
99
100 boost::optional<double> controlSensor1HeightInStratifiedTank() const;
101
102 double controlSensor1Weight() const;
103
104 boost::optional<double> controlSensor2HeightInStratifiedTank() const;
105
106 //@}
107 /** @name Setters */
108 //@{
109
110 bool setAvailabilitySchedule(Schedule& schedule);
111
112 void resetAvailabilitySchedule();
113
114 bool setCompressorSetpointTemperatureSchedule(Schedule& schedule);
115
116 bool setDeadBandTemperatureDifference(double deadBandTemperatureDifference);
117
118 bool setCondenserBottomLocation(double condenserBottomLocation);
119
120 bool setCondenserTopLocation(double condenserTopLocation);
121
122 bool setEvaporatorAirFlowRate(boost::optional<double> evaporatorAirFlowRate);
123
124 void autocalculateEvaporatorAirFlowRate();
125
126 bool setInletAirConfiguration(const std::string& inletAirConfiguration);
127
128 bool setInletAirTemperatureSchedule(Schedule& schedule);
129
130 void resetInletAirTemperatureSchedule();
131
132 bool setInletAirHumiditySchedule(Schedule& schedule);
133
134 void resetInletAirHumiditySchedule();
135
136 bool setTank(const HVACComponent& tank);
137
138 bool setDXCoil(const ModelObject& coil);
139
140 bool setMinimumInletAirTemperatureforCompressorOperation(double minimumInletAirTemperatureforCompressorOperation);
141
142 bool setMaximumInletAirTemperatureforCompressorOperation(double maximumInletAirTemperatureforCompressorOperation);
143
144 bool setCompressorLocation(const std::string& compressorLocation);
145
146 bool setCompressorAmbientTemperatureSchedule(Schedule& schedule);
147
148 void resetCompressorAmbientTemperatureSchedule();
149
150 bool setFan(const HVACComponent& fan);
151
152 bool setFanPlacement(const std::string& fanPlacement);
153
154 bool setOnCycleParasiticElectricLoad(double onCycleParasiticElectricLoad);
155
156 bool setOffCycleParasiticElectricLoad(double offCycleParasiticElectricLoad);
157
158 bool setParasiticHeatRejectionLocation(const std::string& parasiticHeatRejectionLocation);
159
160 bool setInletAirMixerSchedule(Schedule& schedule);
161
162 void resetInletAirMixerSchedule();
163
164 bool setTankElementControlLogic(const std::string& tankElementControlLogic);
165
166 bool setControlSensor1HeightInStratifiedTank(boost::optional<double> controlSensor1HeightInStratifiedTank);
167
168 void resetControlSensor1HeightInStratifiedTank();
169
170 bool setControlSensor1Weight(double controlSensor1Weight);
171
172 bool setControlSensor2HeightInStratifiedTank(boost::optional<double> controlSensor2HeightInStratifiedTank);
173
174 void resetControlSensor2HeightInStratifiedTank();
175
176 //@}
177 /** @name Other */
178 //@{
179
180 virtual unsigned inletPort() const override;
181
182 virtual unsigned outletPort() const override;
183
184 std::vector<ModelObject> children() const override;
185 ModelObject clone(Model model) const override;
186 bool addToThermalZone(ThermalZone& thermalZone) override;
187 std::vector<IdfObject> remove() override;
188
189 std::string airInletNodeName() const;
190 std::string airOutletNodeName() const;
191
192 //@}
193 protected:
194 private:
195 − REGISTER_LOGGER("openstudio.model.WaterHeaterHeatPumpWrappedCondenser");
196
197 boost::optional<Schedule> optionalCompressorSetpointTemperatureSchedule() const;
198 boost::optional<HVACComponent> optionalTank() const;
199 boost::optional<ModelObject> optionalDXCoil() const;
200 boost::optional<HVACComponent> optionalFan() const;
201 };
202
203 } // namespace detail
204
205 } // namespace model
206 } // namespace openstudio
207
208 #endif // MODEL_WATERHEATERHEATPUMPWRAPPEDCONDENSER_IMPL_HPP
209