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/CurveSigmoid_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_CURVESIGMOID_IMPL_HPP
7 #define MODEL_CURVESIGMOID_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 /** CurveSigmoid_Impl is a Curve_Impl that is the implementation class for CurveSigmoid.*/
18 class MODEL_API CurveSigmoid_Impl : public Curve_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 CurveSigmoid_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 CurveSigmoid_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 CurveSigmoid_Impl(const CurveSigmoid_Impl& other, Model_Impl* model, bool keepHandle);
30
31 49 virtual ~CurveSigmoid_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 coefficient1C1() const;
50
51 double coefficient2C2() const;
52
53 double coefficient3C3() const;
54
55 double coefficient4C4() const;
56
57 double coefficient5C5() const;
58
59 double minimumValueofx() const;
60
61 double maximumValueofx() const;
62
63 boost::optional<double> minimumCurveOutput() const;
64
65 boost::optional<double> maximumCurveOutput() const;
66
67 std::string inputUnitTypeforx() const;
68
69 bool isInputUnitTypeforxDefaulted() const;
70
71 std::string outputUnitType() const;
72
73 bool isOutputUnitTypeDefaulted() const;
74
75 //@}
76 /** @name Setters */
77 //@{
78
79 bool setCoefficient1C1(double coefficient1C1);
80
81 bool setCoefficient2C2(double coefficient2C2);
82
83 bool setCoefficient3C3(double coefficient3C3);
84
85 bool setCoefficient4C4(double coefficient4C4);
86
87 bool setCoefficient5C5(double coefficient5C5);
88
89 bool setMinimumValueofx(double minimumValueofx);
90
91 bool setMaximumValueofx(double maximumValueofx);
92
93 bool setMinimumCurveOutput(boost::optional<double> minimumCurveOutput);
94
95 void resetMinimumCurveOutput();
96
97 bool setMaximumCurveOutput(boost::optional<double> maximumCurveOutput);
98
99 void resetMaximumCurveOutput();
100
101 bool setInputUnitTypeforx(const std::string& inputUnitTypeforx);
102
103 void resetInputUnitTypeforx();
104
105 bool setOutputUnitType(const std::string& outputUnitType);
106
107 void resetOutputUnitType();
108
109 //@}
110 /** @name Other */
111 //@{
112
113 //@}
114 protected:
115 private:
116 − REGISTER_LOGGER("openstudio.model.CurveSigmoid");
117 };
118
119 } // namespace detail
120
121 } // namespace model
122 } // namespace openstudio
123
124 #endif // MODEL_CURVESIGMOID_IMPL_HPP
125