src/model/CurveRectangularHyperbola1.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_CURVERECTANGULARHYPERBOLA1_HPP | ||
| 7 | #define MODEL_CURVERECTANGULARHYPERBOLA1_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "Curve.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | class CurveRectangularHyperbola1_Impl; | ||
| 18 | |||
| 19 | } // namespace detail | ||
| 20 | |||
| 21 | /** CurveRectangularHyperbola1 is a Curve that wraps the OpenStudio IDD object | ||
| 22 | * 'OS:Curve:RectangularHyperbola1'. The functional form is \f$\displaystyle f(x) = \frac{c_1 \cdot x}{c_2 + x} + c_3\f$ */ | ||
| 23 | class MODEL_API CurveRectangularHyperbola1 : public Curve | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | /** Initializes \f$c_1 = c_2 = 1.0,\ c_3 = 0.0,\ xmin = 0.0,\ xmax = 1.0\f$ */ | ||
| 30 | explicit CurveRectangularHyperbola1(const Model& model); | ||
| 31 | |||
| 32 | 10 | virtual ~CurveRectangularHyperbola1() override = default; | |
| 33 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 34 | ✗ | CurveRectangularHyperbola1(const CurveRectangularHyperbola1& other) = default; | |
| 35 | ✗ | CurveRectangularHyperbola1(CurveRectangularHyperbola1&& other) = default; | |
| 36 | ✗ | CurveRectangularHyperbola1& operator=(const CurveRectangularHyperbola1&) = default; | |
| 37 | ✗ | CurveRectangularHyperbola1& operator=(CurveRectangularHyperbola1&&) = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | |||
| 41 | static IddObjectType iddObjectType(); | ||
| 42 | |||
| 43 | static std::vector<std::string> validInputUnitTypeforxValues(); | ||
| 44 | |||
| 45 | static std::vector<std::string> validOutputUnitTypeValues(); | ||
| 46 | |||
| 47 | /** @name Getters */ | ||
| 48 | //@{ | ||
| 49 | |||
| 50 | double coefficient1C1() const; | ||
| 51 | |||
| 52 | double coefficient2C2() const; | ||
| 53 | |||
| 54 | double coefficient3C3() const; | ||
| 55 | |||
| 56 | double minimumValueofx() const; | ||
| 57 | |||
| 58 | double maximumValueofx() const; | ||
| 59 | |||
| 60 | boost::optional<double> minimumCurveOutput() const; | ||
| 61 | |||
| 62 | boost::optional<double> maximumCurveOutput() const; | ||
| 63 | |||
| 64 | std::string inputUnitTypeforx() const; | ||
| 65 | |||
| 66 | bool isInputUnitTypeforxDefaulted() const; | ||
| 67 | |||
| 68 | std::string outputUnitType() const; | ||
| 69 | |||
| 70 | bool isOutputUnitTypeDefaulted() const; | ||
| 71 | |||
| 72 | //@} | ||
| 73 | /** @name Setters */ | ||
| 74 | //@{ | ||
| 75 | |||
| 76 | bool setCoefficient1C1(double coefficient1C1); | ||
| 77 | |||
| 78 | bool setCoefficient2C2(double coefficient2C2); | ||
| 79 | |||
| 80 | bool setCoefficient3C3(double coefficient3C3); | ||
| 81 | |||
| 82 | bool setMinimumValueofx(double minimumValueofx); | ||
| 83 | |||
| 84 | bool setMaximumValueofx(double maximumValueofx); | ||
| 85 | |||
| 86 | bool setMinimumCurveOutput(double minimumCurveOutput); | ||
| 87 | |||
| 88 | void resetMinimumCurveOutput(); | ||
| 89 | |||
| 90 | bool setMaximumCurveOutput(double maximumCurveOutput); | ||
| 91 | |||
| 92 | void resetMaximumCurveOutput(); | ||
| 93 | |||
| 94 | bool setInputUnitTypeforx(const std::string& inputUnitTypeforx); | ||
| 95 | |||
| 96 | void resetInputUnitTypeforx(); | ||
| 97 | |||
| 98 | bool setOutputUnitType(const std::string& outputUnitType); | ||
| 99 | |||
| 100 | void resetOutputUnitType(); | ||
| 101 | |||
| 102 | //@} | ||
| 103 | /** @name Other */ | ||
| 104 | //@{ | ||
| 105 | |||
| 106 | //@} | ||
| 107 | protected: | ||
| 108 | /// @cond | ||
| 109 | using ImplType = detail::CurveRectangularHyperbola1_Impl; | ||
| 110 | |||
| 111 | explicit CurveRectangularHyperbola1(std::shared_ptr<detail::CurveRectangularHyperbola1_Impl> impl); | ||
| 112 | |||
| 113 | friend class detail::CurveRectangularHyperbola1_Impl; | ||
| 114 | friend class Model; | ||
| 115 | friend class IdfObject; | ||
| 116 | friend class openstudio::detail::IdfObject_Impl; | ||
| 117 | |||
| 118 | /// @endcond | ||
| 119 | private: | ||
| 120 | REGISTER_LOGGER("openstudio.model.CurveRectangularHyperbola1"); | ||
| 121 | }; | ||
| 122 | |||
| 123 | /** \relates CurveRectangularHyperbola1*/ | ||
| 124 | using OptionalCurveRectangularHyperbola1 = boost::optional<CurveRectangularHyperbola1>; | ||
| 125 | |||
| 126 | /** \relates CurveRectangularHyperbola1*/ | ||
| 127 | using CurveRectangularHyperbola1Vector = std::vector<CurveRectangularHyperbola1>; | ||
| 128 | |||
| 129 | } // namespace model | ||
| 130 | } // namespace openstudio | ||
| 131 | |||
| 132 | #endif // MODEL_CURVERECTANGULARHYPERBOLA1_HPP | ||
| 133 |