src/model/AirflowNetworkLeakageRatio.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_AIRFLOWNETWORKLEAKAGERATIO_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKLEAKAGERATIO_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "AirflowNetworkComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class AirflowNetworkLeakageRatio_Impl; | ||
| 19 | |||
| 20 | } // namespace detail | ||
| 21 | |||
| 22 | /** AirflowNetworkLeakageRatio is a AirflowNetworkComponent that wraps the OpenStudio IDD object 'OS:AirflowNetwork:LeakageRatio'. */ | ||
| 23 | class MODEL_API AirflowNetworkLeakageRatio : public AirflowNetworkComponent | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | explicit AirflowNetworkLeakageRatio(const Model& model); | ||
| 30 | |||
| 31 | ✗ | virtual ~AirflowNetworkLeakageRatio() override = default; | |
| 32 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 33 | ✗ | AirflowNetworkLeakageRatio(const AirflowNetworkLeakageRatio& other) = default; | |
| 34 | ✗ | AirflowNetworkLeakageRatio(AirflowNetworkLeakageRatio&& other) = default; | |
| 35 | ✗ | AirflowNetworkLeakageRatio& operator=(const AirflowNetworkLeakageRatio&) = default; | |
| 36 | ✗ | AirflowNetworkLeakageRatio& operator=(AirflowNetworkLeakageRatio&&) = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | /** @name Getters */ | ||
| 43 | //@{ | ||
| 44 | |||
| 45 | boost::optional<double> effectiveLeakageRatio() const; | ||
| 46 | |||
| 47 | double maximumFlowRate() const; | ||
| 48 | |||
| 49 | double referencePressureDifference() const; | ||
| 50 | |||
| 51 | double airMassFlowExponent() const; | ||
| 52 | |||
| 53 | bool isAirMassFlowExponentDefaulted() const; | ||
| 54 | |||
| 55 | //@} | ||
| 56 | /** @name Setters */ | ||
| 57 | //@{ | ||
| 58 | |||
| 59 | bool setEffectiveLeakageRatio(double effectiveLeakageRatio); | ||
| 60 | |||
| 61 | void resetEffectiveLeakageRatio(); | ||
| 62 | |||
| 63 | bool setMaximumFlowRate(double maximumFlowRate); | ||
| 64 | |||
| 65 | bool setReferencePressureDifference(double referencePressureDifference); | ||
| 66 | |||
| 67 | bool setAirMassFlowExponent(double airMassFlowExponent); | ||
| 68 | |||
| 69 | void resetAirMassFlowExponent(); | ||
| 70 | |||
| 71 | //@} | ||
| 72 | /** @name Other */ | ||
| 73 | //@{ | ||
| 74 | |||
| 75 | //@} | ||
| 76 | protected: | ||
| 77 | /// @cond | ||
| 78 | using ImplType = detail::AirflowNetworkLeakageRatio_Impl; | ||
| 79 | |||
| 80 | explicit AirflowNetworkLeakageRatio(std::shared_ptr<detail::AirflowNetworkLeakageRatio_Impl> impl); | ||
| 81 | |||
| 82 | friend class detail::AirflowNetworkLeakageRatio_Impl; | ||
| 83 | friend class Model; | ||
| 84 | friend class IdfObject; | ||
| 85 | friend class openstudio::detail::IdfObject_Impl; | ||
| 86 | /// @endcond | ||
| 87 | private: | ||
| 88 | REGISTER_LOGGER("openstudio.model.AirflowNetworkLeakageRatio"); | ||
| 89 | }; | ||
| 90 | |||
| 91 | /** \relates AirflowNetworkLeakageRatio*/ | ||
| 92 | using OptionalAirflowNetworkLeakageRatio = boost::optional<AirflowNetworkLeakageRatio>; | ||
| 93 | |||
| 94 | /** \relates AirflowNetworkLeakageRatio*/ | ||
| 95 | using AirflowNetworkLeakageRatioVector = std::vector<AirflowNetworkLeakageRatio>; | ||
| 96 | |||
| 97 | } // namespace model | ||
| 98 | } // namespace openstudio | ||
| 99 | |||
| 100 | #endif // MODEL_AIRFLOWNETWORKLEAKAGERATIO_HPP | ||
| 101 |