src/model/AirflowNetworkExternalNode_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_AIRFLOWNETWORKEXTERNALNODE_IMPL_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKEXTERNALNODE_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | |||
| 11 | #include "AirflowNetworkNode_Impl.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Curve; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** AirflowNetworkExternalNode_Impl is a ModelObject_Impl that is the implementation class for AirflowNetworkExternalNode.*/ | ||
| 21 | class MODEL_API AirflowNetworkExternalNode_Impl : public AirflowNetworkNode_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | AirflowNetworkExternalNode_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | AirflowNetworkExternalNode_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | AirflowNetworkExternalNode_Impl(const AirflowNetworkExternalNode_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 4 | virtual ~AirflowNetworkExternalNode_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 | double externalNodeHeight() const; | ||
| 48 | |||
| 49 | bool isExternalNodeHeightDefaulted() const; | ||
| 50 | |||
| 51 | Curve windPressureCoefficientCurve() const; | ||
| 52 | |||
| 53 | bool symmetricWindPressureCoefficientCurve() const; | ||
| 54 | |||
| 55 | bool isSymmetricWindPressureCoefficientCurveDefaulted() const; | ||
| 56 | |||
| 57 | std::string windAngleType() const; | ||
| 58 | |||
| 59 | bool isWindAngleTypeDefaulted() const; | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Setters */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | void setExternalNodeHeight(double externalNodeHeight); | ||
| 66 | |||
| 67 | void resetExternalNodeHeight(); | ||
| 68 | |||
| 69 | bool setWindPressureCoefficientCurve(const Curve& wPCValue); | ||
| 70 | |||
| 71 | void setSymmetricWindPressureCoefficientCurve(bool symmetricWindPressureCoefficientCurve); | ||
| 72 | |||
| 73 | void resetSymmetricWindPressureCoefficientCurve(); | ||
| 74 | |||
| 75 | bool setWindAngleType(const std::string& windAngleType); | ||
| 76 | |||
| 77 | void resetWindAngleType(); | ||
| 78 | |||
| 79 | //@} | ||
| 80 | /** @name Other */ | ||
| 81 | //@{ | ||
| 82 | |||
| 83 | //@} | ||
| 84 | protected: | ||
| 85 | private: | ||
| 86 | − | REGISTER_LOGGER("openstudio.model.AirflowNetworkExternalNode"); | |
| 87 | |||
| 88 | // TODO: Check the return types of these methods. | ||
| 89 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 90 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 91 | // objects should be returned as boost::optionals | ||
| 92 | boost::optional<Curve> optionalWindPressureCoefficientCurve() const; | ||
| 93 | }; | ||
| 94 | |||
| 95 | } // namespace detail | ||
| 96 | |||
| 97 | } // namespace model | ||
| 98 | } // namespace openstudio | ||
| 99 | |||
| 100 | #endif // MODEL_AIRFLOWNETWORKEXTERNALNODE_IMPL_HPP | ||
| 101 |