src/model/AirflowNetworkDistributionNode.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_AIRFLOWNETWORKDISTRIBUTIONNODE_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKDISTRIBUTIONNODE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | |||
| 11 | #include "AirflowNetworkNode.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | |||
| 15 | namespace model { | ||
| 16 | |||
| 17 | class AirLoopHVACZoneMixer; | ||
| 18 | class AirLoopHVACZoneSplitter; | ||
| 19 | class AirLoopHVACOutdoorAirSystem; | ||
| 20 | //OAMixerOutdoorAirStreamNode | ||
| 21 | //OutdoorAir : NodeList | ||
| 22 | //OutdoorAir : Node | ||
| 23 | class Node; | ||
| 24 | |||
| 25 | namespace detail { | ||
| 26 | |||
| 27 | class Node_Impl; | ||
| 28 | class AirLoopHVACZoneMixer_Impl; | ||
| 29 | class AirLoopHVACZoneSplitter_Impl; | ||
| 30 | class AirLoopHVACOutdoorAirSystem_Impl; | ||
| 31 | class AirflowNetworkDistributionNode_Impl; | ||
| 32 | |||
| 33 | } // namespace detail | ||
| 34 | |||
| 35 | /** AirflowNetworkDistributionNode is a AirflowNetworkNode that wraps the OpenStudio IDD object 'OS:AirflowNetworkDistributionNode'. */ | ||
| 36 | class MODEL_API AirflowNetworkDistributionNode : public AirflowNetworkNode | ||
| 37 | { | ||
| 38 | public: | ||
| 39 | /** @name Constructors and Destructors */ | ||
| 40 | //@{ | ||
| 41 | |||
| 42 | AirflowNetworkDistributionNode(const Model& model); | ||
| 43 | |||
| 44 | 37 | virtual ~AirflowNetworkDistributionNode() override = default; | |
| 45 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 46 | ✗ | AirflowNetworkDistributionNode(const AirflowNetworkDistributionNode& other) = default; | |
| 47 | 15 | AirflowNetworkDistributionNode(AirflowNetworkDistributionNode&& other) = default; | |
| 48 | ✗ | AirflowNetworkDistributionNode& operator=(const AirflowNetworkDistributionNode&) = default; | |
| 49 | 2 | AirflowNetworkDistributionNode& operator=(AirflowNetworkDistributionNode&&) = default; | |
| 50 | |||
| 51 | //@} | ||
| 52 | |||
| 53 | static IddObjectType iddObjectType(); | ||
| 54 | |||
| 55 | //static std::vector<std::string> componentObjectTypeorNodeTypeValues(); | ||
| 56 | |||
| 57 | /** @name Getters */ | ||
| 58 | //@{ | ||
| 59 | boost::optional<Node> node() const; | ||
| 60 | boost::optional<AirLoopHVACZoneMixer> airLoopHVACZoneMixer() const; | ||
| 61 | boost::optional<AirLoopHVACZoneSplitter> airLoopHVACZoneSplitter() const; | ||
| 62 | boost::optional<AirLoopHVACOutdoorAirSystem> airLoopHVACOutdoorAirSystem() const; | ||
| 63 | //OAMixerOutdoorAirStreamNode | ||
| 64 | //OutdoorAir : NodeList | ||
| 65 | //OutdoorAir : Node | ||
| 66 | |||
| 67 | double nodeHeight() const; | ||
| 68 | |||
| 69 | bool isNodeHeightDefaulted() const; | ||
| 70 | |||
| 71 | //@} | ||
| 72 | /** @name Setters */ | ||
| 73 | //@{ | ||
| 74 | |||
| 75 | void setNodeHeight(double nodeHeight); | ||
| 76 | |||
| 77 | void resetNodeHeight(); | ||
| 78 | |||
| 79 | //@} | ||
| 80 | /** @name Other */ | ||
| 81 | //@{ | ||
| 82 | |||
| 83 | //@} | ||
| 84 | protected: | ||
| 85 | /// @cond | ||
| 86 | using ImplType = detail::AirflowNetworkDistributionNode_Impl; | ||
| 87 | |||
| 88 | explicit AirflowNetworkDistributionNode(std::shared_ptr<detail::AirflowNetworkDistributionNode_Impl> impl); | ||
| 89 | |||
| 90 | AirflowNetworkDistributionNode(const Model& model, const Handle& handle); | ||
| 91 | |||
| 92 | void resetComponent(); | ||
| 93 | |||
| 94 | friend class detail::Node_Impl; | ||
| 95 | friend class detail::AirLoopHVACZoneMixer_Impl; | ||
| 96 | friend class detail::AirLoopHVACZoneSplitter_Impl; | ||
| 97 | friend class detail::AirLoopHVACOutdoorAirSystem_Impl; | ||
| 98 | friend class detail::AirflowNetworkDistributionNode_Impl; | ||
| 99 | friend class Model; | ||
| 100 | friend class IdfObject; | ||
| 101 | friend class openstudio::detail::IdfObject_Impl; | ||
| 102 | /// @endcond | ||
| 103 | private: | ||
| 104 | REGISTER_LOGGER("openstudio.model.AirflowNetworkDistributionNode"); | ||
| 105 | }; | ||
| 106 | |||
| 107 | /** \relates AirflowNetworkDistributionNode*/ | ||
| 108 | using OptionalAirflowNetworkDistributionNode = boost::optional<AirflowNetworkDistributionNode>; | ||
| 109 | |||
| 110 | /** \relates AirflowNetworkDistributionNode*/ | ||
| 111 | using AirflowNetworkDistributionNodeVector = std::vector<AirflowNetworkDistributionNode>; | ||
| 112 | |||
| 113 | } // namespace model | ||
| 114 | } // namespace openstudio | ||
| 115 | |||
| 116 | #endif // MODEL_AIRFLOWNETWORKDISTRIBUTIONNODE_HPP | ||
| 117 |