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/CurveBicubic_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_CURVEBICUBIC_IMPL_HPP
7 #define MODEL_CURVEBICUBIC_IMPL_HPP
8
9 #include "Curve_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 /** CurveBicubic_Impl is a Curve_Impl that is the implementation class for CurveBicubic.*/
17 class MODEL_API CurveBicubic_Impl : public Curve_Impl
18 {
19
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 CurveBicubic_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 CurveBicubic_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 CurveBicubic_Impl(const CurveBicubic_Impl& other, Model_Impl* model, bool keepHandle);
29
30 219 virtual ~CurveBicubic_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 coefficient2x() const;
51
52 double coefficient3xPOW2() const;
53
54 double coefficient4y() const;
55
56 double coefficient5yPOW2() const;
57
58 double coefficient6xTIMESY() const;
59
60 double coefficient7xPOW3() const;
61
62 double coefficient8yPOW3() const;
63
64 double coefficient9xPOW2TIMESY() const;
65
66 double coefficient10xTIMESYPOW2() const;
67
68 double minimumValueofx() const;
69
70 double maximumValueofx() const;
71
72 double minimumValueofy() const;
73
74 double maximumValueofy() const;
75
76 boost::optional<double> minimumCurveOutput() const;
77
78 boost::optional<double> maximumCurveOutput() const;
79
80 std::string inputUnitTypeforX() const;
81
82 bool isInputUnitTypeforXDefaulted() const;
83
84 std::string inputUnitTypeforY() const;
85
86 bool isInputUnitTypeforYDefaulted() const;
87
88 std::string outputUnitType() const;
89
90 bool isOutputUnitTypeDefaulted() const;
91
92 //@}
93 /** @name Setters */
94 //@{
95
96 bool setCoefficient1Constant(double coefficient1Constant);
97
98 bool setCoefficient2x(double coefficient2x);
99
100 bool setCoefficient3xPOW2(double coefficient3xPOW2);
101
102 bool setCoefficient4y(double coefficient4y);
103
104 bool setCoefficient5yPOW2(double coefficient5yPOW2);
105
106 bool setCoefficient6xTIMESY(double coefficient6xTIMESY);
107
108 bool setCoefficient7xPOW3(double coefficient7xPOW3);
109
110 bool setCoefficient8yPOW3(double coefficient8yPOW3);
111
112 bool setCoefficient9xPOW2TIMESY(double coefficient9xPOW2TIMESY);
113
114 bool setCoefficient10xTIMESYPOW2(double coefficient10xTIMESYPOW2);
115
116 bool setMinimumValueofx(double minimumValueofx);
117
118 bool setMaximumValueofx(double maximumValueofx);
119
120 bool setMinimumValueofy(double minimumValueofy);
121
122 bool setMaximumValueofy(double maximumValueofy);
123
124 bool setMinimumCurveOutput(boost::optional<double> minimumCurveOutput);
125
126 void resetMinimumCurveOutput();
127
128 bool setMaximumCurveOutput(boost::optional<double> maximumCurveOutput);
129
130 void resetMaximumCurveOutput();
131
132 bool setInputUnitTypeforX(const std::string& inputUnitTypeforX);
133
134 void resetInputUnitTypeforX();
135
136 bool setInputUnitTypeforY(const std::string& inputUnitTypeforY);
137
138 void resetInputUnitTypeforY();
139
140 bool setOutputUnitType(const std::string& outputUnitType);
141
142 void resetOutputUnitType();
143
144 //@}
145 /** @name Other */
146 //@{
147
148 //@}
149 protected:
150 private:
151 − REGISTER_LOGGER("openstudio.model.CurveBicubic");
152 };
153
154 } // namespace detail
155
156 } // namespace model
157 } // namespace openstudio
158
159 #endif // MODEL_CURVEBICUBIC_IMPL_HPP
160