GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 61.6% 125 / 0 / 203
Functions: 56.4% 22 / 0 / 39
Branches: 56.7% 153 / 0 / 270

src/model/AirTerminalSingleDuctConstantVolumeNoReheat.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 "AirTerminalSingleDuctConstantVolumeNoReheat.hpp"
7 #include "AirTerminalSingleDuctConstantVolumeNoReheat_Impl.hpp"
8 #include "AirLoopHVAC.hpp"
9 #include "AirLoopHVAC_Impl.hpp"
10 #include "Node.hpp"
11 #include "Node_Impl.hpp"
12 #include "AirLoopHVACZoneSplitter.hpp"
13 #include "AirLoopHVACZoneSplitter_Impl.hpp"
14 #include "AirLoopHVACZoneMixer.hpp"
15 #include "AirLoopHVACZoneMixer_Impl.hpp"
16 #include "ThermalZone.hpp"
17 #include "ThermalZone_Impl.hpp"
18 #include "PortList.hpp"
19 #include "PortList_Impl.hpp"
20 #include "Model.hpp"
21 #include "Schedule.hpp"
22 #include "Schedule_Impl.hpp"
23 #include <utilities/idd/OS_AirTerminal_SingleDuct_ConstantVolume_NoReheat_FieldEnums.hxx>
24 #include <utilities/idd/IddEnums.hxx>
25 #include "../utilities/core/Assert.hpp"
26 #include "../utilities/data/DataEnums.hpp"
27
28 namespace openstudio {
29 namespace model {
30
31 namespace detail {
32
33 311 AirTerminalSingleDuctConstantVolumeNoReheat_Impl::AirTerminalSingleDuctConstantVolumeNoReheat_Impl(const IdfObject& idfObject, Model_Impl* model,
34 311 bool keepHandle)
35 311 : StraightComponent_Impl(idfObject, model, keepHandle) {
36
4/6
✓ Branch 1 taken 311 times.
✓ Branch 4 taken 311 times.
✓ Branch 7 taken 311 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 311 times.
✗ Branch 13 not taken.
311 OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctConstantVolumeNoReheat::iddObjectType());
37 311 }
38
39 73 AirTerminalSingleDuctConstantVolumeNoReheat_Impl::AirTerminalSingleDuctConstantVolumeNoReheat_Impl(
40 73 const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
41 73 : StraightComponent_Impl(other, model, keepHandle) {
42
4/6
✓ Branch 1 taken 73 times.
✓ Branch 4 taken 73 times.
✓ Branch 7 taken 73 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 73 times.
✗ Branch 13 not taken.
73 OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctConstantVolumeNoReheat::iddObjectType());
43 73 }
44
45 175 AirTerminalSingleDuctConstantVolumeNoReheat_Impl::AirTerminalSingleDuctConstantVolumeNoReheat_Impl(
46 175 const AirTerminalSingleDuctConstantVolumeNoReheat_Impl& other, Model_Impl* model, bool keepHandle)
47 175 : StraightComponent_Impl(other, model, keepHandle) {}
48
49 // Get all output variable names that could be associated with this object.
50 1 const std::vector<std::string>& AirTerminalSingleDuctConstantVolumeNoReheat_Impl::outputVariableNames() const {
51 static const std::vector<std::string> result{"Zone Air Terminal Sensible Heating Energy", "Zone Air Terminal Sensible Cooling Energy",
52
5/11
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
7 "Zone Air Terminal Sensible Heating Rate", "Zone Air Terminal Sensible Cooling Rate"};
53 1 return result;
54 3 }
55
56 757 IddObjectType AirTerminalSingleDuctConstantVolumeNoReheat_Impl::iddObjectType() const {
57 757 return AirTerminalSingleDuctConstantVolumeNoReheat::iddObjectType();
58 }
59
60 ✗ std::vector<ScheduleTypeKey> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
61 ✗ std::vector<ScheduleTypeKey> result;
62 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
63 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
64 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
65 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::AvailabilityScheduleName) != e) {
66 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctConstantVolumeNoReheat", "Availability"));
67 }
68 ✗ return result;
69 ✗ }
70
71 72 Schedule AirTerminalSingleDuctConstantVolumeNoReheat_Impl::availabilitySchedule() const {
72
1/1
✓ Branch 1 taken 72 times.
72 boost::optional<Schedule> value = optionalAvailabilitySchedule();
73
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 72 times.
72 if (!value) {
74 // it is an error if we get here, however we don't want to crash
75 // so we hook up to global always on schedule
76 ✗ LOG(Error, "Required availability schedule not set, using 'Always On' schedule");
77 ✗ value = this->model().alwaysOnDiscreteSchedule();
78 ✗ OS_ASSERT(value);
79 ✗ const_cast<AirTerminalSingleDuctConstantVolumeNoReheat_Impl*>(this)->setAvailabilitySchedule(*value);
80 ✗ value = optionalAvailabilitySchedule();
81 }
82
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 72 times.
✗ Branch 4 not taken.
72 OS_ASSERT(value);
83
2/2
✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
144 return value.get();
84 72 }
85
86 237 bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::setAvailabilitySchedule(Schedule& schedule) {
87
3/3
✓ Branch 1 taken 237 times.
✓ Branch 4 taken 237 times.
✓ Branch 7 taken 237 times.
948 bool result = setSchedule(OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::AvailabilityScheduleName,
88 "AirTerminalSingleDuctConstantVolumeNoReheat", "Availability", schedule);
89 237 return result;
90 }
91
92 366 unsigned AirTerminalSingleDuctConstantVolumeNoReheat_Impl::inletPort() const {
93 366 return OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::AirInletNodeName;
94 }
95
96 3128 unsigned AirTerminalSingleDuctConstantVolumeNoReheat_Impl::outletPort() const {
97 3128 return OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::AirOutletNodeName;
98 }
99
100 237 bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::addToNode(Node& node) {
101
1/1
✓ Branch 1 taken 237 times.
237 Model _model = node.model();
102
103
2/3
✓ Branch 1 taken 237 times.
✓ Branch 3 taken 237 times.
✗ Branch 4 not taken.
474 if (boost::optional<ModelObject> outlet = node.outletModelObject()) {
104 237 boost::optional<ThermalZone> thermalZone;
105
106
4/4
✓ Branch 1 taken 237 times.
✓ Branch 4 taken 237 times.
✓ Branch 6 taken 219 times.
✓ Branch 7 taken 18 times.
474 if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) {
107
3/3
✓ Branch 1 taken 219 times.
✓ Branch 4 taken 219 times.
✓ Branch 7 taken 219 times.
219 thermalZone = portList->thermalZone();
108 237 }
109
110
14/19
✓ Branch 1 taken 18 times.
✓ Branch 2 taken 219 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 18 times.
✓ Branch 10 taken 15 times.
✓ Branch 11 taken 3 times.
✓ Branch 13 taken 15 times.
✓ Branch 16 taken 15 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 15 times.
✓ Branch 19 taken 222 times.
✓ Branch 21 taken 18 times.
✓ Branch 22 taken 219 times.
✓ Branch 24 taken 234 times.
✓ Branch 25 taken 3 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
507 if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) {
111
2/3
✓ Branch 1 taken 234 times.
✓ Branch 3 taken 234 times.
✗ Branch 4 not taken.
468 if (boost::optional<ModelObject> inlet = node.inletModelObject()) {
112
3/4
✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 6 taken 234 times.
✗ Branch 7 not taken.
468 if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) {
113
1/1
✓ Branch 1 taken 234 times.
234 boost::optional<ModelObject> sourceModelObject = inlet;
114
2/2
✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
234 boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort());
115
116
3/6
✓ Branch 0 taken 234 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 234 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 234 times.
✗ Branch 5 not taken.
468 if (sourcePort && sourceModelObject) {
117
1/1
✓ Branch 1 taken 234 times.
234 Node inletNode(_model);
118
119
6/6
✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
✓ Branch 10 taken 234 times.
✓ Branch 13 taken 234 times.
✓ Branch 16 taken 234 times.
234 _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort());
120
121
5/5
✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
✓ Branch 10 taken 234 times.
✓ Branch 13 taken 234 times.
234 _model.connect(inletNode, inletNode.outletPort(), this->getObject<ModelObject>(), this->inletPort());
122
123
5/5
✓ Branch 1 taken 234 times.
✓ Branch 4 taken 234 times.
✓ Branch 7 taken 234 times.
✓ Branch 10 taken 234 times.
✓ Branch 13 taken 234 times.
234 _model.connect(this->getObject<ModelObject>(), outletPort(), node, node.inletPort());
124
125
2/2
✓ Branch 0 taken 219 times.
✓ Branch 1 taken 15 times.
234 if (thermalZone) {
126
1/1
✓ Branch 1 taken 219 times.
219 auto mo = this->getObject<AirTerminalSingleDuctConstantVolumeNoReheat>();
127
128
2/2
✓ Branch 1 taken 219 times.
✓ Branch 4 taken 219 times.
219 thermalZone->addEquipment(mo);
129 219 }
130
131 234 return true;
132 234 }
133 468 }
134 234 }
135 }
136 474 }
137
138 3 return false;
139 237 }
140
141 19 std::vector<IdfObject> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::remove() {
142
1/1
✓ Branch 1 taken 19 times.
19 Model _model = this->model();
143
1/1
✓ Branch 1 taken 19 times.
19 auto thisObject = this->getObject<ModelObject>();
144
145
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<ModelObject> sourceModelObject = this->inletModelObject();
146
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort());
147
148
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<ModelObject> targetModelObject = this->outletModelObject();
149
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort());
150
151
1/1
✓ Branch 1 taken 19 times.
19 std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>();
152
2/2
✓ Branch 5 taken 23 times.
✓ Branch 6 taken 1 time.
24 for (auto& thermalZone : thermalZones) {
153
1/1
✓ Branch 1 taken 23 times.
23 std::vector<ModelObject> equipment = thermalZone.equipment();
154
155
3/3
✓ Branch 4 taken 23 times.
✓ Branch 7 taken 18 times.
✓ Branch 8 taken 5 times.
23 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
156
1/1
✓ Branch 1 taken 18 times.
18 thermalZone.removeEquipment(thisObject);
157
158 18 break;
159 }
160 23 }
161
162
7/10
✓ Branch 0 taken 18 times.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 18 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 18 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 18 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 18 times.
✓ Branch 9 taken 1 time.
73 if (sourcePort && sourceModelObject && targetPort && targetModelObject) {
163
3/4
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 6 taken 18 times.
✗ Branch 7 not taken.
36 if (boost::optional<Node> inletNode = sourceModelObject->optionalCast<Node>()) {
164
3/4
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 6 taken 18 times.
✗ Branch 7 not taken.
36 if (boost::optional<ModelObject> source2ModelObject = inletNode->inletModelObject()) {
165
5/6
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 18 times.
✓ Branch 10 taken 18 times.
✓ Branch 12 taken 18 times.
✗ Branch 13 not taken.
36 if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) {
166
7/7
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
✓ Branch 7 taken 18 times.
✓ Branch 10 taken 18 times.
✓ Branch 13 taken 18 times.
✓ Branch 16 taken 18 times.
✓ Branch 19 taken 18 times.
18 _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get());
167
168 // Need to delete the inlet node too
169
2/2
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
18 inletNode->disconnect();
170
2/2
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
18 inletNode->remove();
171
172
1/1
✓ Branch 1 taken 18 times.
18 return StraightComponent_Impl::remove();
173 }
174 18 }
175 18 }
176 }
177
178
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 model().disconnect(getObject<ModelObject>(), inletPort());
179
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 model().disconnect(getObject<ModelObject>(), outletPort());
180
181
1/1
✓ Branch 1 taken 1 time.
1 return StraightComponent_Impl::remove();
182 19 }
183
184 19 bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::isRemovable() const {
185 19 return true;
186 }
187
188 72 boost::optional<Schedule> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::optionalAvailabilitySchedule() const {
189
1/1
✓ Branch 1 taken 72 times.
144 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
190
1/1
✓ Branch 1 taken 72 times.
144 OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::AvailabilityScheduleName);
191 }
192
193 ✗ boost::optional<ModelObject> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::availabilityScheduleAsModelObject() const {
194 ✗ OptionalModelObject result = availabilitySchedule();
195 ✗ return result;
196 }
197
198 ✗ bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
199 ✗ if (modelObject) {
200 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
201 ✗ if (intermediate) {
202 ✗ Schedule schedule(*intermediate);
203 ✗ return setAvailabilitySchedule(schedule);
204 ✗ }
205 ✗ }
206 ✗ return false;
207 }
208
209 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::maximumAirFlowRate() const {
210 ✗ return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::MaximumAirFlowRate, true);
211 }
212
213 72 bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::isMaximumAirFlowRateAutosized() const {
214 72 bool result = false;
215
1/1
✓ Branch 1 taken 72 times.
72 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::MaximumAirFlowRate, true);
216
1/2
✓ Branch 0 taken 72 times.
✗ Branch 1 not taken.
72 if (value) {
217
3/3
✓ Branch 1 taken 72 times.
✓ Branch 4 taken 72 times.
✓ Branch 7 taken 72 times.
144 result = openstudio::istringEqual(value.get(), "autosize");
218 }
219 72 return result;
220 72 }
221
222 ✗ bool AirTerminalSingleDuctConstantVolumeNoReheat_Impl::setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate) {
223 ✗ bool result(false);
224 ✗ if (maximumAirFlowRate) {
225 ✗ result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::MaximumAirFlowRate, maximumAirFlowRate.get());
226 }
227 ✗ return result;
228 }
229
230 20 void AirTerminalSingleDuctConstantVolumeNoReheat_Impl::autosizeMaximumAirFlowRate() {
231
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
40 bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::MaximumAirFlowRate, "autosize");
232
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
233 20 }
234
235 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::autosizedMaximumAirFlowRate() const {
236 ✗ return getAutosizedValue("Design Size Maximum Air Flow Rate", "m3/s");
237 }
238
239 ✗ void AirTerminalSingleDuctConstantVolumeNoReheat_Impl::autosize() {
240 ✗ autosizeMaximumAirFlowRate();
241 ✗ }
242
243 ✗ void AirTerminalSingleDuctConstantVolumeNoReheat_Impl::applySizingValues() {
244 ✗ boost::optional<double> val;
245 ✗ val = autosizedMaximumAirFlowRate();
246 ✗ if (val) {
247 ✗ setMaximumAirFlowRate(val.get());
248 }
249 ✗ }
250
251 ✗ std::vector<EMSActuatorNames> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::emsActuatorNames() const {
252 ✗ std::vector<EMSActuatorNames> actuators{{"AirTerminal:SingleDuct:ConstantVolume:NoReheat", "Mass Flow Rate"}};
253 ✗ return actuators;
254 ✗ }
255
256 ✗ std::vector<std::string> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::emsInternalVariableNames() const {
257 ✗ std::vector<std::string> types{"AirTerminal:SingleDuct:ConstantVolume:NoReheat Maximum Mass Flow Rate"};
258 ✗ return types;
259 ✗ }
260
261 ✗ ComponentType AirTerminalSingleDuctConstantVolumeNoReheat_Impl::componentType() const {
262 ✗ if (auto a_ = airLoopHVAC()) {
263 ✗ return a_->componentType();
264 ✗ }
265
266 ✗ return ComponentType::None;
267 }
268
269 ✗ std::vector<FuelType> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::coolingFuelTypes() const {
270 ✗ if (auto a_ = airLoopHVAC()) {
271 ✗ return a_->coolingFuelTypes();
272 ✗ }
273 ✗ return {};
274 }
275
276 ✗ std::vector<FuelType> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::heatingFuelTypes() const {
277 ✗ if (auto a_ = airLoopHVAC()) {
278 ✗ return a_->heatingFuelTypes();
279 ✗ }
280 ✗ return {};
281 }
282
283 ✗ std::vector<AppGFuelType> AirTerminalSingleDuctConstantVolumeNoReheat_Impl::appGHeatingFuelTypes() const {
284 ✗ if (auto a_ = airLoopHVAC()) {
285 ✗ return a_->appGHeatingFuelTypes();
286 ✗ }
287 ✗ return {};
288 }
289
290 } // namespace detail
291
292 237 AirTerminalSingleDuctConstantVolumeNoReheat::AirTerminalSingleDuctConstantVolumeNoReheat(const Model& model, Schedule& availabilitySchedule)
293 237 : StraightComponent(AirTerminalSingleDuctConstantVolumeNoReheat::iddObjectType(), model) {
294
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 237 times.
✗ Branch 5 not taken.
237 OS_ASSERT(getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>());
295
296
2/2
✓ Branch 1 taken 237 times.
✓ Branch 4 taken 237 times.
474 setString(openstudio::OS_AirTerminal_SingleDuct_ConstantVolume_NoReheatFields::MaximumAirFlowRate, "AutoSize");
297
298
1/1
✓ Branch 1 taken 237 times.
237 setAvailabilitySchedule(availabilitySchedule);
299 237 }
300
301 72 Schedule AirTerminalSingleDuctConstantVolumeNoReheat::availabilitySchedule() const {
302
1/1
✓ Branch 3 taken 72 times.
72 return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->availabilitySchedule();
303 }
304
305 237 bool AirTerminalSingleDuctConstantVolumeNoReheat::setAvailabilitySchedule(Schedule& schedule) {
306
1/1
✓ Branch 3 taken 237 times.
237 return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->setAvailabilitySchedule(schedule);
307 }
308
309 8980 IddObjectType AirTerminalSingleDuctConstantVolumeNoReheat::iddObjectType() {
310
1/1
✓ Branch 1 taken 8980 times.
8980 IddObjectType result(IddObjectType::OS_AirTerminal_SingleDuct_ConstantVolume_NoReheat);
311 8980 return result;
312 }
313
314 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeNoReheat::maximumAirFlowRate() const {
315 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->maximumAirFlowRate();
316 }
317
318 72 bool AirTerminalSingleDuctConstantVolumeNoReheat::isMaximumAirFlowRateAutosized() const {
319
1/1
✓ Branch 3 taken 72 times.
72 return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->isMaximumAirFlowRateAutosized();
320 }
321
322 ✗ bool AirTerminalSingleDuctConstantVolumeNoReheat::setMaximumAirFlowRate(double maximumAirFlowRate) {
323 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->setMaximumAirFlowRate(maximumAirFlowRate);
324 }
325
326 20 void AirTerminalSingleDuctConstantVolumeNoReheat::autosizeMaximumAirFlowRate() {
327
1/1
✓ Branch 3 taken 20 times.
20 getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->autosizeMaximumAirFlowRate();
328 20 }
329
330 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeNoReheat::autosizedMaximumAirFlowRate() const {
331 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl>()->autosizedMaximumAirFlowRate();
332 }
333
334 /// @cond
335 296 AirTerminalSingleDuctConstantVolumeNoReheat::AirTerminalSingleDuctConstantVolumeNoReheat(
336 296 std::shared_ptr<detail::AirTerminalSingleDuctConstantVolumeNoReheat_Impl> p)
337
1/1
✓ Branch 3 taken 296 times.
296 : StraightComponent(std::move(p)) {}
338 // @endcond
339
340 } // namespace model
341 } // namespace openstudio
342