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