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/AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_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_AIRLOOPHVACUNITARYHEATCOOLVAVCHANGEOVERBYPASS_IMPL_HPP
7 #define MODEL_AIRLOOPHVACUNITARYHEATCOOLVAVCHANGEOVERBYPASS_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 Mixer;
17
18 namespace detail {
19
20 /** AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl is a StraightComponent_Impl that is the implementation class for AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.*/
21 class MODEL_API AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl(const AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 33 virtual ~AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_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 ComponentType componentType() const override;
47 virtual std::vector<FuelType> coolingFuelTypes() const override;
48 virtual std::vector<FuelType> heatingFuelTypes() const override;
49 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 boost::optional<Schedule> availabilitySchedule() const;
56
57 boost::optional<double> systemAirFlowRateDuringCoolingOperation() const;
58
59 bool isSystemAirFlowRateDuringCoolingOperationAutosized() const;
60
61 boost::optional<double> systemAirFlowRateDuringHeatingOperation() const;
62
63 bool isSystemAirFlowRateDuringHeatingOperationAutosized() const;
64
65 boost::optional<double> systemAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
66
67 bool isSystemAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const;
68
69 boost::optional<double> outdoorAirFlowRateDuringCoolingOperation() const;
70
71 bool isOutdoorAirFlowRateDuringCoolingOperationAutosized() const;
72
73 boost::optional<double> outdoorAirFlowRateDuringHeatingOperation() const;
74
75 bool isOutdoorAirFlowRateDuringHeatingOperationAutosized() const;
76
77 boost::optional<double> outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
78
79 bool isOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const;
80
81 boost::optional<Schedule> outdoorAirFlowRateMultiplierSchedule() const;
82
83 HVACComponent supplyAirFan() const;
84
85 std::string supplyAirFanPlacement() const;
86
87 boost::optional<Schedule> supplyAirFanOperatingModeSchedule() const;
88
89 HVACComponent coolingCoil() const;
90
91 HVACComponent heatingCoil() const;
92
93 std::string priorityControlMode() const;
94
95 double minimumOutletAirTemperatureDuringCoolingOperation() const;
96
97 double maximumOutletAirTemperatureDuringHeatingOperation() const;
98
99 std::string dehumidificationControlType() const;
100
101 double minimumRuntimeBeforeOperatingModeChange() const;
102
103 unsigned plenumorMixerAirPort() const;
104 Node plenumorMixerNode() const;
105 boost::optional<Mixer> plenumorMixer() const;
106
107 boost::optional<double> autosizedSystemAirFlowRateDuringCoolingOperation() const;
108
109 boost::optional<double> autosizedSystemAirFlowRateDuringHeatingOperation() const;
110
111 boost::optional<double> autosizedSystemAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
112
113 boost::optional<double> autosizedOutdoorAirFlowRateDuringCoolingOperation() const;
114
115 boost::optional<double> autosizedOutdoorAirFlowRateDuringHeatingOperation() const;
116
117 boost::optional<double> autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded() const;
118
119 virtual void autosize() override;
120
121 virtual void applySizingValues() override;
122
123 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
124
125 virtual std::vector<std::string> emsInternalVariableNames() const override;
126
127 //@}
128 /** @name Setters */
129 //@{
130
131 bool setAvailabilitySchedule(Schedule& schedule);
132
133 void resetAvailabilitySchedule();
134
135 bool setSystemAirFlowRateDuringCoolingOperation(boost::optional<double> systemAirFlowRateDuringCoolingOperation);
136
137 void autosizeSystemAirFlowRateDuringCoolingOperation();
138
139 bool setSystemAirFlowRateDuringHeatingOperation(boost::optional<double> systemAirFlowRateDuringHeatingOperation);
140
141 void autosizeSystemAirFlowRateDuringHeatingOperation();
142
143 bool setSystemAirFlowRateWhenNoCoolingorHeatingisNeeded(boost::optional<double> systemAirFlowRateWhenNoCoolingorHeatingisNeeded);
144
145 void autosizeSystemAirFlowRateWhenNoCoolingorHeatingisNeeded();
146
147 bool setOutdoorAirFlowRateDuringCoolingOperation(boost::optional<double> outdoorAirFlowRateDuringCoolingOperation);
148
149 void autosizeOutdoorAirFlowRateDuringCoolingOperation();
150
151 bool setOutdoorAirFlowRateDuringHeatingOperation(boost::optional<double> outdoorAirFlowRateDuringHeatingOperation);
152
153 void autosizeOutdoorAirFlowRateDuringHeatingOperation();
154
155 bool setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(boost::optional<double> outdoorAirFlowRateWhenNoCoolingorHeatingisNeeded);
156
157 void autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded();
158
159 bool setOutdoorAirFlowRateMultiplierSchedule(Schedule& outdoorAirFlowRateMultiplierSchedule);
160
161 void resetOutdoorAirFlowRateMultiplierSchedule();
162
163 bool setSupplyAirFan(const HVACComponent& fansCVandOnOff);
164
165 bool setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement);
166
167 bool setSupplyAirFanOperatingModeSchedule(Schedule& schedule);
168
169 void resetSupplyAirFanOperatingModeSchedule();
170
171 bool setCoolingCoil(const HVACComponent& coolingCoilName);
172
173 bool setHeatingCoil(const HVACComponent& heatingCoilName);
174
175 bool setPriorityControlMode(const std::string& priorityControlMode);
176
177 bool setMinimumOutletAirTemperatureDuringCoolingOperation(double minimumOutletAirTemperatureDuringCoolingOperation);
178
179 bool setMaximumOutletAirTemperatureDuringHeatingOperation(double maximumOutletAirTemperatureDuringHeatingOperation);
180
181 bool setDehumidificationControlType(const std::string& dehumidificationControlType);
182
183 bool setMinimumRuntimeBeforeOperatingModeChange(double runtime);
184
185 bool setPlenumorMixer(const Mixer& returnPathComponent);
186
187 void resetPlenumorMixer();
188
189 //@}
190 /** @name Other */
191 //@{
192
193 virtual unsigned inletPort() const override;
194
195 virtual unsigned outletPort() const override;
196
197 virtual ModelObject clone(Model model) const override;
198
199 virtual std::vector<IdfObject> remove() override;
200
201 virtual std::vector<ModelObject> children() const override;
202
203 //@}
204 protected:
205 private:
206 − REGISTER_LOGGER("openstudio.model.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass");
207
208 boost::optional<HVACComponent> optionalSupplyAirFan() const;
209 boost::optional<HVACComponent> optionalCoolingCoil() const;
210 boost::optional<HVACComponent> optionalHeatingCoil() const;
211 };
212
213 } // namespace detail
214
215 } // namespace model
216 } // namespace openstudio
217
218 #endif // MODEL_AIRLOOPHVACUNITARYHEATCOOLVAVCHANGEOVERBYPASS_IMPL_HPP
219