src/model/AirflowNetworkNode.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_AIRFLOWNETWORKNODE_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKNODE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | class AirflowNetworkNode_Impl; | ||
| 17 | } | ||
| 18 | |||
| 19 | /** AirflowNetworkNode is the base class for AirflowNetwork objects that are nodes in the pressure network. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | class MODEL_API AirflowNetworkNode : public ModelObject | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | AirflowNetworkNode(IddObjectType type, const Model& model); | ||
| 27 | |||
| 28 | 86 | virtual ~AirflowNetworkNode() override = default; | |
| 29 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 30 | 10 | AirflowNetworkNode(const AirflowNetworkNode& other) = default; | |
| 31 | 35 | AirflowNetworkNode(AirflowNetworkNode&& other) = default; | |
| 32 | ✗ | AirflowNetworkNode& operator=(const AirflowNetworkNode&) = default; | |
| 33 | 3 | AirflowNetworkNode& operator=(AirflowNetworkNode&&) = default; | |
| 34 | |||
| 35 | //std::vector<openstudio::IdfObject> remove(); | ||
| 36 | |||
| 37 | //bool removeFromLoop(); | ||
| 38 | |||
| 39 | //** Returns the inlet port. **/ | ||
| 40 | //unsigned inletPort() const; | ||
| 41 | |||
| 42 | //** Returns the outlet port. **/ | ||
| 43 | //unsigned outletPort() const; | ||
| 44 | |||
| 45 | //** Returns the optional ModelObject connected to the inlet port. **/ | ||
| 46 | //boost::optional<ModelObject> inletModelObject() const; | ||
| 47 | |||
| 48 | //** Returns the optional ModelObject connected to the outlet port. **/ | ||
| 49 | //boost::optional<ModelObject> outletModelObject() const; | ||
| 50 | |||
| 51 | //** Returns the optional AirLoopHVAC object that this AirToAirComponent is attached to. | ||
| 52 | // * | ||
| 53 | // * Reimplemented from HVACComponent. | ||
| 54 | // */ | ||
| 55 | //boost::optional<AirLoopHVAC> airLoopHVAC() const; | ||
| 56 | |||
| 57 | //bool addToNode(Node & node); | ||
| 58 | |||
| 59 | //ModelObject clone(Model model) const; | ||
| 60 | |||
| 61 | //void disconnect(); | ||
| 62 | |||
| 63 | protected: | ||
| 64 | friend class Model; | ||
| 65 | |||
| 66 | friend class openstudio::IdfObject; | ||
| 67 | |||
| 68 | /// @cond | ||
| 69 | |||
| 70 | using ImplType = detail::AirflowNetworkNode_Impl; | ||
| 71 | |||
| 72 | explicit AirflowNetworkNode(std::shared_ptr<detail::AirflowNetworkNode_Impl> impl); | ||
| 73 | |||
| 74 | private: | ||
| 75 | REGISTER_LOGGER("openstudio.model.AirflowNetworkNode"); | ||
| 76 | |||
| 77 | /// @endcond | ||
| 78 | }; | ||
| 79 | |||
| 80 | using OptionalAirflowNetworkNode = boost::optional<AirflowNetworkNode>; | ||
| 81 | |||
| 82 | using AirflowNetworkNodeVector = std::vector<AirflowNetworkNode>; | ||
| 83 | |||
| 84 | } // namespace model | ||
| 85 | } // namespace openstudio | ||
| 86 | |||
| 87 | #endif // MODEL_AIRFLOWNETWORKNODE_HPP | ||
| 88 |