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/CurveCubic_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_CURVECUBIC_IMPL_HPP
7 #define MODEL_CURVECUBIC_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 /** CurveCubic_Impl is a Curve_Impl that is the implementation class for CurveCubic.*/
18 class MODEL_API CurveCubic_Impl : public Curve_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 CurveCubic_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 CurveCubic_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 CurveCubic_Impl(const CurveCubic_Impl& other, Model_Impl* model, bool keepHandle);
30
31 1443 virtual ~CurveCubic_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 coefficient4xPOW3() const;
56
57 double minimumValueofx() const;
58
59 double maximumValueofx() const;
60
61 boost::optional<double> minimumCurveOutput() const;
62
63 boost::optional<double> maximumCurveOutput() const;
64
65 std::string inputUnitTypeforX() const;
66
67 bool isInputUnitTypeforXDefaulted() const;
68
69 std::string outputUnitType() const;
70
71 bool isOutputUnitTypeDefaulted() const;
72
73 //@}
74 /** @name Setters */
75 //@{
76
77 bool setCoefficient1Constant(double coefficient1Constant);
78
79 bool setCoefficient2x(double coefficient2x);
80
81 bool setCoefficient3xPOW2(double coefficient3xPOW2);
82
83 bool setCoefficient4xPOW3(double coefficient4xPOW3);
84
85 bool setMinimumValueofx(double minimumValueofx);
86
87 bool setMaximumValueofx(double maximumValueofx);
88
89 bool setMinimumCurveOutput(boost::optional<double> minimumCurveOutput);
90
91 void resetMinimumCurveOutput();
92
93 bool setMaximumCurveOutput(boost::optional<double> maximumCurveOutput);
94
95 void resetMaximumCurveOutput();
96
97 bool setInputUnitTypeforX(const std::string& inputUnitTypeforX);
98
99 void resetInputUnitTypeforX();
100
101 bool setOutputUnitType(const std::string& outputUnitType);
102
103 void resetOutputUnitType();
104
105 //@}
106 /** @name Other */
107 //@{
108
109 //@}
110 protected:
111 private:
112 − REGISTER_LOGGER("openstudio.model.CurveCubic");
113 };
114
115 } // namespace detail
116
117 } // namespace model
118 } // namespace openstudio
119
120 #endif // MODEL_CURVECUBIC_IMPL_HPP
121