GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 51.6% 116 / 0 / 225
Functions: 64.6% 31 / 0 / 48
Branches: 33.8% 91 / 0 / 269

src/model/AirTerminalSingleDuctVAVHeatAndCoolNoReheat.cpp
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 #include "AirTerminalSingleDuctVAVHeatAndCoolNoReheat.hpp"
7 #include "AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl.hpp"
8 #include "Model.hpp"
9 #include "Model_Impl.hpp"
10 #include "ThermalZone.hpp"
11 #include "ThermalZone_Impl.hpp"
12 #include "Node.hpp"
13 #include "Node_Impl.hpp"
14 #include "PortList.hpp"
15 #include "PortList_Impl.hpp"
16 #include "Mixer.hpp"
17 #include "Mixer_Impl.hpp"
18 #include "Splitter.hpp"
19 #include "Splitter_Impl.hpp"
20 #include "Schedule.hpp"
21 #include "Schedule_Impl.hpp"
22 #include "ScheduleTypeLimits.hpp"
23 #include "ScheduleTypeRegistry.hpp"
24 #include <utilities/idd/OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheat_FieldEnums.hxx>
25 #include <utilities/idd/IddEnums.hxx>
26 #include "../utilities/core/Assert.hpp"
27 #include "../utilities/data/DataEnums.hpp"
28
29 namespace openstudio {
30 namespace model {
31
32 namespace detail {
33
34 3 AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(const IdfObject& idfObject, Model_Impl* model,
35 3 bool keepHandle)
36 3 : StraightComponent_Impl(idfObject, model, keepHandle) {
37
4/6
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
3 OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctVAVHeatAndCoolNoReheat::iddObjectType());
38 3 }
39
40 ✗ AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(
41 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
42 ✗ : StraightComponent_Impl(other, model, keepHandle) {
43 ✗ OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctVAVHeatAndCoolNoReheat::iddObjectType());
44 ✗ }
45
46 1 AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(
47 1 const AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl& other, Model_Impl* model, bool keepHandle)
48 1 : StraightComponent_Impl(other, model, keepHandle) {}
49
50 ✗ const std::vector<std::string>& AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::outputVariableNames() const {
51 static const std::vector<std::string> result{// These apply to all AirTerminals
52 "Zone Air Terminal Sensible Heating Energy", "Zone Air Terminal Sensible Heating Rate",
53 "Zone Air Terminal Sensible Cooling Energy", "Zone Air Terminal Sensible Cooling Rate",
54
55 ✗ "Zone Air Terminal VAV Damper Position", "Zone Air Terminal Outdoor Air Volume Flow Rate"};
56 ✗ return result;
57 ✗ }
58
59 6 IddObjectType AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::iddObjectType() const {
60 6 return AirTerminalSingleDuctVAVHeatAndCoolNoReheat::iddObjectType();
61 }
62
63 ✗ std::vector<ScheduleTypeKey> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
64 ✗ std::vector<ScheduleTypeKey> result;
65 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
66 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
67 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
68 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AvailabilitySchedule) != e) {
69 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVHeatAndCoolNoReheat", "Availability Schedule"));
70 }
71 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MinimumAirFlowTurndownScheduleName) != e) {
72 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVHeatAndCoolNoReheat", "Minimum Air Flow Turndown"));
73 }
74 ✗ return result;
75 ✗ }
76
77 1 boost::optional<Schedule> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::availabilitySchedule() const {
78
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AvailabilitySchedule);
79 }
80
81 1 boost::optional<double> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::maximumAirFlowRate() const {
82 1 return getDouble(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MaximumAirFlowRate, true);
83 }
84
85 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::isMaximumAirFlowRateAutosized() const {
86 1 bool result = false;
87
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MaximumAirFlowRate, true);
88
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
89
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
90 }
91 1 return result;
92 1 }
93
94 1 double AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::zoneMinimumAirFlowFraction() const {
95
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::ZoneMinimumAirFlowFraction, true);
96
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
97
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
98 }
99
100 5 boost::optional<Schedule> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::minimumAirFlowTurndownSchedule() const {
101
1/1
✓ Branch 1 taken 5 times.
10 return this->getObject<AirTerminalSingleDuctVAVHeatAndCoolNoReheat>().getModelObjectTarget<Schedule>(
102
1/1
✓ Branch 1 taken 5 times.
10 OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MinimumAirFlowTurndownScheduleName);
103 }
104
105 ✗ boost::optional<ModelObject> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::minimumAirFlowTurndownScheduleAsModelObject() const {
106 ✗ OptionalModelObject result;
107 ✗ OptionalSchedule intermediate = minimumAirFlowTurndownSchedule();
108 ✗ if (intermediate) {
109 ✗ result = *intermediate;
110 }
111 ✗ return result;
112 ✗ }
113
114 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::setAvailabilitySchedule(Schedule& schedule) {
115
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AvailabilitySchedule,
116 "AirTerminalSingleDuctVAVHeatAndCoolNoReheat", "Availability Schedule", schedule);
117 1 return result;
118 }
119
120 ✗ void AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::resetAvailabilitySchedule() {
121 ✗ bool result = setString(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AvailabilitySchedule, "");
122 ✗ OS_ASSERT(result);
123 ✗ }
124
125 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate) {
126 1 bool result(false);
127
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumAirFlowRate) {
128 1 result = setDouble(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MaximumAirFlowRate, maximumAirFlowRate.get());
129 }
130 1 return result;
131 }
132
133 3 void AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::autosizeMaximumAirFlowRate() {
134
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MaximumAirFlowRate, "autosize");
135
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
136 3 }
137
138 4 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction) {
139 4 bool result = setDouble(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::ZoneMinimumAirFlowFraction, zoneMinimumAirFlowFraction);
140 4 return result;
141 }
142
143 2 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::setMinimumAirFlowTurndownSchedule(Schedule& schedule) {
144
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
8 bool result = setSchedule(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MinimumAirFlowTurndownScheduleName,
145 "AirTerminalSingleDuctVAVReheat", "Minimum Air Flow Turndown", schedule);
146 2 return result;
147 }
148
149 1 void AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::resetMinimumAirFlowTurndownSchedule() {
150
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::MinimumAirFlowTurndownScheduleName, "");
151
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
152 1 }
153
154 ✗ bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::setMinimumAirFlowTurndownScheduleAsModelObject(
155 const boost::optional<ModelObject>& modelObject) {
156 ✗ if (modelObject) {
157 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
158 ✗ if (intermediate) {
159 ✗ Schedule schedule(*intermediate);
160 ✗ return setMinimumAirFlowTurndownSchedule(schedule);
161 ✗ } else {
162 ✗ return false;
163 }
164 ✗ } else {
165 ✗ resetMinimumAirFlowTurndownSchedule();
166 }
167 ✗ return true;
168 }
169
170 3 unsigned AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::inletPort() const {
171 3 return OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AirInlet;
172 }
173
174 9 unsigned AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::outletPort() const {
175 9 return OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AirOutlet;
176 }
177
178 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::addToNode(Node& node) {
179
1/1
✓ Branch 1 taken 1 time.
1 Model _model = node.model();
180
181
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<ModelObject> outlet = node.outletModelObject()) {
182 1 boost::optional<ThermalZone> thermalZone;
183
184
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) {
185
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 thermalZone = portList->thermalZone();
186 1 }
187
188
4/19
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✓ Branch 19 taken 1 time.
✗ Branch 21 not taken.
✓ Branch 22 taken 1 time.
✓ Branch 24 taken 1 time.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
2 if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) {
189
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<ModelObject> inlet = node.inletModelObject()) {
190
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) {
191
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<ModelObject> sourceModelObject = inlet;
192
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort());
193
194
3/6
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
2 if (sourcePort && sourceModelObject) {
195
1/1
✓ Branch 1 taken 1 time.
1 Node inletNode(_model);
196
197
6/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
1 _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort());
198
199
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 _model.connect(inletNode, inletNode.outletPort(), this->getObject<ModelObject>(), this->inletPort());
200
201
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 _model.connect(this->getObject<ModelObject>(), outletPort(), node, node.inletPort());
202
203
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (thermalZone) {
204
1/1
✓ Branch 1 taken 1 time.
1 auto mo = this->getObject<AirTerminalSingleDuctVAVHeatAndCoolNoReheat>();
205
206
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 thermalZone->addEquipment(mo);
207 1 }
208
209 1 return true;
210 1 }
211 2 }
212 1 }
213 }
214 2 }
215
216 ✗ return false;
217 1 }
218
219 ✗ std::vector<IdfObject> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::remove() {
220 ✗ Model _model = this->model();
221 ✗ auto thisObject = this->getObject<ModelObject>();
222
223 ✗ boost::optional<ModelObject> sourceModelObject = this->inletModelObject();
224 ✗ boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort());
225
226 ✗ boost::optional<ModelObject> targetModelObject = this->outletModelObject();
227 ✗ boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort());
228
229 ✗ std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>();
230 ✗ for (auto& thermalZone : thermalZones) {
231 ✗ std::vector<ModelObject> equipment = thermalZone.equipment();
232
233 ✗ if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
234 ✗ thermalZone.removeEquipment(thisObject);
235
236 ✗ break;
237 }
238 ✗ }
239
240 ✗ if (sourcePort && sourceModelObject && targetPort && targetModelObject) {
241 ✗ if (boost::optional<Node> inletNode = sourceModelObject->optionalCast<Node>()) {
242 ✗ if (boost::optional<ModelObject> source2ModelObject = inletNode->inletModelObject()) {
243 ✗ if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) {
244 ✗ _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get());
245
246 ✗ inletNode->disconnect();
247 ✗ inletNode->remove();
248
249 ✗ return StraightComponent_Impl::remove();
250 }
251 ✗ }
252 ✗ }
253 }
254
255 ✗ model().disconnect(getObject<ModelObject>(), inletPort());
256 ✗ model().disconnect(getObject<ModelObject>(), outletPort());
257
258 ✗ return StraightComponent_Impl::remove();
259 ✗ }
260
261 ✗ bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::isRemovable() const {
262 ✗ return true;
263 }
264
265 ✗ boost::optional<double> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::autosizedMaximumAirFlowRate() const {
266 ✗ return getAutosizedValue("Design Size Maximum Air Flow Rate", "m3/s");
267 }
268
269 ✗ void AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::autosize() {
270 ✗ autosizeMaximumAirFlowRate();
271 ✗ }
272
273 ✗ void AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::applySizingValues() {
274 ✗ boost::optional<double> val;
275 ✗ val = autosizedMaximumAirFlowRate();
276 ✗ if (val) {
277 ✗ setMaximumAirFlowRate(val.get());
278 }
279 ✗ }
280
281 ✗ ComponentType AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::componentType() const {
282 ✗ if (auto a_ = airLoopHVAC()) {
283 ✗ return a_->componentType();
284 ✗ }
285
286 ✗ return ComponentType::None;
287 }
288
289 ✗ std::vector<FuelType> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::coolingFuelTypes() const {
290 ✗ if (auto a_ = airLoopHVAC()) {
291 ✗ return a_->coolingFuelTypes();
292 ✗ }
293 ✗ return {};
294 }
295
296 ✗ std::vector<FuelType> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::heatingFuelTypes() const {
297 ✗ if (auto a_ = airLoopHVAC()) {
298 ✗ return a_->heatingFuelTypes();
299 ✗ }
300 ✗ return {};
301 }
302
303 ✗ std::vector<AppGFuelType> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::appGHeatingFuelTypes() const {
304 ✗ if (auto a_ = airLoopHVAC()) {
305 ✗ return a_->appGHeatingFuelTypes();
306 ✗ }
307 ✗ return {};
308 }
309
310 } // namespace detail
311
312 3 AirTerminalSingleDuctVAVHeatAndCoolNoReheat::AirTerminalSingleDuctVAVHeatAndCoolNoReheat(const Model& model)
313 3 : StraightComponent(AirTerminalSingleDuctVAVHeatAndCoolNoReheat::iddObjectType(), model) {
314
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>());
315
316
1/1
✓ Branch 1 taken 3 times.
3 autosizeMaximumAirFlowRate();
317
1/1
✓ Branch 1 taken 3 times.
3 setZoneMinimumAirFlowFraction(0.0);
318 3 }
319
320 7610 IddObjectType AirTerminalSingleDuctVAVHeatAndCoolNoReheat::iddObjectType() {
321
1/1
✓ Branch 1 taken 7610 times.
7610 return {IddObjectType::OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheat};
322 }
323
324 1 boost::optional<Schedule> AirTerminalSingleDuctVAVHeatAndCoolNoReheat::availabilitySchedule() const {
325
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->availabilitySchedule();
326 }
327
328 1 boost::optional<double> AirTerminalSingleDuctVAVHeatAndCoolNoReheat::maximumAirFlowRate() const {
329
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->maximumAirFlowRate();
330 }
331
332 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat::isMaximumAirFlowRateAutosized() const {
333
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->isMaximumAirFlowRateAutosized();
334 }
335
336 1 double AirTerminalSingleDuctVAVHeatAndCoolNoReheat::zoneMinimumAirFlowFraction() const {
337
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->zoneMinimumAirFlowFraction();
338 }
339
340 5 boost::optional<Schedule> AirTerminalSingleDuctVAVHeatAndCoolNoReheat::minimumAirFlowTurndownSchedule() const {
341
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->minimumAirFlowTurndownSchedule();
342 }
343
344 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat::setAvailabilitySchedule(Schedule& schedule) {
345
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->setAvailabilitySchedule(schedule);
346 }
347
348 ✗ void AirTerminalSingleDuctVAVHeatAndCoolNoReheat::resetAvailabilitySchedule() {
349 ✗ getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->resetAvailabilitySchedule();
350 ✗ }
351
352 1 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat::setMaximumAirFlowRate(double maximumAirFlowRate) {
353
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->setMaximumAirFlowRate(maximumAirFlowRate);
354 }
355
356 3 void AirTerminalSingleDuctVAVHeatAndCoolNoReheat::autosizeMaximumAirFlowRate() {
357
1/1
✓ Branch 3 taken 3 times.
3 getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->autosizeMaximumAirFlowRate();
358 3 }
359
360 4 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat::setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction) {
361
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->setZoneMinimumAirFlowFraction(zoneMinimumAirFlowFraction);
362 }
363
364 2 bool AirTerminalSingleDuctVAVHeatAndCoolNoReheat::setMinimumAirFlowTurndownSchedule(Schedule& schedule) {
365
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->setMinimumAirFlowTurndownSchedule(schedule);
366 }
367
368 1 void AirTerminalSingleDuctVAVHeatAndCoolNoReheat::resetMinimumAirFlowTurndownSchedule() {
369
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->resetMinimumAirFlowTurndownSchedule();
370 1 }
371
372 /// @cond
373 7 AirTerminalSingleDuctVAVHeatAndCoolNoReheat::AirTerminalSingleDuctVAVHeatAndCoolNoReheat(
374 7 std::shared_ptr<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl> impl)
375
1/1
✓ Branch 3 taken 7 times.
7 : StraightComponent(std::move(impl)) {}
376 /// @endcond
377
378 ✗ boost::optional<double> AirTerminalSingleDuctVAVHeatAndCoolNoReheat::autosizedMaximumAirFlowRate() const {
379 ✗ return getImpl<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl>()->autosizedMaximumAirFlowRate();
380 }
381
382 } // namespace model
383 } // namespace openstudio
384