src/model/AirflowNetworkComponent.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_AIRFLOWNETWORKCOMPONENT_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKCOMPONENT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | class AirflowNetworkComponent_Impl; | ||
| 17 | } | ||
| 18 | |||
| 19 | /** AirflowNetworkComponent is the base class for AirflowNetwork component objects that determine linkage flows in the pressure network. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | class MODEL_API AirflowNetworkComponent : public ModelObject | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | AirflowNetworkComponent(IddObjectType type, const Model& model); | ||
| 27 | |||
| 28 | 146 | virtual ~AirflowNetworkComponent() override = default; | |
| 29 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 30 | 8 | AirflowNetworkComponent(const AirflowNetworkComponent& other) = default; | |
| 31 | 68 | AirflowNetworkComponent(AirflowNetworkComponent&& other) = default; | |
| 32 | ✗ | AirflowNetworkComponent& operator=(const AirflowNetworkComponent&) = default; | |
| 33 | 1 | AirflowNetworkComponent& operator=(AirflowNetworkComponent&&) = 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 that this component represents. **/ | ||
| 46 | boost::optional<ModelObject> componentModelObject() 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::AirflowNetworkComponent_Impl; | ||
| 71 | |||
| 72 | explicit AirflowNetworkComponent(std::shared_ptr<detail::AirflowNetworkComponent_Impl> impl); | ||
| 73 | |||
| 74 | private: | ||
| 75 | REGISTER_LOGGER("openstudio.model.AirflowNetworkComponent"); | ||
| 76 | |||
| 77 | /// @endcond | ||
| 78 | }; | ||
| 79 | |||
| 80 | using OptionalAirflowNetworkComponent = boost::optional<AirflowNetworkComponent>; | ||
| 81 | |||
| 82 | using AirflowNetworkComponentVector = std::vector<AirflowNetworkComponent>; | ||
| 83 | |||
| 84 | } // namespace model | ||
| 85 | } // namespace openstudio | ||
| 86 | |||
| 87 | #endif // MODEL_AIRFLOWNETWORKCOMPONENT_HPP | ||
| 88 |