GCC Code Coverage Report


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

src/model/SpaceInfiltrationFlowCoefficient.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_SPACEINFILTRATIONFLOWCOEFFICIENT_HPP
7 #define MODEL_SPACEINFILTRATIONFLOWCOEFFICIENT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "SpaceLoad.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 class SpaceInfiltrationFlowCoefficient_Impl;
20
21 } // namespace detail
22
23 /** SpaceInfiltrationFlowCoefficient is a SpaceLoad that wraps the OpenStudio IDD object 'OS:SpaceInfiltration:FlowCoefficient'. */
24 class MODEL_API SpaceInfiltrationFlowCoefficient : public SpaceLoad
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 explicit SpaceInfiltrationFlowCoefficient(const Model& model);
31
32 183 virtual ~SpaceInfiltrationFlowCoefficient() override = default;
33 // Default the copy and move operators because the virtual dtor is explicit
34 1 SpaceInfiltrationFlowCoefficient(const SpaceInfiltrationFlowCoefficient& other) = default;
35 78 SpaceInfiltrationFlowCoefficient(SpaceInfiltrationFlowCoefficient&& other) = default;
36 ✗ SpaceInfiltrationFlowCoefficient& operator=(const SpaceInfiltrationFlowCoefficient&) = default;
37 3 SpaceInfiltrationFlowCoefficient& operator=(SpaceInfiltrationFlowCoefficient&&) = default;
38
39 //@}
40
41 static IddObjectType iddObjectType();
42
43 /** @name Getters */
44 //@{
45
46 /** Returns the (fractional) infiltration schedule. If this object does not
47 * specify a schedule this function will search the hierarchy. */
48 boost::optional<Schedule> schedule() const;
49
50 /** Returns true if this object does not specify a schedule directly. */
51 bool isScheduleDefaulted() const;
52
53 double flowCoefficient() const;
54
55 double stackCoefficient() const;
56
57 double pressureExponent() const;
58
59 double windCoefficient() const;
60
61 double shelterFactor() const;
62
63 //@}
64 /** @name Setters */
65 //@{
66
67 /** Sets the (fractional) Schedule. */
68 bool setSchedule(Schedule& schedule);
69
70 /** Resets the (fractional) Schedule. */
71 void resetSchedule();
72
73 bool setFlowCoefficient(double flowCoefficient);
74
75 bool setStackCoefficient(double stackCoefficient);
76
77 bool setPressureExponent(double pressureExponent);
78
79 bool setWindCoefficient(double windCoefficient);
80
81 bool setShelterFactor(double shelterFactor);
82
83 //@}
84 /** @name Other */
85 //@{
86
87 //@}
88 protected:
89 /// @cond
90 using ImplType = detail::SpaceInfiltrationFlowCoefficient_Impl;
91
92 explicit SpaceInfiltrationFlowCoefficient(std::shared_ptr<detail::SpaceInfiltrationFlowCoefficient_Impl> impl);
93
94 friend class Model;
95 friend class IdfObject;
96
97 /// @endcond
98 private:
99 REGISTER_LOGGER("openstudio.model.SpaceInfiltrationFlowCoefficient");
100 };
101
102 /** \relates SpaceInfiltrationFlowCoefficient*/
103 using OptionalSpaceInfiltrationFlowCoefficient = boost::optional<SpaceInfiltrationFlowCoefficient>;
104
105 /** \relates SpaceInfiltrationFlowCoefficient*/
106 using SpaceInfiltrationFlowCoefficientVector = std::vector<SpaceInfiltrationFlowCoefficient>;
107
108 } // namespace model
109 } // namespace openstudio
110
111 #endif // MODEL_SPACEINFILTRATIONFLOWCOEFFICIENT_HPP
112