src/model/CurveQuadLinear_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_CURVEQUADLINEAR_IMPL_HPP | ||
| 7 | #define MODEL_CURVEQUADLINEAR_IMPL_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "Curve_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | /** CurveQuadLinear_Impl is a Curve_Impl that is the implementation class for CurveQuadLinear.*/ | ||
| 18 | class MODEL_API CurveQuadLinear_Impl : public Curve_Impl | ||
| 19 | { | ||
| 20 | public: | ||
| 21 | /** @name Constructors and Destructors */ | ||
| 22 | //@{ | ||
| 23 | |||
| 24 | CurveQuadLinear_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 25 | |||
| 26 | CurveQuadLinear_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | CurveQuadLinear_Impl(const CurveQuadLinear_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | 190 | virtual ~CurveQuadLinear_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 coefficient2w() const; | ||
| 51 | |||
| 52 | double coefficient3x() const; | ||
| 53 | |||
| 54 | double coefficient4y() const; | ||
| 55 | |||
| 56 | double coefficient5z() const; | ||
| 57 | |||
| 58 | double minimumValueofw() const; | ||
| 59 | |||
| 60 | double maximumValueofw() const; | ||
| 61 | |||
| 62 | double minimumValueofx() const; | ||
| 63 | |||
| 64 | double maximumValueofx() const; | ||
| 65 | |||
| 66 | double minimumValueofy() const; | ||
| 67 | |||
| 68 | double maximumValueofy() const; | ||
| 69 | |||
| 70 | double minimumValueofz() const; | ||
| 71 | |||
| 72 | double maximumValueofz() const; | ||
| 73 | |||
| 74 | boost::optional<double> minimumCurveOutput() const; | ||
| 75 | |||
| 76 | boost::optional<double> maximumCurveOutput() const; | ||
| 77 | |||
| 78 | std::string inputUnitTypeforw() const; | ||
| 79 | |||
| 80 | bool isInputUnitTypeforwDefaulted() const; | ||
| 81 | |||
| 82 | std::string inputUnitTypeforx() const; | ||
| 83 | |||
| 84 | bool isInputUnitTypeforxDefaulted() const; | ||
| 85 | |||
| 86 | std::string inputUnitTypefory() const; | ||
| 87 | |||
| 88 | bool isInputUnitTypeforyDefaulted() const; | ||
| 89 | |||
| 90 | std::string inputUnitTypeforz() const; | ||
| 91 | |||
| 92 | bool isInputUnitTypeforzDefaulted() const; | ||
| 93 | |||
| 94 | //@} | ||
| 95 | /** @name Setters */ | ||
| 96 | //@{ | ||
| 97 | |||
| 98 | bool setCoefficient1Constant(double coefficient1Constant); | ||
| 99 | |||
| 100 | bool setCoefficient2w(double coefficient2w); | ||
| 101 | |||
| 102 | bool setCoefficient3x(double coefficient3x); | ||
| 103 | |||
| 104 | bool setCoefficient4y(double coefficient4y); | ||
| 105 | |||
| 106 | bool setCoefficient5z(double coefficient5z); | ||
| 107 | |||
| 108 | bool setMinimumValueofw(double minimumValueofw); | ||
| 109 | |||
| 110 | bool setMaximumValueofw(double maximumValueofw); | ||
| 111 | |||
| 112 | bool setMinimumValueofx(double minimumValueofx); | ||
| 113 | |||
| 114 | bool setMaximumValueofx(double maximumValueofx); | ||
| 115 | |||
| 116 | bool setMinimumValueofy(double minimumValueofy); | ||
| 117 | |||
| 118 | bool setMaximumValueofy(double maximumValueofy); | ||
| 119 | |||
| 120 | bool setMinimumValueofz(double minimumValueofz); | ||
| 121 | |||
| 122 | bool setMaximumValueofz(double maximumValueofz); | ||
| 123 | |||
| 124 | bool setMinimumCurveOutput(double minimumCurveOutput); | ||
| 125 | |||
| 126 | void resetMinimumCurveOutput(); | ||
| 127 | |||
| 128 | bool setMaximumCurveOutput(double maximumCurveOutput); | ||
| 129 | |||
| 130 | void resetMaximumCurveOutput(); | ||
| 131 | |||
| 132 | bool setInputUnitTypeforw(const std::string& inputUnitTypeforw); | ||
| 133 | |||
| 134 | void resetInputUnitTypeforw(); | ||
| 135 | |||
| 136 | bool setInputUnitTypeforx(const std::string& inputUnitTypeforx); | ||
| 137 | |||
| 138 | void resetInputUnitTypeforx(); | ||
| 139 | |||
| 140 | bool setInputUnitTypefory(const std::string& inputUnitTypefory); | ||
| 141 | |||
| 142 | void resetInputUnitTypefory(); | ||
| 143 | |||
| 144 | bool setInputUnitTypeforz(const std::string& inputUnitTypeforz); | ||
| 145 | |||
| 146 | void resetInputUnitTypeforz(); | ||
| 147 | |||
| 148 | //@} | ||
| 149 | /** @name Other */ | ||
| 150 | //@{ | ||
| 151 | |||
| 152 | //@} | ||
| 153 | protected: | ||
| 154 | private: | ||
| 155 | − | REGISTER_LOGGER("openstudio.model.CurveQuadLinear"); | |
| 156 | }; | ||
| 157 | |||
| 158 | } // namespace detail | ||
| 159 | |||
| 160 | } // namespace model | ||
| 161 | } // namespace openstudio | ||
| 162 | |||
| 163 | #endif // MODEL_CURVEQUADLINEAR_IMPL_HPP | ||
| 164 |