GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 73.6% 134 / 0 / 182
Functions: 84.2% 32 / 0 / 38
Branches: 30.0% 148 / 0 / 494

src/model/EnergyManagementSystemActuator.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 "EnergyManagementSystemActuator.hpp"
7 #include "EnergyManagementSystemActuator_Impl.hpp"
8
9 #include "Model.hpp"
10 #include "Model_Impl.hpp"
11 #include "ThermalZone.hpp"
12 #include "ThermalZone_Impl.hpp"
13 #include "Space.hpp"
14 #include "Space_Impl.hpp"
15 #include "SpaceLoadInstance.hpp"
16 #include "SpaceLoadInstance_Impl.hpp"
17
18 #include <utilities/idd/IddEnums.hxx>
19 #include <utilities/idd/OS_EnergyManagementSystem_Actuator_FieldEnums.hxx>
20
21 #include "../utilities/core/Assert.hpp"
22 #include "../utilities/core/DeprecatedHelpers.hpp"
23
24 namespace openstudio {
25 namespace model {
26
27 namespace detail {
28
29 269 EnergyManagementSystemActuator_Impl::EnergyManagementSystemActuator_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
30 269 : ModelObject_Impl(idfObject, model, keepHandle) {
31
4/6
✓ Branch 1 taken 269 times.
✓ Branch 4 taken 269 times.
✓ Branch 7 taken 269 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 269 times.
✗ Branch 13 not taken.
269 OS_ASSERT(idfObject.iddObject().type() == EnergyManagementSystemActuator::iddObjectType());
32 269 }
33
34 4 EnergyManagementSystemActuator_Impl::EnergyManagementSystemActuator_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
35 4 bool keepHandle)
36 4 : ModelObject_Impl(other, model, keepHandle) {
37
4/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
4 OS_ASSERT(other.iddObject().type() == EnergyManagementSystemActuator::iddObjectType());
38 4 }
39
40 123 EnergyManagementSystemActuator_Impl::EnergyManagementSystemActuator_Impl(const EnergyManagementSystemActuator_Impl& other, Model_Impl* model,
41 123 bool keepHandle)
42 123 : ModelObject_Impl(other, model, keepHandle) {}
43
44 ✗ const std::vector<std::string>& EnergyManagementSystemActuator_Impl::outputVariableNames() const {
45 ✗ static const std::vector<std::string> result;
46 ✗ return result;
47 }
48
49 ✗ IddObjectType EnergyManagementSystemActuator_Impl::iddObjectType() const {
50 ✗ return EnergyManagementSystemActuator::iddObjectType();
51 }
52
53 146 boost::optional<ModelObject> EnergyManagementSystemActuator_Impl::actuatedComponent() const {
54 146 boost::optional<ModelObject> result;
55
1/1
✓ Branch 1 taken 146 times.
146 boost::optional<WorkspaceObject> wo = this->getTarget(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentName);
56
2/2
✓ Branch 0 taken 145 times.
✓ Branch 1 taken 1 time.
146 if (wo) {
57
3/3
✓ Branch 1 taken 145 times.
✓ Branch 4 taken 145 times.
✓ Branch 7 taken 145 times.
145 result = wo->cast<ModelObject>();
58 }
59 292 return result;
60 146 }
61
62 81 std::string EnergyManagementSystemActuator_Impl::actuatedComponentControlType() const {
63
1/1
✓ Branch 1 taken 81 times.
81 boost::optional<std::string> value = getString(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentControlType, true);
64
1/2
✓ Branch 0 taken 81 times.
✗ Branch 1 not taken.
81 if (value) {
65
2/2
✓ Branch 1 taken 81 times.
✓ Branch 4 taken 81 times.
81 return value.get();
66 } else {
67 ✗ return "";
68 }
69 81 }
70
71 81 std::string EnergyManagementSystemActuator_Impl::actuatedComponentType() const {
72
1/1
✓ Branch 1 taken 81 times.
81 boost::optional<std::string> value = getString(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentType, true);
73
1/2
✓ Branch 0 taken 81 times.
✗ Branch 1 not taken.
81 if (value) {
74
2/2
✓ Branch 1 taken 81 times.
✓ Branch 4 taken 81 times.
81 return value.get();
75 } else {
76 ✗ return "";
77 }
78 81 }
79
80 289 bool EnergyManagementSystemActuator_Impl::setActuatedComponent(const ModelObject& modelObject) {
81
3/3
✓ Branch 1 taken 289 times.
✓ Branch 5 taken 264 times.
✓ Branch 6 taken 25 times.
289 if (!modelObject.optionalCast<SpaceLoadInstance>()) {
82 264 resetZoneOrSpace();
83 }
84
85
2/2
✓ Branch 1 taken 289 times.
✓ Branch 4 taken 289 times.
289 return setPointer(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentName, modelObject.handle());
86 }
87
88 263 bool EnergyManagementSystemActuator_Impl::setActuatedComponentControlType(const std::string& actuatedComponentControlType) {
89 263 const bool result = setString(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentControlType, actuatedComponentControlType);
90 263 return result;
91 }
92
93 263 bool EnergyManagementSystemActuator_Impl::setActuatedComponentType(const std::string& actuatedComponentType) {
94 263 const bool result = setString(OS_EnergyManagementSystem_ActuatorFields::ActuatedComponentType, actuatedComponentType);
95 263 return result;
96 }
97
98 19 boost::optional<ModelObject> EnergyManagementSystemActuator_Impl::zoneOrSpace() const {
99
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 return getObject<ModelObject>().getModelObjectTarget<ModelObject>(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName);
100 }
101
102 26 boost::optional<ThermalZone> EnergyManagementSystemActuator_Impl::thermalZone() const {
103
2/2
✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
26 return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName);
104 }
105
106 27 boost::optional<Space> EnergyManagementSystemActuator_Impl::space() const {
107
2/2
✓ Branch 1 taken 27 times.
✓ Branch 4 taken 27 times.
27 return getObject<ModelObject>().getModelObjectTarget<Space>(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName);
108 }
109
110 9 bool EnergyManagementSystemActuator_Impl::setThermalZone(const ThermalZone& thermalZone) {
111
2/3
✓ Branch 1 taken 9 times.
✓ Branch 3 taken 9 times.
✗ Branch 4 not taken.
18 if (auto comp_ = actuatedComponent()) {
112
3/4
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✗ Branch 8 not taken.
18 if (comp_->optionalCast<SpaceLoadInstance>()) {
113
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 return setPointer(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName, thermalZone.handle());
114 }
115 9 }
116 ✗ LOG(Warn, "For " << briefDescription() << " cannot setThermalZone has it does not have an attached Component Type that is a SpaceLoadInstance");
117 ✗ return false;
118 }
119
120 5 bool EnergyManagementSystemActuator_Impl::setSpace(const Space& space) {
121
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (auto comp_ = actuatedComponent()) {
122
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if (comp_->optionalCast<SpaceLoadInstance>()) {
123
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 return setPointer(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName, space.handle());
124 }
125 5 }
126 ✗ LOG(Warn, "For " << briefDescription() << " cannot setSpace has it does not have an attached Component Type that is a SpaceLoadInstance");
127 ✗ return false;
128 }
129
130 264 void EnergyManagementSystemActuator_Impl::resetZoneOrSpace() {
131
2/2
✓ Branch 1 taken 264 times.
✓ Branch 4 taken 264 times.
528 const bool result = setString(OS_EnergyManagementSystem_ActuatorFields::ZoneorSpaceName, "");
132
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 264 times.
264 OS_ASSERT(result);
133 264 }
134
135 } // namespace detail
136
137 246 EnergyManagementSystemActuator::EnergyManagementSystemActuator(const ModelObject& actuatedComponent, const std::string& actuatedComponentType,
138 246 const std::string& actuatedComponentControlType)
139
3/3
✓ Branch 1 taken 246 times.
✓ Branch 4 taken 246 times.
✓ Branch 7 taken 246 times.
246 : ModelObject(EnergyManagementSystemActuator::iddObjectType(), actuatedComponent.model()) {
140
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 246 times.
✗ Branch 5 not taken.
246 OS_ASSERT(getImpl<detail::EnergyManagementSystemActuator_Impl>());
141 /** Do not use this constructor for spaceloads that are defined in SpaceType objects **/
142
143
3/3
✓ Branch 1 taken 246 times.
✓ Branch 4 taken 9 times.
✓ Branch 5 taken 237 times.
492 if (actuatedComponent.optionalCast<SpaceLoadInstance>()) {
144
5/5
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✓ Branch 10 taken 9 times.
✓ Branch 13 taken 9 times.
9 LOG(Warn, "When instantiating an EnergyManagementSystemActuator with an actuated component that is a SpaceLoadInstance, you should instead use "
145 "the overloaded constructor that takes a Space (or a ThermalZone if you plan on disabling the Space Feature during "
146 "ForwardTranslation) as the last parameter");
147 }
148
149
1/1
✓ Branch 1 taken 246 times.
246 bool ok = setActuatedComponent(actuatedComponent);
150
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 246 times.
246 if (!ok) {
151 ✗ remove();
152 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s setActuatedComponent to " << actuatedComponent.briefDescription() << ".");
153 }
154
1/1
✓ Branch 1 taken 246 times.
246 ok = setActuatedComponentType(actuatedComponentType);
155
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 246 times.
246 if (!ok) {
156 ✗ remove();
157 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentType to " << actuatedComponentType << ".");
158 }
159
1/1
✓ Branch 1 taken 246 times.
246 ok = setActuatedComponentControlType(actuatedComponentControlType);
160
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 246 times.
246 if (!ok) {
161 ✗ remove();
162 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentControlType to " << actuatedComponentControlType << ".");
163 }
164 246 }
165
166 11 EnergyManagementSystemActuator::EnergyManagementSystemActuator(const ModelObject& actuatedComponent, const std::string& actuatedComponentType,
167 11 const std::string& actuatedComponentControlType, const ThermalZone& thermalZone)
168
3/3
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
11 : ModelObject(EnergyManagementSystemActuator::iddObjectType(), actuatedComponent.model()) {
169
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 11 times.
✗ Branch 5 not taken.
11 OS_ASSERT(getImpl<detail::EnergyManagementSystemActuator_Impl>());
170 /** This constructor uses the ThermalZone as the ZoneName field
171 * This is what is expected in E+ for spaceloads in OS that are defined in SpaceTypes and used in Spaces **/
172
173
3/3
✓ Branch 1 taken 11 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 9 times.
11 if (!actuatedComponent.optionalCast<SpaceLoadInstance>()) {
174
1/1
✓ Branch 1 taken 2 times.
2 remove();
175
17/17
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✓ Branch 17 taken 2 times.
✓ Branch 20 taken 2 times.
✓ Branch 26 taken 2 times.
✓ Branch 29 taken 2 times.
✓ Branch 32 taken 2 times.
✓ Branch 35 taken 2 times.
✓ Branch 38 taken 2 times.
✓ Branch 41 taken 2 times.
✓ Branch 44 taken 2 times.
✓ Branch 47 taken 2 times.
✓ Branch 52 taken 2 times.
✓ Branch 55 taken 2 times.
2 LOG_AND_THROW("When using this overloaded EnergyManagementSystemActuator constructor that takes a ThermalZone as the last parameter, the "
176 "actuated component must be "
177 "a SpaceLoadInstance, but you supplied "
178 << actuatedComponent.briefDescription());
179 }
180
181
1/1
✓ Branch 1 taken 9 times.
9 bool ok = setActuatedComponent(actuatedComponent);
182
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 if (!ok) {
183 ✗ remove();
184 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s setActuatedComponent to " << actuatedComponent.briefDescription() << ".");
185 }
186
1/1
✓ Branch 1 taken 9 times.
9 ok = setActuatedComponentType(actuatedComponentType);
187
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 if (!ok) {
188 ✗ remove();
189 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentType to " << actuatedComponentType << ".");
190 }
191
1/1
✓ Branch 1 taken 9 times.
9 ok = setActuatedComponentControlType(actuatedComponentControlType);
192
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 if (!ok) {
193 ✗ remove();
194 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentControlType to " << actuatedComponentControlType << ".");
195 }
196 //set the ModelObject to the ZoneName field (uses name of this object on FT)
197
1/1
✓ Branch 1 taken 9 times.
9 ok = setThermalZone(thermalZone);
198 //Fail on failure to set modelobject to ZoneName field
199
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 if (!ok) {
200 ✗ remove();
201 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s setThermalZone to " << thermalZone.briefDescription() << ".");
202 }
203 11 }
204
205 7 EnergyManagementSystemActuator::EnergyManagementSystemActuator(const ModelObject& actuatedComponent, const std::string& actuatedComponentType,
206 7 const std::string& actuatedComponentControlType, const Space& space)
207
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 : ModelObject(EnergyManagementSystemActuator::iddObjectType(), actuatedComponent.model()) {
208
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
7 OS_ASSERT(getImpl<detail::EnergyManagementSystemActuator_Impl>());
209
210
3/3
✓ Branch 1 taken 7 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 5 times.
7 if (!actuatedComponent.optionalCast<SpaceLoadInstance>()) {
211
1/1
✓ Branch 1 taken 2 times.
2 remove();
212
17/17
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✓ Branch 17 taken 2 times.
✓ Branch 20 taken 2 times.
✓ Branch 26 taken 2 times.
✓ Branch 29 taken 2 times.
✓ Branch 32 taken 2 times.
✓ Branch 35 taken 2 times.
✓ Branch 38 taken 2 times.
✓ Branch 41 taken 2 times.
✓ Branch 44 taken 2 times.
✓ Branch 47 taken 2 times.
✓ Branch 52 taken 2 times.
✓ Branch 55 taken 2 times.
2 LOG_AND_THROW("When using this overloaded EnergyManagementSystemActuator constructor that takes a Space as the last parameter, the actuated "
213 "component must be "
214 "a SpaceLoadInstance, but you supplied "
215 << actuatedComponent.briefDescription());
216 }
217
218
1/1
✓ Branch 1 taken 5 times.
5 bool ok = setActuatedComponent(actuatedComponent);
219
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
5 if (!ok) {
220 ✗ remove();
221 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s setActuatedComponent to " << actuatedComponent.briefDescription() << ".");
222 }
223
1/1
✓ Branch 1 taken 5 times.
5 ok = setActuatedComponentType(actuatedComponentType);
224
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
5 if (!ok) {
225 ✗ remove();
226 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentType to " << actuatedComponentType << ".");
227 }
228
1/1
✓ Branch 1 taken 5 times.
5 ok = setActuatedComponentControlType(actuatedComponentControlType);
229
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
5 if (!ok) {
230 ✗ remove();
231 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s actuatedComponentControlType to " << actuatedComponentControlType << ".");
232 }
233 //set the Space's ThermalZone to the ZoneName field (uses name of this object on FT)
234
1/1
✓ Branch 1 taken 5 times.
5 ok = setSpace(space);
235 //Fail on failure to set space to ZoneName field
236
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
5 if (!ok) {
237 ✗ remove();
238 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s setSpace to " << space.briefDescription() << ".");
239 }
240 7 }
241
242 ✗ EnergyManagementSystemActuator::EnergyManagementSystemActuator(const ModelObject& actuatedComponent)
243 ✗ : ModelObject(EnergyManagementSystemActuator::iddObjectType(), actuatedComponent.model()) {
244 ✗ OS_ASSERT(getImpl<detail::EnergyManagementSystemActuator_Impl>());
245 ✗ setActuatedComponent(actuatedComponent);
246 //TODO set below to some appropriate default that depends on the actuatedComponent::IddType
247 //setActuatedComponentControlType();
248 //setActuatedComponentType();
249 ✗ }
250
251 1 EnergyManagementSystemActuator::EnergyManagementSystemActuator(const Model& model)
252 1 : ModelObject(EnergyManagementSystemActuator::iddObjectType(), model) {
253
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::EnergyManagementSystemActuator_Impl>());
254 //This constructor is used in the ReverseTranslator when the ActuatedComponent doesnt Reverse Translate.
255 //In that case, a generic Actuator is created with ActuatedComponent blank (but the old value is in a comment)
256 //TODO setActuatedComponent to a default actuatedComponent.
257 //TODO set below to some appropriate default that depends on the actuatedComponent::IddType
258 //setActuatedComponentControlType();
259 //setActuatedComponentType();
260 1 }
261
262 8270 IddObjectType EnergyManagementSystemActuator::iddObjectType() {
263
1/1
✓ Branch 1 taken 8270 times.
8270 return {IddObjectType::OS_EnergyManagementSystem_Actuator};
264 }
265
266 132 boost::optional<ModelObject> EnergyManagementSystemActuator::actuatedComponent() const {
267
1/1
✓ Branch 3 taken 132 times.
132 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->actuatedComponent();
268 }
269
270 81 std::string EnergyManagementSystemActuator::actuatedComponentControlType() const {
271
1/1
✓ Branch 3 taken 81 times.
81 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->actuatedComponentControlType();
272 }
273
274 81 std::string EnergyManagementSystemActuator::actuatedComponentType() const {
275
1/1
✓ Branch 3 taken 81 times.
81 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->actuatedComponentType();
276 }
277
278 289 bool EnergyManagementSystemActuator::setActuatedComponent(const ModelObject& modelObject) {
279
1/1
✓ Branch 3 taken 289 times.
289 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->setActuatedComponent(modelObject);
280 }
281
282 263 bool EnergyManagementSystemActuator::setActuatedComponentControlType(const std::string& actuatedComponentControlType) {
283
1/1
✓ Branch 3 taken 263 times.
263 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->setActuatedComponentControlType(actuatedComponentControlType);
284 }
285
286 263 bool EnergyManagementSystemActuator::setActuatedComponentType(const std::string& actuatedComponentType) {
287
1/1
✓ Branch 3 taken 263 times.
263 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->setActuatedComponentType(actuatedComponentType);
288 }
289
290 27 boost::optional<Space> EnergyManagementSystemActuator::space() const {
291
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->space();
292 }
293
294 26 boost::optional<ThermalZone> EnergyManagementSystemActuator::thermalZone() const {
295
1/1
✓ Branch 3 taken 26 times.
26 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->thermalZone();
296 }
297
298 19 boost::optional<ModelObject> EnergyManagementSystemActuator::zoneOrSpace() const {
299
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->zoneOrSpace();
300 }
301
302 9 bool EnergyManagementSystemActuator::setThermalZone(const ThermalZone& thermalZone) {
303
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->setThermalZone(thermalZone);
304 }
305
306 5 bool EnergyManagementSystemActuator::setSpace(const Space& space) {
307
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::EnergyManagementSystemActuator_Impl>()->setSpace(space);
308 }
309
310 ✗ void EnergyManagementSystemActuator::resetZoneOrSpace() {
311 ✗ getImpl<detail::EnergyManagementSystemActuator_Impl>()->resetZoneOrSpace();
312 ✗ }
313
314 /// @cond
315 340 EnergyManagementSystemActuator::EnergyManagementSystemActuator(std::shared_ptr<detail::EnergyManagementSystemActuator_Impl> impl)
316
1/1
✓ Branch 3 taken 340 times.
340 : ModelObject(std::move(impl)) {}
317
318 // DEPRECATED
319
320 ✗ boost::optional<ModelObject> EnergyManagementSystemActuator::zoneName() const {
321 ✗ DEPRECATED_AT_MSG(3, 6, 0, "Use zoneOrSpace instead.");
322 ✗ return getImpl<detail::EnergyManagementSystemActuator_Impl>()->zoneOrSpace();
323 }
324
325 ✗ void EnergyManagementSystemActuator::resetZoneName() {
326 ✗ DEPRECATED_AT_MSG(3, 6, 0, "Use resetZoneOrSpace instead.");
327 ✗ getImpl<detail::EnergyManagementSystemActuator_Impl>()->resetZoneOrSpace();
328 ✗ }
329 /// @endcond
330
331 } // namespace model
332 } // namespace openstudio
333