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