src/model/AirflowNetworkDistributionLinkage.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_AIRFLOWNETWORKDISTRIBUTIONLINKAGE_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKDISTRIBUTIONLINKAGE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | |||
| 11 | #include "AirflowNetworkLinkage.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | // TODO: Check the following class names against object getters and setters. | ||
| 17 | class AirflowNetworkNode; | ||
| 18 | class AirflowNetworkDistributionNode; | ||
| 19 | class AirflowNetworkFan; | ||
| 20 | class AirflowNetworkComponent; | ||
| 21 | class ThermalZone; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | class AirflowNetworkDistributionLinkage_Impl; | ||
| 26 | |||
| 27 | } // namespace detail | ||
| 28 | |||
| 29 | /** AirflowNetworkDistributionLinkage is a AirflowNetworkLinkage that wraps the OpenStudio IDD object 'OS:AirflowNetworkDistributionLinkage'. */ | ||
| 30 | class MODEL_API AirflowNetworkDistributionLinkage : public AirflowNetworkLinkage | ||
| 31 | { | ||
| 32 | public: | ||
| 33 | /** @name Constructors and Destructors */ | ||
| 34 | //@{ | ||
| 35 | |||
| 36 | AirflowNetworkDistributionLinkage(const Model& model, const AirflowNetworkNode& node1, const AirflowNetworkNode& node2, | ||
| 37 | const AirflowNetworkComponent& component); | ||
| 38 | |||
| 39 | 8 | virtual ~AirflowNetworkDistributionLinkage() override = default; | |
| 40 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 41 | ✗ | AirflowNetworkDistributionLinkage(const AirflowNetworkDistributionLinkage& other) = default; | |
| 42 | 2 | AirflowNetworkDistributionLinkage(AirflowNetworkDistributionLinkage&& other) = default; | |
| 43 | ✗ | AirflowNetworkDistributionLinkage& operator=(const AirflowNetworkDistributionLinkage&) = default; | |
| 44 | ✗ | AirflowNetworkDistributionLinkage& operator=(AirflowNetworkDistributionLinkage&&) = default; | |
| 45 | |||
| 46 | //@} | ||
| 47 | |||
| 48 | static IddObjectType iddObjectType(); | ||
| 49 | |||
| 50 | /** @name Getters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | // TODO: Check return type. From object lists, some candidates are: AirflowNetworkNodeAndZone. | ||
| 54 | AirflowNetworkNode node1() const; | ||
| 55 | |||
| 56 | // TODO: Check return type. From object lists, some candidates are: AirflowNetworkNodeAndZone. | ||
| 57 | AirflowNetworkNode node2() const; | ||
| 58 | |||
| 59 | // TODO: Check return type. From object lists, some candidates are: AirflowNetworkComponent. | ||
| 60 | AirflowNetworkComponent component() const; | ||
| 61 | |||
| 62 | boost::optional<ThermalZone> thermalZone() const; | ||
| 63 | |||
| 64 | //@} | ||
| 65 | /** @name Setters */ | ||
| 66 | //@{ | ||
| 67 | |||
| 68 | bool setNode1(const AirflowNetworkNode& airflowNetworkNode); | ||
| 69 | |||
| 70 | bool setNode2(const AirflowNetworkNode& airflowNetworkNode); | ||
| 71 | |||
| 72 | bool setComponent(const AirflowNetworkComponent& airflowNetworkComponent); | ||
| 73 | |||
| 74 | bool setThermalZone(const ThermalZone& zone); | ||
| 75 | |||
| 76 | void resetThermalZone(); | ||
| 77 | |||
| 78 | //@} | ||
| 79 | /** @name Other */ | ||
| 80 | //@{ | ||
| 81 | |||
| 82 | //@} | ||
| 83 | protected: | ||
| 84 | /// @cond | ||
| 85 | using ImplType = detail::AirflowNetworkDistributionLinkage_Impl; | ||
| 86 | |||
| 87 | explicit AirflowNetworkDistributionLinkage(std::shared_ptr<detail::AirflowNetworkDistributionLinkage_Impl> impl); | ||
| 88 | |||
| 89 | friend class detail::AirflowNetworkDistributionLinkage_Impl; | ||
| 90 | friend class Model; | ||
| 91 | friend class IdfObject; | ||
| 92 | friend class openstudio::detail::IdfObject_Impl; | ||
| 93 | /// @endcond | ||
| 94 | private: | ||
| 95 | REGISTER_LOGGER("openstudio.model.AirflowNetworkDistributionLinkage"); | ||
| 96 | }; | ||
| 97 | |||
| 98 | /** \relates AirflowNetworkDistributionLinkage*/ | ||
| 99 | using OptionalAirflowNetworkDistributionLinkage = boost::optional<AirflowNetworkDistributionLinkage>; | ||
| 100 | |||
| 101 | /** \relates AirflowNetworkDistributionLinkage*/ | ||
| 102 | using AirflowNetworkDistributionLinkageVector = std::vector<AirflowNetworkDistributionLinkage>; | ||
| 103 | |||
| 104 | } // namespace model | ||
| 105 | } // namespace openstudio | ||
| 106 | |||
| 107 | #endif // MODEL_AIRFLOWNETWORKDISTRIBUTIONLINKAGE_HPP | ||
| 108 |