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/ZoneHVACLowTempRadiantConstFlow_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_ZONEHVACLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
7 #define MODEL_ZONEHVACLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Surface.hpp"
11 #include "Surface_Impl.hpp"
12 #include "ZoneHVACComponent_Impl.hpp"
13
14 namespace openstudio {
15 namespace model {
16
17 class Schedule;
18 class HVACComponent;
19
20 namespace detail {
21
22 /** ZoneHVACLowTempRadiantConstFlow_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACLowTempRadiantConstFlow.*/
23 class MODEL_API ZoneHVACLowTempRadiantConstFlow_Impl : public ZoneHVACComponent_Impl
24 {
25
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 ZoneHVACLowTempRadiantConstFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
31
32 ZoneHVACLowTempRadiantConstFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 ZoneHVACLowTempRadiantConstFlow_Impl(const ZoneHVACLowTempRadiantConstFlow_Impl& other, Model_Impl* model, bool keepHandle);
35
36 9 virtual ~ZoneHVACLowTempRadiantConstFlow_Impl() override = default;
37
38 //@}
39 /** @name Virtual Methods */
40 //@{
41 virtual ModelObject clone(Model model) const override;
42
43 virtual std::vector<IdfObject> remove() override;
44
45 virtual const std::vector<std::string>& outputVariableNames() const override;
46
47 virtual IddObjectType iddObjectType() const override;
48
49 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
50
51 virtual std::vector<ModelObject> children() const override;
52
53 virtual unsigned inletPort() const override;
54
55 virtual unsigned outletPort() const override;
56
57 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
58
59 virtual std::vector<std::string> emsInternalVariableNames() const override;
60
61 virtual void autosize() override;
62
63 virtual void applySizingValues() override;
64
65 virtual ComponentType componentType() const override;
66 virtual std::vector<FuelType> coolingFuelTypes() const override;
67 virtual std::vector<FuelType> heatingFuelTypes() const override;
68 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
69
70 //@}
71 /** @name Getters */
72 //@{
73
74 Schedule availabilitySchedule() const;
75
76 boost::optional<std::string> radiantSurfaceType() const;
77
78 std::vector<Surface> surfaces() const;
79
80 std::string fluidtoRadiantSurfaceHeatTransferModel() const;
81
82 bool isFluidtoRadiantSurfaceHeatTransferModelDefaulted() const;
83
84 double hydronicTubingInsideDiameter() const;
85
86 bool isHydronicTubingInsideDiameterDefaulted() const;
87
88 double hydronicTubingOutsideDiameter() const;
89
90 bool isHydronicTubingOutsideDiameterDefaulted() const;
91
92 boost::optional<double> hydronicTubingLength() const;
93
94 bool isHydronicTubingLengthAutosized() const;
95
96 double hydronicTubingConductivity() const;
97
98 bool isHydronicTubingConductivityDefaulted() const;
99
100 std::string temperatureControlType() const;
101
102 bool isTemperatureControlTypeDefaulted() const;
103
104 double runningMeanOutdoorDryBulbTemperatureWeightingFactor() const;
105
106 bool isRunningMeanOutdoorDryBulbTemperatureWeightingFactorDefaulted() const;
107
108 HVACComponent heatingCoil() const;
109
110 HVACComponent coolingCoil() const;
111
112 boost::optional<double> ratedFlowRate() const;
113
114 bool isRatedFlowRateAutosized() const;
115
116 boost::optional<Schedule> pumpFlowRateSchedule() const;
117
118 double ratedPumpHead() const;
119
120 bool isRatedPumpHeadDefaulted() const;
121
122 boost::optional<double> ratedPowerConsumption() const;
123
124 double motorEfficiency() const;
125
126 bool isMotorEfficiencyDefaulted() const;
127
128 double fractionofMotorInefficienciestoFluidStream() const;
129
130 bool isFractionofMotorInefficienciestoFluidStreamDefaulted() const;
131
132 std::string numberofCircuits() const;
133
134 double circuitLength() const;
135
136 boost::optional<Schedule> changeoverDelayTimePeriodSchedule() const;
137
138 //@}
139 /** @name Setters */
140 //@{
141
142 bool setAvailabilitySchedule(Schedule& schedule);
143
144 bool setRadiantSurfaceType(boost::optional<std::string> radiantSurfaceType);
145
146 void resetRadiantSurfaceType();
147
148 bool setFluidtoRadiantSurfaceHeatTransferModel(const std::string& fluidtoRadiantSurfaceHeatTransferModel);
149
150 void resetFluidtoRadiantSurfaceHeatTransferModel();
151
152 bool setHydronicTubingInsideDiameter(double hydronicTubingInsideDiameter);
153
154 void resetHydronicTubingInsideDiameter();
155
156 bool setHydronicTubingOutsideDiameter(double hydronicTubingOutsideDiameter);
157
158 void resetHydronicTubingOutsideDiameter();
159
160 bool setHydronicTubingLength(boost::optional<double> hydronicTubingLength);
161
162 void autosizeHydronicTubingLength();
163
164 bool setHydronicTubingConductivity(double hydronicTubingConductivity);
165
166 void resetHydronicTubingConductivity();
167
168 bool setTemperatureControlType(const std::string& temperatureControlType);
169
170 void resetTemperatureControlType();
171
172 bool setRunningMeanOutdoorDryBulbTemperatureWeightingFactor(double runningMeanOutdoorDryBulbTemperatureWeightingFactor);
173
174 void resetRunningMeanOutdoorDryBulbTemperatureWeightingFactor();
175
176 bool setHeatingCoil(HVACComponent& heatingCoil);
177
178 bool setCoolingCoil(HVACComponent& coolingCoil);
179
180 bool setRatedFlowRate(boost::optional<double> ratedFlowRate);
181
182 void autosizeRatedFlowRate();
183
184 bool setPumpFlowRateSchedule(Schedule& schedule);
185
186 void resetPumpFlowRateSchedule();
187
188 bool setRatedPumpHead(double ratedPumpHead);
189
190 void resetRatedPumpHead();
191
192 bool setRatedPowerConsumption(boost::optional<double> ratedPowerConsumption);
193
194 void resetRatedPowerConsumption();
195
196 bool setMotorEfficiency(double motorEfficiency);
197
198 void resetMotorEfficiency();
199
200 bool setFractionofMotorInefficienciestoFluidStream(double fractionofMotorInefficienciestoFluidStream);
201
202 void resetFractionofMotorInefficienciestoFluidStream();
203
204 bool setNumberofCircuits(const std::string& numberofCircuits);
205
206 bool setCircuitLength(double circuitLength);
207
208 bool setChangeoverDelayTimePeriodSchedule(Schedule& schedule);
209
210 void resetChangeoverDelayTimePeriodSchedule();
211
212 boost::optional<ThermalZone> thermalZone() const override;
213
214 bool addToThermalZone(ThermalZone& thermalZone) override;
215
216 void removeFromThermalZone() override;
217
218 //@}
219 /** @name Other */
220 //@{
221
222 boost::optional<double> autosizedHydronicTubingLength() const;
223
224 boost::optional<double> autosizedRatedFlowRate() const;
225
226 //@}
227 protected:
228 private:
229 − REGISTER_LOGGER("openstudio.model.ZoneHVACLowTempRadiantConstFlow");
230
231 // TODO: Check the return types of these methods.
232 // Optional getters for use by methods like children() so can remove() if the constructor fails.
233 // There are other ways for the public versions of these getters to fail--perhaps all required
234 // objects should be returned as boost::optionals
235 boost::optional<Schedule> optionalAvailabilitySchedule() const;
236 boost::optional<HVACComponent> optionalHeatingCoil() const;
237 boost::optional<HVACComponent> optionalCoolingCoil() const;
238
239 std::vector<std::string> radiantSurfaceTypeValues() const;
240 std::vector<std::string> temperatureControlTypeValues() const;
241 };
242
243 } // namespace detail
244
245 } // namespace model
246 } // namespace openstudio
247
248 #endif // MODEL_ZONEHVACLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
249