GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 1 / 2
Functions: 100.0% 1 / 1 / 2
Branches: -% 0 / 1 / 1

src/model/CurveTriquadratic_Impl.hpp
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 #ifndef MODEL_CURVETRIQUADRATIC_IMPL_HPP
7 #define MODEL_CURVETRIQUADRATIC_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Curve_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** CurveTriquadratic_Impl is a Curve_Impl that is the implementation class for CurveTriquadratic.*/
18 class MODEL_API CurveTriquadratic_Impl : public Curve_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 CurveTriquadratic_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 CurveTriquadratic_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 CurveTriquadratic_Impl(const CurveTriquadratic_Impl& other, Model_Impl* model, bool keepHandle);
30
31 29 virtual ~CurveTriquadratic_Impl() override = default;
32
33 //@}
34 /** @name Virtual Methods */
35 //@{
36
37 virtual const std::vector<std::string>& outputVariableNames() const override;
38
39 virtual IddObjectType iddObjectType() const override;
40
41 virtual int numVariables() const override;
42
43 virtual double evaluate(const std::vector<double>& independentVariables) const override;
44
45 //@}
46 /** @name Getters */
47 //@{
48
49 boost::optional<double> coefficient1Constant() const;
50
51 boost::optional<double> coefficient2xPOW2() const;
52
53 boost::optional<double> coefficient3x() const;
54
55 boost::optional<double> coefficient4yPOW2() const;
56
57 boost::optional<double> coefficient5y() const;
58
59 boost::optional<double> coefficient6zPOW2() const;
60
61 boost::optional<double> coefficient7z() const;
62
63 boost::optional<double> coefficient8xPOW2TIMESYPOW2() const;
64
65 boost::optional<double> coefficient9xTIMESY() const;
66
67 boost::optional<double> coefficient10xTIMESYPOW2() const;
68
69 boost::optional<double> coefficient11xPOW2TIMESY() const;
70
71 boost::optional<double> coefficient12xPOW2TIMESZPOW2() const;
72
73 boost::optional<double> coefficient13xTIMESZ() const;
74
75 boost::optional<double> coefficient14xTIMESZPOW2() const;
76
77 boost::optional<double> coefficient15xPOW2TIMESZ() const;
78
79 boost::optional<double> coefficient16yPOW2TIMESZPOW2() const;
80
81 boost::optional<double> coefficient17yTIMESZ() const;
82
83 boost::optional<double> coefficient18yTIMESZPOW2() const;
84
85 boost::optional<double> coefficient19yPOW2TIMESZ() const;
86
87 boost::optional<double> coefficient20xPOW2TIMESYPOW2TIMESZPOW2() const;
88
89 boost::optional<double> coefficient21xPOW2TIMESYPOW2TIMESZ() const;
90
91 boost::optional<double> coefficient22xPOW2TIMESYTIMESZPOW2() const;
92
93 boost::optional<double> coefficient23xTIMESYPOW2TIMESZPOW2() const;
94
95 boost::optional<double> coefficient24xPOW2TIMESYTIMESZ() const;
96
97 boost::optional<double> coefficient25xTIMESYPOW2TIMESZ() const;
98
99 boost::optional<double> coefficient26xTIMESYTIMESZPOW2() const;
100
101 boost::optional<double> coefficient27xTIMESYTIMESZ() const;
102
103 boost::optional<double> minimumValueofx() const;
104
105 boost::optional<double> maximumValueofx() const;
106
107 boost::optional<double> minimumValueofy() const;
108
109 boost::optional<double> maximumValueofy() const;
110
111 boost::optional<double> minimumValueofz() const;
112
113 boost::optional<double> maximumValueofz() const;
114
115 boost::optional<double> minimumCurveOutput() const;
116
117 boost::optional<double> maximumCurveOutput() const;
118
119 std::string inputUnitTypeforX() const;
120
121 bool isInputUnitTypeforXDefaulted() const;
122
123 std::string inputUnitTypeforY() const;
124
125 bool isInputUnitTypeforYDefaulted() const;
126
127 std::string inputUnitTypeforZ() const;
128
129 bool isInputUnitTypeforZDefaulted() const;
130
131 std::string outputUnitType() const;
132
133 bool isOutputUnitTypeDefaulted() const;
134
135 //@}
136 /** @name Setters */
137 //@{
138
139 bool setCoefficient1Constant(boost::optional<double> coefficient1Constant);
140
141 void resetCoefficient1Constant();
142
143 bool setCoefficient2xPOW2(boost::optional<double> coefficient2xPOW2);
144
145 void resetCoefficient2xPOW2();
146
147 bool setCoefficient3x(boost::optional<double> coefficient3x);
148
149 void resetCoefficient3x();
150
151 bool setCoefficient4yPOW2(boost::optional<double> coefficient4yPOW2);
152
153 void resetCoefficient4yPOW2();
154
155 bool setCoefficient5y(boost::optional<double> coefficient5y);
156
157 void resetCoefficient5y();
158
159 bool setCoefficient6zPOW2(boost::optional<double> coefficient6zPOW2);
160
161 void resetCoefficient6zPOW2();
162
163 bool setCoefficient7z(boost::optional<double> coefficient7z);
164
165 void resetCoefficient7z();
166
167 bool setCoefficient8xPOW2TIMESYPOW2(boost::optional<double> coefficient8xPOW2TIMESYPOW2);
168
169 void resetCoefficient8xPOW2TIMESYPOW2();
170
171 bool setCoefficient9xTIMESY(boost::optional<double> coefficient9xTIMESY);
172
173 void resetCoefficient9xTIMESY();
174
175 bool setCoefficient10xTIMESYPOW2(boost::optional<double> coefficient10xTIMESYPOW2);
176
177 void resetCoefficient10xTIMESYPOW2();
178
179 bool setCoefficient11xPOW2TIMESY(boost::optional<double> coefficient11xPOW2TIMESY);
180
181 void resetCoefficient11xPOW2TIMESY();
182
183 bool setCoefficient12xPOW2TIMESZPOW2(boost::optional<double> coefficient12xPOW2TIMESZPOW2);
184
185 void resetCoefficient12xPOW2TIMESZPOW2();
186
187 bool setCoefficient13xTIMESZ(boost::optional<double> coefficient13xTIMESZ);
188
189 void resetCoefficient13xTIMESZ();
190
191 bool setCoefficient14xTIMESZPOW2(boost::optional<double> coefficient14xTIMESZPOW2);
192
193 void resetCoefficient14xTIMESZPOW2();
194
195 bool setCoefficient15xPOW2TIMESZ(boost::optional<double> coefficient15xPOW2TIMESZ);
196
197 void resetCoefficient15xPOW2TIMESZ();
198
199 bool setCoefficient16yPOW2TIMESZPOW2(boost::optional<double> coefficient16yPOW2TIMESZPOW2);
200
201 void resetCoefficient16yPOW2TIMESZPOW2();
202
203 bool setCoefficient17yTIMESZ(boost::optional<double> coefficient17yTIMESZ);
204
205 void resetCoefficient17yTIMESZ();
206
207 bool setCoefficient18yTIMESZPOW2(boost::optional<double> coefficient18yTIMESZPOW2);
208
209 void resetCoefficient18yTIMESZPOW2();
210
211 bool setCoefficient19yPOW2TIMESZ(boost::optional<double> coefficient19yPOW2TIMESZ);
212
213 void resetCoefficient19yPOW2TIMESZ();
214
215 bool setCoefficient20xPOW2TIMESYPOW2TIMESZPOW2(boost::optional<double> coefficient20xPOW2TIMESYPOW2TIMESZPOW2);
216
217 void resetCoefficient20xPOW2TIMESYPOW2TIMESZPOW2();
218
219 bool setCoefficient21xPOW2TIMESYPOW2TIMESZ(boost::optional<double> coefficient21xPOW2TIMESYPOW2TIMESZ);
220
221 void resetCoefficient21xPOW2TIMESYPOW2TIMESZ();
222
223 bool setCoefficient22xPOW2TIMESYTIMESZPOW2(boost::optional<double> coefficient22xPOW2TIMESYTIMESZPOW2);
224
225 void resetCoefficient22xPOW2TIMESYTIMESZPOW2();
226
227 bool setCoefficient23xTIMESYPOW2TIMESZPOW2(boost::optional<double> coefficient23xTIMESYPOW2TIMESZPOW2);
228
229 void resetCoefficient23xTIMESYPOW2TIMESZPOW2();
230
231 bool setCoefficient24xPOW2TIMESYTIMESZ(boost::optional<double> coefficient24xPOW2TIMESYTIMESZ);
232
233 void resetCoefficient24xPOW2TIMESYTIMESZ();
234
235 bool setCoefficient25xTIMESYPOW2TIMESZ(boost::optional<double> coefficient25xTIMESYPOW2TIMESZ);
236
237 void resetCoefficient25xTIMESYPOW2TIMESZ();
238
239 bool setCoefficient26xTIMESYTIMESZPOW2(boost::optional<double> coefficient26xTIMESYTIMESZPOW2);
240
241 void resetCoefficient26xTIMESYTIMESZPOW2();
242
243 bool setCoefficient27xTIMESYTIMESZ(boost::optional<double> coefficient27xTIMESYTIMESZ);
244
245 void resetCoefficient27xTIMESYTIMESZ();
246
247 bool setMinimumValueofx(boost::optional<double> minimumValueofx);
248
249 void resetMinimumValueofx();
250
251 bool setMaximumValueofx(boost::optional<double> maximumValueofx);
252
253 void resetMaximumValueofx();
254
255 bool setMinimumValueofy(boost::optional<double> minimumValueofy);
256
257 void resetMinimumValueofy();
258
259 bool setMaximumValueofy(boost::optional<double> maximumValueofy);
260
261 void resetMaximumValueofy();
262
263 bool setMinimumValueofz(boost::optional<double> minimumValueofz);
264
265 void resetMinimumValueofz();
266
267 bool setMaximumValueofz(boost::optional<double> maximumValueofz);
268
269 void resetMaximumValueofz();
270
271 bool setMinimumCurveOutput(boost::optional<double> minimumCurveOutput);
272
273 void resetMinimumCurveOutput();
274
275 bool setMaximumCurveOutput(boost::optional<double> maximumCurveOutput);
276
277 void resetMaximumCurveOutput();
278
279 bool setInputUnitTypeforX(const std::string& inputUnitTypeforX);
280
281 void resetInputUnitTypeforX();
282
283 bool setInputUnitTypeforY(const std::string& inputUnitTypeforY);
284
285 void resetInputUnitTypeforY();
286
287 bool setInputUnitTypeforZ(const std::string& inputUnitTypeforZ);
288
289 void resetInputUnitTypeforZ();
290
291 bool setOutputUnitType(const std::string& outputUnitType);
292
293 void resetOutputUnitType();
294
295 //@}
296 /** @name Other */
297 //@{
298
299 //@}
300 protected:
301 private:
302 − REGISTER_LOGGER("openstudio.model.CurveTriquadratic");
303 };
304
305 } // namespace detail
306
307 } // namespace model
308 } // namespace openstudio
309
310 #endif // MODEL_CURVETRIQUADRATIC_IMPL_HPP
311