src/model/AirflowNetworkFan.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_AIRFLOWNETWORKFAN_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKFAN_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "AirflowNetworkComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class StraightComponent; | ||
| 16 | class FanConstantVolume; | ||
| 17 | class FanVariableVolume; | ||
| 18 | class FanOnOff; | ||
| 19 | class FanSystemModel; | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | class AirflowNetworkFan_Impl; | ||
| 24 | class FanConstantVolume_Impl; | ||
| 25 | class FanVariableVolume_Impl; | ||
| 26 | class FanOnOff_Impl; | ||
| 27 | class FanSystemModel_Impl; | ||
| 28 | |||
| 29 | } // namespace detail | ||
| 30 | |||
| 31 | /** AirflowNetworkFan is a ModelObject that wraps the OpenStudio IDD object 'OS:AirflowNetwork:Fan'. */ | ||
| 32 | class MODEL_API AirflowNetworkFan : public AirflowNetworkComponent | ||
| 33 | { | ||
| 34 | public: | ||
| 35 | /** @name Constructors and Destructors */ | ||
| 36 | //@{ | ||
| 37 | |||
| 38 | 3 | virtual ~AirflowNetworkFan() override = default; | |
| 39 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 40 | ✗ | AirflowNetworkFan(const AirflowNetworkFan& other) = default; | |
| 41 | 1 | AirflowNetworkFan(AirflowNetworkFan&& other) = default; | |
| 42 | ✗ | AirflowNetworkFan& operator=(const AirflowNetworkFan&) = default; | |
| 43 | ✗ | AirflowNetworkFan& operator=(AirflowNetworkFan&&) = default; | |
| 44 | |||
| 45 | //@} | ||
| 46 | |||
| 47 | static IddObjectType iddObjectType(); | ||
| 48 | |||
| 49 | /** @name Getters */ | ||
| 50 | //@{ | ||
| 51 | |||
| 52 | boost::optional<FanConstantVolume> fanConstantVolume() const; | ||
| 53 | boost::optional<FanVariableVolume> fanVariableVolume() const; | ||
| 54 | boost::optional<FanOnOff> fanOnOff() const; | ||
| 55 | boost::optional<FanSystemModel> fanSystemModel() const; | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Setters */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Other */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | //@} | ||
| 66 | protected: | ||
| 67 | /// @cond | ||
| 68 | using ImplType = detail::AirflowNetworkFan_Impl; | ||
| 69 | |||
| 70 | explicit AirflowNetworkFan(std::shared_ptr<detail::AirflowNetworkFan_Impl> impl); | ||
| 71 | |||
| 72 | AirflowNetworkFan(const Model& model, const Handle& handle); | ||
| 73 | |||
| 74 | friend class detail::FanConstantVolume_Impl; | ||
| 75 | friend class detail::FanVariableVolume_Impl; | ||
| 76 | friend class detail::FanOnOff_Impl; | ||
| 77 | friend class detail::FanSystemModel_Impl; | ||
| 78 | |||
| 79 | void resetFan(); | ||
| 80 | |||
| 81 | friend class detail::AirflowNetworkFan_Impl; | ||
| 82 | friend class Model; | ||
| 83 | friend class IdfObject; | ||
| 84 | friend class openstudio::detail::IdfObject_Impl; | ||
| 85 | /// @endcond | ||
| 86 | private: | ||
| 87 | REGISTER_LOGGER("openstudio.model.AirflowNetworkFan"); | ||
| 88 | }; | ||
| 89 | |||
| 90 | /** \relates AirflowNetworkFan*/ | ||
| 91 | using OptionalAirflowNetworkFan = boost::optional<AirflowNetworkFan>; | ||
| 92 | |||
| 93 | /** \relates AirflowNetworkFan*/ | ||
| 94 | using AirflowNetworkFanVector = std::vector<AirflowNetworkFan>; | ||
| 95 | |||
| 96 | } // namespace model | ||
| 97 | } // namespace openstudio | ||
| 98 | |||
| 99 | #endif // MODEL_AIRFLOWNETWORKFAN_HPP | ||
| 100 |