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/AirflowNetworkSimpleOpening_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_AIRFLOWNETWORKSIMPLEOPENING_IMPL_HPP
7 #define MODEL_AIRFLOWNETWORKSIMPLEOPENING_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10
11 #include "AirflowNetworkComponent_Impl.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 namespace detail {
17
18 /** AirflowNetworkSimpleOpening_Impl is a AirflowNetworkComponent_Impl that is the implementation class for AirflowNetworkSimpleOpening.*/
19 class MODEL_API AirflowNetworkSimpleOpening_Impl : public AirflowNetworkComponent_Impl
20 {
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 AirflowNetworkSimpleOpening_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 AirflowNetworkSimpleOpening_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 AirflowNetworkSimpleOpening_Impl(const AirflowNetworkSimpleOpening_Impl& other, Model_Impl* model, bool keepHandle);
30
31 4 virtual ~AirflowNetworkSimpleOpening_Impl() override = default;
32
33 //@}
34 /** @name Virtual Methods */
35 //@{
36
37 virtual const std::vector<std::string>& outputVariableNames() const override;
38
39 virtual IddObjectType iddObjectType() const override;
40
41 //@}
42 /** @name Getters */
43 //@{
44
45 double airMassFlowCoefficientWhenOpeningisClosed() const;
46
47 double airMassFlowExponentWhenOpeningisClosed() const;
48
49 bool isAirMassFlowExponentWhenOpeningisClosedDefaulted() const;
50
51 double minimumDensityDifferenceforTwoWayFlow() const;
52
53 double dischargeCoefficient() const;
54
55 //@}
56 /** @name Setters */
57 //@{
58
59 bool setAirMassFlowCoefficientWhenOpeningisClosed(double airMassFlowCoefficientWhenOpeningisClosed);
60
61 bool setAirMassFlowExponentWhenOpeningisClosed(double airMassFlowExponentWhenOpeningisClosed);
62
63 void resetAirMassFlowExponentWhenOpeningisClosed();
64
65 bool setMinimumDensityDifferenceforTwoWayFlow(double minimumDensityDifferenceforTwoWayFlow);
66
67 bool setDischargeCoefficient(double dischargeCoefficient);
68
69 //@}
70 /** @name Other */
71 //@{
72
73 //@}
74 protected:
75 private:
76 REGISTER_LOGGER("openstudio.model.AirflowNetworkSimpleOpening");
77 };
78
79 } // namespace detail
80
81 } // namespace model
82 } // namespace openstudio
83
84 #endif // MODEL_AIRFLOWNETWORKSIMPLEOPENING_IMPL_HPP
85