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/SpaceInfiltrationFlowCoefficient_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_SPACEINFILTRATIONFLOWCOEFFICIENT_IMPL_HPP
7 #define MODEL_SPACEINFILTRATIONFLOWCOEFFICIENT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "SpaceLoad_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class SpaceInfiltrationFlowCoefficient;
17
18 namespace detail {
19
20 /** SpaceInfiltrationFlowCoefficient_Impl is a SpaceLoad_Impl that is the implementation class for SpaceInfiltrationFlowCoefficient.*/
21 class MODEL_API SpaceInfiltrationFlowCoefficient_Impl : public SpaceLoad_Impl
22 {
23
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 SpaceInfiltrationFlowCoefficient_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 SpaceInfiltrationFlowCoefficient_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 SpaceInfiltrationFlowCoefficient_Impl(const SpaceInfiltrationFlowCoefficient_Impl& other, Model_Impl* model, bool keepHandle);
33
34 43 virtual ~SpaceInfiltrationFlowCoefficient_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual bool hardSize() override;
47
48 virtual bool hardApplySchedules() override;
49
50 virtual bool isAbsolute() const override;
51
52 //@}
53 /** @name Getters */
54 //@{
55
56 /** Returns the (fractional) infiltration schedule. If this object does not
57 * specify a schedule this function will search the hierarchy. */
58 boost::optional<Schedule> schedule() const;
59
60 /** Returns true if this object does not specify a schedule directly. */
61 bool isScheduleDefaulted() const;
62
63 double flowCoefficient() const;
64
65 double stackCoefficient() const;
66
67 double pressureExponent() const;
68
69 double windCoefficient() const;
70
71 double shelterFactor() const;
72
73 //@}
74 /** @name Setters */
75 //@{
76
77 /** Sets the (fractional) Schedule. */
78 bool setSchedule(Schedule& schedule);
79
80 /** Resets the (fractional) Schedule. */
81 void resetSchedule();
82
83 bool setFlowCoefficient(double flowCoefficient);
84
85 bool setStackCoefficient(double stackCoefficient);
86
87 bool setPressureExponent(double pressureExponent);
88
89 bool setWindCoefficient(double windCoefficient);
90
91 bool setShelterFactor(double shelterFactor);
92
93 //@}
94 /** @name Other */
95 //@{
96
97 //@}
98 protected:
99 // index of the space name
100 virtual int spaceIndex() const override;
101
102 private:
103 REGISTER_LOGGER("openstudio.model.SpaceInfiltrationFlowCoefficient");
104
105 boost::optional<ModelObject> scheduleAsModelObject() const;
106
107 bool setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
108 };
109
110 } // namespace detail
111
112 } // namespace model
113 } // namespace openstudio
114
115 #endif // MODEL_SPACEINFILTRATIONFLOWCOEFFICIENT_IMPL_HPP
116