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/CurveQuintLinear_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_CURVEQUINTLINEAR_IMPL_HPP
7 #define MODEL_CURVEQUINTLINEAR_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "Curve_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** CurveQuintLinear_Impl is a Curve_Impl that is the implementation class for CurveQuintLinear.*/
18 class MODEL_API CurveQuintLinear_Impl : public Curve_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 CurveQuintLinear_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 CurveQuintLinear_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 CurveQuintLinear_Impl(const CurveQuintLinear_Impl& other, Model_Impl* model, bool keepHandle);
29
30 53 virtual ~CurveQuintLinear_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual const std::vector<std::string>& outputVariableNames() const override;
37
38 virtual IddObjectType iddObjectType() const override;
39
40 virtual int numVariables() const override;
41
42 virtual double evaluate(const std::vector<double>& independentVariables) const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 double coefficient1Constant() const;
49
50 double coefficient2v() const;
51
52 double coefficient3w() const;
53
54 double coefficient4x() const;
55
56 double coefficient5y() const;
57
58 double coefficient6z() const;
59
60 double minimumValueofv() const;
61
62 double maximumValueofv() const;
63
64 double minimumValueofw() const;
65
66 double maximumValueofw() const;
67
68 double minimumValueofx() const;
69
70 double maximumValueofx() const;
71
72 double minimumValueofy() const;
73
74 double maximumValueofy() const;
75
76 double minimumValueofz() const;
77
78 double maximumValueofz() const;
79
80 boost::optional<double> minimumCurveOutput() const;
81
82 boost::optional<double> maximumCurveOutput() const;
83
84 std::string inputUnitTypeforv() const;
85
86 bool isInputUnitTypeforvDefaulted() const;
87
88 std::string inputUnitTypeforw() const;
89
90 bool isInputUnitTypeforwDefaulted() const;
91
92 std::string inputUnitTypeforx() const;
93
94 bool isInputUnitTypeforxDefaulted() const;
95
96 std::string inputUnitTypefory() const;
97
98 bool isInputUnitTypeforyDefaulted() const;
99
100 std::string inputUnitTypeforz() const;
101
102 bool isInputUnitTypeforzDefaulted() const;
103
104 //@}
105 /** @name Setters */
106 //@{
107
108 bool setCoefficient1Constant(double coefficient1Constant);
109
110 bool setCoefficient2v(double coefficient2v);
111
112 bool setCoefficient3w(double coefficient3w);
113
114 bool setCoefficient4x(double coefficient4x);
115
116 bool setCoefficient5y(double coefficient5y);
117
118 bool setCoefficient6z(double coefficient6z);
119
120 bool setMinimumValueofv(double minimumValueofv);
121
122 bool setMaximumValueofv(double maximumValueofv);
123
124 bool setMinimumValueofw(double minimumValueofw);
125
126 bool setMaximumValueofw(double maximumValueofw);
127
128 bool setMinimumValueofx(double minimumValueofx);
129
130 bool setMaximumValueofx(double maximumValueofx);
131
132 bool setMinimumValueofy(double minimumValueofy);
133
134 bool setMaximumValueofy(double maximumValueofy);
135
136 bool setMinimumValueofz(double minimumValueofz);
137
138 bool setMaximumValueofz(double maximumValueofz);
139
140 bool setMinimumCurveOutput(double minimumCurveOutput);
141
142 void resetMinimumCurveOutput();
143
144 bool setMaximumCurveOutput(double maximumCurveOutput);
145
146 void resetMaximumCurveOutput();
147
148 bool setInputUnitTypeforv(const std::string& inputUnitTypeforv);
149
150 void resetInputUnitTypeforv();
151
152 bool setInputUnitTypeforw(const std::string& inputUnitTypeforw);
153
154 void resetInputUnitTypeforw();
155
156 bool setInputUnitTypeforx(const std::string& inputUnitTypeforx);
157
158 void resetInputUnitTypeforx();
159
160 bool setInputUnitTypefory(const std::string& inputUnitTypefory);
161
162 void resetInputUnitTypefory();
163
164 bool setInputUnitTypeforz(const std::string& inputUnitTypeforz);
165
166 void resetInputUnitTypeforz();
167
168 //@}
169 /** @name Other */
170 //@{
171
172 //@}
173 protected:
174 private:
175 − REGISTER_LOGGER("openstudio.model.CurveQuintLinear");
176 };
177
178 } // namespace detail
179
180 } // namespace model
181 } // namespace openstudio
182
183 #endif // MODEL_CURVEQUINTLINEAR_IMPL_HPP
184