GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/AirflowNetworkEquivalentDuct_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_AIRFLOWNETWORKEQUIVALENTDUCT_IMPL_HPP
7 #define MODEL_AIRFLOWNETWORKEQUIVALENTDUCT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AirflowNetworkComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class StraightComponent;
16
17 namespace detail {
18
19 /** AirflowNetworkEquivalentDuct_Impl is a AirflowNetworkComponent_Impl that is the implementation class for AirflowNetworkEquivalentDuct.*/
20 class MODEL_API AirflowNetworkEquivalentDuct_Impl : public AirflowNetworkComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 AirflowNetworkEquivalentDuct_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 AirflowNetworkEquivalentDuct_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 AirflowNetworkEquivalentDuct_Impl(const AirflowNetworkEquivalentDuct_Impl& other, Model_Impl* model, bool keepHandle);
31
32 5 virtual ~AirflowNetworkEquivalentDuct_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual boost::optional<ModelObject> componentModelObject() const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 boost::optional<StraightComponent> straightComponent() const;
49
50 /*
51 template <typename T> boost::optional<T> component() const
52 {
53 return getObject<ModelObject>().getModelObjectTarget<T>(OS_AirflowNetworkEquivalentDuctFields::ComponentName);
54 }
55 */
56
57 boost::optional<std::string> coilObjectType() const;
58 boost::optional<std::string> heatExchangerObjectType() const;
59 boost::optional<std::string> terminalUnitObjectType() const;
60
61 double airPathLength() const;
62
63 double airPathHydraulicDiameter() const;
64
65 //@}
66 /** @name Setters */
67 //@{
68
69 void resetComponent();
70
71 bool setAirPathLength(double airPathLength);
72
73 bool setAirPathHydraulicDiameter(double airPathHydraulicDiameter);
74
75 //@}
76 /** @name Other */
77 //@{
78
79 //@}
80 protected:
81 private:
82 REGISTER_LOGGER("openstudio.model.AirflowNetworkEquivalentDuct");
83
84 // TODO: Check the return types of these methods.
85 // Optional getters for use by methods like children() so can remove() if the constructor fails.
86 // There are other ways for the public versions of these getters to fail--perhaps all required
87 // objects should be returned as boost::optionals
88 //boost::optional<AFNTerminalUnit> optionalTerminalUnit() const;
89 };
90
91 } // namespace detail
92
93 } // namespace model
94 } // namespace openstudio
95
96 #endif // MODEL_AIRFLOWNETWORKEQUIVALENTDUCT_IMPL_HPP
97