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/SpaceInfiltrationEffectiveLeakageArea_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_SPACEINFILTRATIONEFFECTIVELEAKAGEAREA_IMPL_HPP
7 #define MODEL_SPACEINFILTRATIONEFFECTIVELEAKAGEAREA_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 SpaceInfiltrationEffectiveLeakageArea;
17
18 namespace detail {
19
20 /** SpaceInfiltrationEffectiveLeakageArea_Impl is a SpaceLoad_Impl that is the implementation class for SpaceInfiltrationEffectiveLeakageArea.*/
21 class MODEL_API SpaceInfiltrationEffectiveLeakageArea_Impl : public SpaceLoad_Impl
22 {
23
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 SpaceInfiltrationEffectiveLeakageArea_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 SpaceInfiltrationEffectiveLeakageArea_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 SpaceInfiltrationEffectiveLeakageArea_Impl(const SpaceInfiltrationEffectiveLeakageArea_Impl& other, Model_Impl* model, bool keepHandle);
33
34 38 virtual ~SpaceInfiltrationEffectiveLeakageArea_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 effectiveAirLeakageArea() const;
64
65 double stackCoefficient() const;
66
67 double windCoefficient() const;
68
69 //@}
70 /** @name Setters */
71 //@{
72
73 /** Sets the (fractional) Schedule. */
74 bool setSchedule(Schedule& schedule);
75
76 /** Resets the (fractional) Schedule. */
77 void resetSchedule();
78
79 bool setEffectiveAirLeakageArea(double effectiveAirLeakageArea);
80
81 bool setStackCoefficient(double stackCoefficient);
82
83 bool setWindCoefficient(double windCoefficient);
84
85 //@}
86 protected:
87 // index of the space name
88 virtual int spaceIndex() const override;
89
90 private:
91 REGISTER_LOGGER("openstudio.model.SpaceInfiltrationEffectiveLeakageArea");
92
93 boost::optional<ModelObject> scheduleAsModelObject() const;
94
95 bool setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
96 };
97
98 } // namespace detail
99
100 } // namespace model
101 } // namespace openstudio
102
103 #endif // MODEL_SPACEINFILTRATIONEFFECTIVELEAKAGEAREA_IMPL_HPP
104