GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 69.7% 161 / 0 / 231
Functions: 67.6% 46 / 0 / 68
Branches: 52.0% 105 / 0 / 202

src/model/CurveSigmoid.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 "CurveSigmoid.hpp"
7 #include "CurveSigmoid_Impl.hpp"
8
9 #include <utilities/idd/IddFactory.hxx>
10
11 #include <utilities/idd/OS_Curve_Sigmoid_FieldEnums.hxx>
12 #include <utilities/idd/IddEnums.hxx>
13
14 #include "../utilities/core/Assert.hpp"
15
16 #include <cmath>
17
18 using namespace std;
19
20 namespace openstudio {
21 namespace model {
22
23 namespace detail {
24
25 38 CurveSigmoid_Impl::CurveSigmoid_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) : Curve_Impl(idfObject, model, keepHandle) {
26
4/6
✓ Branch 1 taken 38 times.
✓ Branch 4 taken 38 times.
✓ Branch 7 taken 38 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 38 times.
✗ Branch 13 not taken.
38 OS_ASSERT(idfObject.iddObject().type() == CurveSigmoid::iddObjectType());
27 38 }
28
29 ✗ CurveSigmoid_Impl::CurveSigmoid_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
30 ✗ : Curve_Impl(other, model, keepHandle) {
31 ✗ OS_ASSERT(other.iddObject().type() == CurveSigmoid::iddObjectType());
32 ✗ }
33
34 12 CurveSigmoid_Impl::CurveSigmoid_Impl(const CurveSigmoid_Impl& other, Model_Impl* model, bool keepHandle) : Curve_Impl(other, model, keepHandle) {}
35
36 ✗ const std::vector<std::string>& CurveSigmoid_Impl::outputVariableNames() const {
37 ✗ static const std::vector<std::string> result{"Performance Curve Output Value", "Performance Curve Input Variable 1 Value"};
38 ✗ return result;
39 ✗ }
40
41 ✗ IddObjectType CurveSigmoid_Impl::iddObjectType() const {
42 ✗ return CurveSigmoid::iddObjectType();
43 }
44
45 ✗ int CurveSigmoid_Impl::numVariables() const {
46 ✗ return 1;
47 }
48
49 8 double CurveSigmoid_Impl::evaluate(const std::vector<double>& independentVariables) const {
50
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
8 OS_ASSERT(independentVariables.size() == 1u);
51
52 8 double x = independentVariables[0];
53
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 6 times.
8 if (x < minimumValueofx()) {
54
5/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
2 LOG(Warn, "Supplied x is below the minimumValueofx, resetting it.");
55 2 x = minimumValueofx();
56 }
57
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 6 times.
8 if (x > maximumValueofx()) {
58
5/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
2 LOG(Warn, "Supplied x is above the maximumValueofx, resetting it.");
59 2 x = maximumValueofx();
60 }
61
62 8 double result = coefficient2C2();
63 8 double temp = coefficient3C3() - x;
64 8 temp /= coefficient4C4();
65 8 temp = std::exp(temp);
66 8 temp = std::pow(1.0 + temp, coefficient5C5());
67 8 result /= temp;
68 8 result += coefficient1C1();
69
70
3/3
✓ Branch 1 taken 8 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 6 times.
16 if (boost::optional<double> _minVal = minimumCurveOutput()) {
71
1/1
✓ Branch 1 taken 2 times.
2 double minVal = _minVal.get();
72
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (result < minVal) {
73
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 LOG(Warn, "Calculated curve output is below minimumCurveOutput, resetting it.");
74 1 result = minVal;
75 }
76 }
77
78
3/3
✓ Branch 1 taken 8 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 6 times.
16 if (boost::optional<double> _maxVal = maximumCurveOutput()) {
79
1/1
✓ Branch 1 taken 2 times.
2 double maxVal = _maxVal.get();
80
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
2 if (result > maxVal) {
81
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 LOG(Warn, "Calculated curve output is above maximumCurveOutput, resetting it.");
82 1 result = maxVal;
83 }
84 }
85
86 8 return result;
87 }
88
89 22 double CurveSigmoid_Impl::coefficient1C1() const {
90
1/1
✓ Branch 1 taken 22 times.
22 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::Coefficient1C1, true);
91
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
22 OS_ASSERT(value);
92
1/1
✓ Branch 1 taken 22 times.
44 return value.get();
93 }
94
95 22 double CurveSigmoid_Impl::coefficient2C2() const {
96
1/1
✓ Branch 1 taken 22 times.
22 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::Coefficient2C2, true);
97
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
22 OS_ASSERT(value);
98
1/1
✓ Branch 1 taken 22 times.
44 return value.get();
99 }
100
101 22 double CurveSigmoid_Impl::coefficient3C3() const {
102
1/1
✓ Branch 1 taken 22 times.
22 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::Coefficient3C3, true);
103
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
22 OS_ASSERT(value);
104
1/1
✓ Branch 1 taken 22 times.
44 return value.get();
105 }
106
107 22 double CurveSigmoid_Impl::coefficient4C4() const {
108
1/1
✓ Branch 1 taken 22 times.
22 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::Coefficient4C4, true);
109
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
22 OS_ASSERT(value);
110
1/1
✓ Branch 1 taken 22 times.
44 return value.get();
111 }
112
113 22 double CurveSigmoid_Impl::coefficient5C5() const {
114
1/1
✓ Branch 1 taken 22 times.
22 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::Coefficient5C5, true);
115
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
22 OS_ASSERT(value);
116
1/1
✓ Branch 1 taken 22 times.
44 return value.get();
117 }
118
119 24 double CurveSigmoid_Impl::minimumValueofx() const {
120
1/1
✓ Branch 1 taken 24 times.
24 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::MinimumValueofx, true);
121
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
24 OS_ASSERT(value);
122
1/1
✓ Branch 1 taken 24 times.
48 return value.get();
123 }
124
125 24 double CurveSigmoid_Impl::maximumValueofx() const {
126
1/1
✓ Branch 1 taken 24 times.
24 boost::optional<double> value = getDouble(OS_Curve_SigmoidFields::MaximumValueofx, true);
127
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
24 OS_ASSERT(value);
128
1/1
✓ Branch 1 taken 24 times.
48 return value.get();
129 }
130
131 23 boost::optional<double> CurveSigmoid_Impl::minimumCurveOutput() const {
132 23 return getDouble(OS_Curve_SigmoidFields::MinimumCurveOutput, true);
133 }
134
135 23 boost::optional<double> CurveSigmoid_Impl::maximumCurveOutput() const {
136 23 return getDouble(OS_Curve_SigmoidFields::MaximumCurveOutput, true);
137 }
138
139 ✗ std::string CurveSigmoid_Impl::inputUnitTypeforx() const {
140 ✗ boost::optional<std::string> value = getString(OS_Curve_SigmoidFields::InputUnitTypeforx, true);
141 ✗ OS_ASSERT(value);
142 ✗ return value.get();
143 ✗ }
144
145 12 bool CurveSigmoid_Impl::isInputUnitTypeforxDefaulted() const {
146 12 return isEmpty(OS_Curve_SigmoidFields::InputUnitTypeforx);
147 }
148
149 ✗ std::string CurveSigmoid_Impl::outputUnitType() const {
150 ✗ boost::optional<std::string> value = getString(OS_Curve_SigmoidFields::OutputUnitType, true);
151 ✗ OS_ASSERT(value);
152 ✗ return value.get();
153 ✗ }
154
155 12 bool CurveSigmoid_Impl::isOutputUnitTypeDefaulted() const {
156 12 return isEmpty(OS_Curve_SigmoidFields::OutputUnitType);
157 }
158
159 31 bool CurveSigmoid_Impl::setCoefficient1C1(double coefficient1C1) {
160 31 bool result = setDouble(OS_Curve_SigmoidFields::Coefficient1C1, coefficient1C1);
161
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
162 31 return result;
163 }
164
165 31 bool CurveSigmoid_Impl::setCoefficient2C2(double coefficient2C2) {
166 31 bool result = setDouble(OS_Curve_SigmoidFields::Coefficient2C2, coefficient2C2);
167
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
168 31 return result;
169 }
170
171 31 bool CurveSigmoid_Impl::setCoefficient3C3(double coefficient3C3) {
172 31 bool result = setDouble(OS_Curve_SigmoidFields::Coefficient3C3, coefficient3C3);
173
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
174 31 return result;
175 }
176
177 31 bool CurveSigmoid_Impl::setCoefficient4C4(double coefficient4C4) {
178 31 bool result = setDouble(OS_Curve_SigmoidFields::Coefficient4C4, coefficient4C4);
179
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
180 31 return result;
181 }
182
183 31 bool CurveSigmoid_Impl::setCoefficient5C5(double coefficient5C5) {
184 31 bool result = setDouble(OS_Curve_SigmoidFields::Coefficient5C5, coefficient5C5);
185
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
186 31 return result;
187 }
188
189 31 bool CurveSigmoid_Impl::setMinimumValueofx(double minimumValueofx) {
190 31 bool result = setDouble(OS_Curve_SigmoidFields::MinimumValueofx, minimumValueofx);
191
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
192 31 return result;
193 }
194
195 31 bool CurveSigmoid_Impl::setMaximumValueofx(double maximumValueofx) {
196 31 bool result = setDouble(OS_Curve_SigmoidFields::MaximumValueofx, maximumValueofx);
197
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
198 31 return result;
199 }
200
201 31 bool CurveSigmoid_Impl::setMinimumCurveOutput(boost::optional<double> minimumCurveOutput) {
202 31 bool result = false;
203
1/2
✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
31 if (minimumCurveOutput) {
204 31 result = setDouble(OS_Curve_SigmoidFields::MinimumCurveOutput, minimumCurveOutput.get());
205 } else {
206 ✗ result = setString(OS_Curve_SigmoidFields::MinimumCurveOutput, "");
207 }
208
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
209 31 return result;
210 }
211
212 ✗ void CurveSigmoid_Impl::resetMinimumCurveOutput() {
213 ✗ bool result = setString(OS_Curve_SigmoidFields::MinimumCurveOutput, "");
214 ✗ OS_ASSERT(result);
215 ✗ }
216
217 31 bool CurveSigmoid_Impl::setMaximumCurveOutput(boost::optional<double> maximumCurveOutput) {
218 31 bool result = false;
219
1/2
✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
31 if (maximumCurveOutput) {
220 31 result = setDouble(OS_Curve_SigmoidFields::MaximumCurveOutput, maximumCurveOutput.get());
221 } else {
222 ✗ result = setString(OS_Curve_SigmoidFields::MaximumCurveOutput, "");
223 }
224
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 OS_ASSERT(result);
225 31 return result;
226 }
227
228 ✗ void CurveSigmoid_Impl::resetMaximumCurveOutput() {
229 ✗ bool result = setString(OS_Curve_SigmoidFields::MaximumCurveOutput, "");
230 ✗ OS_ASSERT(result);
231 ✗ }
232
233 ✗ bool CurveSigmoid_Impl::setInputUnitTypeforx(const std::string& inputUnitTypeforx) {
234 ✗ bool result = setString(OS_Curve_SigmoidFields::InputUnitTypeforx, inputUnitTypeforx);
235 ✗ return result;
236 }
237
238 ✗ void CurveSigmoid_Impl::resetInputUnitTypeforx() {
239
240 ✗ bool result = setString(OS_Curve_SigmoidFields::InputUnitTypeforx, "");
241 ✗ OS_ASSERT(result);
242 ✗ }
243
244 ✗ bool CurveSigmoid_Impl::setOutputUnitType(const std::string& outputUnitType) {
245 ✗ bool result = setString(OS_Curve_SigmoidFields::OutputUnitType, outputUnitType);
246 ✗ return result;
247 }
248
249 ✗ void CurveSigmoid_Impl::resetOutputUnitType() {
250 ✗ bool result = setString(OS_Curve_SigmoidFields::OutputUnitType, "");
251 ✗ OS_ASSERT(result);
252 ✗ }
253
254 } // namespace detail
255
256 38 CurveSigmoid::CurveSigmoid(const Model& model) : Curve(CurveSigmoid::iddObjectType(), model) {
257
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 38 times.
✗ Branch 5 not taken.
38 OS_ASSERT(getImpl<detail::CurveSigmoid_Impl>());
258
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::Coefficient1C1, 0.0);
259
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::Coefficient2C2, 1.0);
260
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::Coefficient3C3, 1.0);
261
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::Coefficient4C4, 1.0);
262
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::Coefficient5C5, 1.0);
263
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::MinimumValueofx, 0.0);
264
1/1
✓ Branch 1 taken 38 times.
38 setDouble(OS_Curve_SigmoidFields::MaximumValueofx, 1.0);
265 38 }
266
267 7805 IddObjectType CurveSigmoid::iddObjectType() {
268
1/1
✓ Branch 1 taken 7805 times.
7805 IddObjectType result(IddObjectType::OS_Curve_Sigmoid);
269 7805 return result;
270 }
271
272 ✗ std::vector<std::string> CurveSigmoid::validInputUnitTypeforxValues() {
273 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Curve_SigmoidFields::InputUnitTypeforx);
274 }
275
276 ✗ std::vector<std::string> CurveSigmoid::validOutputUnitTypeValues() {
277 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Curve_SigmoidFields::OutputUnitType);
278 }
279
280 14 double CurveSigmoid::coefficient1C1() const {
281
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->coefficient1C1();
282 }
283
284 14 double CurveSigmoid::coefficient2C2() const {
285
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->coefficient2C2();
286 }
287
288 14 double CurveSigmoid::coefficient3C3() const {
289
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->coefficient3C3();
290 }
291
292 14 double CurveSigmoid::coefficient4C4() const {
293
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->coefficient4C4();
294 }
295
296 14 double CurveSigmoid::coefficient5C5() const {
297
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->coefficient5C5();
298 }
299
300 14 double CurveSigmoid::minimumValueofx() const {
301
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->minimumValueofx();
302 }
303
304 14 double CurveSigmoid::maximumValueofx() const {
305
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CurveSigmoid_Impl>()->maximumValueofx();
306 }
307
308 15 boost::optional<double> CurveSigmoid::minimumCurveOutput() const {
309
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CurveSigmoid_Impl>()->minimumCurveOutput();
310 }
311
312 15 boost::optional<double> CurveSigmoid::maximumCurveOutput() const {
313
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CurveSigmoid_Impl>()->maximumCurveOutput();
314 }
315
316 ✗ std::string CurveSigmoid::inputUnitTypeforx() const {
317 ✗ return getImpl<detail::CurveSigmoid_Impl>()->inputUnitTypeforx();
318 }
319
320 12 bool CurveSigmoid::isInputUnitTypeforxDefaulted() const {
321
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::CurveSigmoid_Impl>()->isInputUnitTypeforxDefaulted();
322 }
323
324 ✗ std::string CurveSigmoid::outputUnitType() const {
325 ✗ return getImpl<detail::CurveSigmoid_Impl>()->outputUnitType();
326 }
327
328 12 bool CurveSigmoid::isOutputUnitTypeDefaulted() const {
329
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::CurveSigmoid_Impl>()->isOutputUnitTypeDefaulted();
330 }
331
332 31 bool CurveSigmoid::setCoefficient1C1(double coefficient1C1) {
333
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setCoefficient1C1(coefficient1C1);
334 }
335
336 31 bool CurveSigmoid::setCoefficient2C2(double coefficient2C2) {
337
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setCoefficient2C2(coefficient2C2);
338 }
339
340 31 bool CurveSigmoid::setCoefficient3C3(double coefficient3C3) {
341
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setCoefficient3C3(coefficient3C3);
342 }
343
344 31 bool CurveSigmoid::setCoefficient4C4(double coefficient4C4) {
345
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setCoefficient4C4(coefficient4C4);
346 }
347
348 31 bool CurveSigmoid::setCoefficient5C5(double coefficient5C5) {
349
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setCoefficient5C5(coefficient5C5);
350 }
351
352 31 bool CurveSigmoid::setMinimumValueofx(double minimumValueofx) {
353
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setMinimumValueofx(minimumValueofx);
354 }
355
356 31 bool CurveSigmoid::setMaximumValueofx(double maximumValueofx) {
357
1/1
✓ Branch 3 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setMaximumValueofx(maximumValueofx);
358 }
359
360 31 bool CurveSigmoid::setMinimumCurveOutput(double minimumCurveOutput) {
361
2/2
✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setMinimumCurveOutput(minimumCurveOutput);
362 }
363
364 ✗ void CurveSigmoid::resetMinimumCurveOutput() {
365 ✗ getImpl<detail::CurveSigmoid_Impl>()->resetMinimumCurveOutput();
366 ✗ }
367
368 31 bool CurveSigmoid::setMaximumCurveOutput(double maximumCurveOutput) {
369
2/2
✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
31 return getImpl<detail::CurveSigmoid_Impl>()->setMaximumCurveOutput(maximumCurveOutput);
370 }
371
372 ✗ void CurveSigmoid::resetMaximumCurveOutput() {
373 ✗ getImpl<detail::CurveSigmoid_Impl>()->resetMaximumCurveOutput();
374 ✗ }
375
376 ✗ bool CurveSigmoid::setInputUnitTypeforx(const std::string& inputUnitTypeforx) {
377 ✗ return getImpl<detail::CurveSigmoid_Impl>()->setInputUnitTypeforx(inputUnitTypeforx);
378 }
379
380 ✗ void CurveSigmoid::resetInputUnitTypeforx() {
381 ✗ getImpl<detail::CurveSigmoid_Impl>()->resetInputUnitTypeforx();
382 ✗ }
383
384 ✗ bool CurveSigmoid::setOutputUnitType(const std::string& outputUnitType) {
385 ✗ return getImpl<detail::CurveSigmoid_Impl>()->setOutputUnitType(outputUnitType);
386 }
387
388 ✗ void CurveSigmoid::resetOutputUnitType() {
389 ✗ getImpl<detail::CurveSigmoid_Impl>()->resetOutputUnitType();
390 ✗ }
391
392 /// @cond
393
1/1
✓ Branch 3 taken 12 times.
12 CurveSigmoid::CurveSigmoid(std::shared_ptr<detail::CurveSigmoid_Impl> impl) : Curve(std::move(impl)) {}
394 /// @endcond
395
396 } // namespace model
397 } // namespace openstudio
398