GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 62.6% 152 / 0 / 243
Functions: 55.6% 40 / 0 / 72
Branches: 54.0% 122 / 0 / 226

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