GCC Code Coverage Report


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

src/model/AvailabilityManagerNightVentilation.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_AVAILABILITYMANAGERNIGHTVENTILATION_HPP
7 #define MODEL_AVAILABILITYMANAGERNIGHTVENTILATION_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class ThermalZone;
18
19 namespace detail {
20
21 class AvailabilityManagerNightVentilation_Impl;
22
23 } // namespace detail
24
25 /** AvailabilityManagerNightVentilation is a AvailabilityManager that wraps the OpenStudio IDD object 'OS:AvailabilityManager:NightVentilation'. */
26 class MODEL_API AvailabilityManagerNightVentilation : public AvailabilityManager
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit AvailabilityManagerNightVentilation(const Model& model);
33
34 2 virtual ~AvailabilityManagerNightVentilation() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ AvailabilityManagerNightVentilation(const AvailabilityManagerNightVentilation& other) = default;
37 ✗ AvailabilityManagerNightVentilation(AvailabilityManagerNightVentilation&& other) = default;
38 ✗ AvailabilityManagerNightVentilation& operator=(const AvailabilityManagerNightVentilation&) = default;
39 ✗ AvailabilityManagerNightVentilation& operator=(AvailabilityManagerNightVentilation&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 Schedule applicabilitySchedule() const;
49
50 boost::optional<Schedule> ventilationTemperatureSchedule() const;
51
52 double ventilationTemperatureDifference() const;
53
54 double ventilationTemperatureLowLimit() const;
55
56 double nightVentingFlowFraction() const;
57
58 boost::optional<ThermalZone> controlZone() const;
59
60 //@}
61 /** @name Setters */
62 //@{
63
64 bool setApplicabilitySchedule(Schedule& schedule);
65
66 bool setVentilationTemperatureSchedule(Schedule& schedule);
67
68 void resetVentilationTemperatureSchedule();
69
70 bool setVentilationTemperatureDifference(double ventilationTemperatureDifference);
71
72 bool setVentilationTemperatureLowLimit(double ventilationTemperatureLowLimit);
73
74 bool setNightVentingFlowFraction(double nightVentingFlowFraction);
75
76 bool setControlZone(const ThermalZone& thermalZone);
77
78 void resetControlZone();
79
80 //@}
81 /** @name Other */
82 //@{
83
84 //@}
85 protected:
86 /// @cond
87 using ImplType = detail::AvailabilityManagerNightVentilation_Impl;
88
89 explicit AvailabilityManagerNightVentilation(std::shared_ptr<detail::AvailabilityManagerNightVentilation_Impl> impl);
90
91 friend class detail::AvailabilityManagerNightVentilation_Impl;
92 friend class Model;
93 friend class IdfObject;
94 friend class openstudio::detail::IdfObject_Impl;
95 /// @endcond
96 private:
97 REGISTER_LOGGER("openstudio.model.AvailabilityManagerNightVentilation");
98 };
99
100 /** \relates AvailabilityManagerNightVentilation*/
101 using OptionalAvailabilityManagerNightVentilation = boost::optional<AvailabilityManagerNightVentilation>;
102
103 /** \relates AvailabilityManagerNightVentilation*/
104 using AvailabilityManagerNightVentilationVector = std::vector<AvailabilityManagerNightVentilation>;
105
106 } // namespace model
107 } // namespace openstudio
108
109 #endif // MODEL_AVAILABILITYMANAGERNIGHTVENTILATION_HPP
110