src/model/AirflowNetworkDistributionNode_Impl.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_IMPL_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKDISTRIBUTIONNODE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | |||
| 11 | #include "AirflowNetworkNode_Impl.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class HVACComponent; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** AirflowNetworkDistributionNode_Impl is a AirflowNetworkNode_Impl that is the implementation class for AirflowNetworkDistributionNode.*/ | ||
| 21 | class MODEL_API AirflowNetworkDistributionNode_Impl : public AirflowNetworkNode_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | AirflowNetworkDistributionNode_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | AirflowNetworkDistributionNode_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | AirflowNetworkDistributionNode_Impl(const AirflowNetworkDistributionNode_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 13 | virtual ~AirflowNetworkDistributionNode_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | //@} | ||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | /* | ||
| 47 | template <typename T> boost::optional<typename std::enable_if<std::is_same<AirLoopHVACZoneMixer, T>::value || | ||
| 48 | std::is_same<AirLoopHVACZoneSplitter, T>::value || | ||
| 49 | std::is_same<AirLoopHVACOutdoorAirSystem, T>::value || //::type> component() const | ||
| 50 | //OAMixerOutdoorAirStreamNode | ||
| 51 | //OutdoorAir : NodeList | ||
| 52 | //OutdoorAir : Node | ||
| 53 | std::is_same<Node, T>::value, T>::type> component() const | ||
| 54 | { | ||
| 55 | return getObject<ModelObject>().getModelObjectTarget<T>(OS_AirflowNetworkDistributionNodeFields::ComponentNameorNodeName); | ||
| 56 | } | ||
| 57 | */ | ||
| 58 | |||
| 59 | boost::optional<HVACComponent> component() const; | ||
| 60 | |||
| 61 | boost::optional<Node> node() const; | ||
| 62 | |||
| 63 | boost::optional<AirLoopHVACZoneMixer> airLoopHVACZoneMixer() const; | ||
| 64 | |||
| 65 | boost::optional<AirLoopHVACZoneSplitter> airLoopHVACZoneSplitter() const; | ||
| 66 | |||
| 67 | boost::optional<AirLoopHVACOutdoorAirSystem> airLoopHVACOutdoorAirSystem() const; | ||
| 68 | |||
| 69 | double nodeHeight() const; | ||
| 70 | |||
| 71 | bool isNodeHeightDefaulted() const; | ||
| 72 | |||
| 73 | //@} | ||
| 74 | /** @name Setters */ | ||
| 75 | //@{ | ||
| 76 | |||
| 77 | void setComponentNameorNodeName(const std::string& componentNameorNodeName); | ||
| 78 | |||
| 79 | void resetComponent(); | ||
| 80 | |||
| 81 | void setNodeHeight(double nodeHeight); | ||
| 82 | |||
| 83 | void resetNodeHeight(); | ||
| 84 | |||
| 85 | //@} | ||
| 86 | /** @name Other */ | ||
| 87 | //@{ | ||
| 88 | |||
| 89 | //@} | ||
| 90 | protected: | ||
| 91 | private: | ||
| 92 | REGISTER_LOGGER("openstudio.model.AirflowNetworkDistributionNode"); | ||
| 93 | }; | ||
| 94 | |||
| 95 | } // namespace detail | ||
| 96 | |||
| 97 | } // namespace model | ||
| 98 | } // namespace openstudio | ||
| 99 | |||
| 100 | #endif // MODEL_AIRFLOWNETWORKDISTRIBUTIONNODE_IMPL_HPP | ||
| 101 |