GCC Code Coverage Report


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

src/model/AvailabilityManagerHybridVentilation.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_AVAILABILITYMANAGERHYBRIDVENTILATION_HPP
7 #define MODEL_AVAILABILITYMANAGERHYBRIDVENTILATION_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class ThermalZone;
17 class Schedule;
18 class Curve;
19 class ModelObject;
20
21 namespace detail {
22
23 class AvailabilityManagerHybridVentilation_Impl;
24
25 } // namespace detail
26
27 /** AvailabilityManagerHybridVentilation is a ModelObject that wraps the OpenStudio IDD object 'OS:AvailabilityManager:HybridVentilation'. */
28 class MODEL_API AvailabilityManagerHybridVentilation : public AvailabilityManager
29 {
30 public:
31 /** @name Constructors and Destructors */
32 //@{
33
34 // Constructor for AvailabilityManagerHybridVentilation.
35 // The required "ventilationControlModeSchedule" will be initialized with
36 // a new schedule having a constant value of one, meaning the availability manager
37 // will operate with temperature control.
38 // The required "minimumOutdoorVentilationAirSchedule" will be initialized with a
39 // schedule of constant value 0. This schedule is only applicable if control mode is 0,
40 // but EnergyPlus requires it to operate.
41 explicit AvailabilityManagerHybridVentilation(const Model& model);
42
43 // Constructor for AvailabilityManagerHybridVentilation.
44 // The required "ventilationControlModeSchedule" must be provided.
45 // The required "minimumOutdoorVentilationAirSchedule" must be provided.
46 explicit AvailabilityManagerHybridVentilation(const Model& model, Schedule& ventilationControlModeSchedule,
47 Schedule& minimumOutdoorVentilationAirSchedule);
48
49 11 virtual ~AvailabilityManagerHybridVentilation() override = default;
50 // Default the copy and move operators because the virtual dtor is explicit
51 1 AvailabilityManagerHybridVentilation(const AvailabilityManagerHybridVentilation& other) = default;
52 1 AvailabilityManagerHybridVentilation(AvailabilityManagerHybridVentilation&& other) = default;
53 ✗ AvailabilityManagerHybridVentilation& operator=(const AvailabilityManagerHybridVentilation&) = default;
54 ✗ AvailabilityManagerHybridVentilation& operator=(AvailabilityManagerHybridVentilation&&) = default;
55
56 //@}
57
58 static IddObjectType iddObjectType();
59
60 /** @name Getters */
61 //@{
62
63 boost::optional<ThermalZone> controlledZone() const;
64
65 Schedule ventilationControlModeSchedule() const;
66
67 bool useWeatherFileRainIndicators() const;
68
69 double maximumWindSpeed() const;
70
71 double minimumOutdoorTemperature() const;
72
73 double maximumOutdoorTemperature() const;
74
75 double minimumOutdoorEnthalpy() const;
76
77 double maximumOutdoorEnthalpy() const;
78
79 double minimumOutdoorDewpoint() const;
80
81 double maximumOutdoorDewpoint() const;
82
83 double minimumHVACOperationTime() const;
84
85 double minimumVentilationTime() const;
86
87 Schedule minimumOutdoorVentilationAirSchedule() const;
88
89 boost::optional<Curve> openingFactorFunctionofWindSpeedCurve() const;
90
91 boost::optional<Schedule> airflowNetworkControlTypeSchedule() const;
92
93 boost::optional<Schedule> simpleAirflowControlTypeSchedule() const;
94
95 boost::optional<ModelObject> zoneVentilationObject() const;
96
97 //@}
98 /** @name Setters */
99 //@{
100
101 bool setControlledZone(const ThermalZone& thermalZone);
102
103 void resetControlledZone();
104
105 bool setVentilationControlModeSchedule(Schedule& schedule);
106
107 bool setUseWeatherFileRainIndicators(bool useWeatherFileRainIndicators);
108
109 bool setMaximumWindSpeed(double maximumWindSpeed);
110
111 bool setMinimumOutdoorTemperature(double minimumOutdoorTemperature);
112
113 bool setMaximumOutdoorTemperature(double maximumOutdoorTemperature);
114
115 bool setMinimumOutdoorEnthalpy(double minimumOutdoorEnthalpy);
116
117 bool setMaximumOutdoorEnthalpy(double maximumOutdoorEnthalpy);
118
119 bool setMinimumOutdoorDewpoint(double minimumOutdoorDewpoint);
120
121 bool setMaximumOutdoorDewpoint(double maximumOutdoorDewpoint);
122
123 bool setMinimumOutdoorVentilationAirSchedule(Schedule& schedule);
124
125 bool setOpeningFactorFunctionofWindSpeedCurve(const Curve& curve);
126
127 void resetOpeningFactorFunctionofWindSpeedCurve();
128
129 bool setMinimumHVACOperationTime(double minimumHVACOperationTime);
130
131 bool setMinimumVentilationTime(double minimumVentilationTime);
132
133 bool setAirflowNetworkControlTypeSchedule(Schedule& schedule);
134 void resetAirflowNetworkControlTypeSchedule();
135
136 bool setSimpleAirflowControlTypeSchedule(Schedule& schedule);
137 void resetSimpleAirflowControlTypeSchedule();
138
139 bool setZoneVentilationObject(const ModelObject& zv);
140 void resetZoneVentilationObject();
141
142 //@}
143 /** @name Other */
144 //@{
145
146 //@}
147 protected:
148 /// @cond
149 using ImplType = detail::AvailabilityManagerHybridVentilation_Impl;
150
151 explicit AvailabilityManagerHybridVentilation(std::shared_ptr<detail::AvailabilityManagerHybridVentilation_Impl> impl);
152
153 friend class detail::AvailabilityManagerHybridVentilation_Impl;
154 friend class Model;
155 friend class IdfObject;
156 friend class openstudio::detail::IdfObject_Impl;
157 /// @endcond
158 private:
159 REGISTER_LOGGER("openstudio.model.AvailabilityManagerHybridVentilation");
160 };
161
162 /** \relates AvailabilityManagerHybridVentilation*/
163 using OptionalAvailabilityManagerHybridVentilation = boost::optional<AvailabilityManagerHybridVentilation>;
164
165 /** \relates AvailabilityManagerHybridVentilation*/
166 using AvailabilityManagerHybridVentilationVector = std::vector<AvailabilityManagerHybridVentilation>;
167
168 } // namespace model
169 } // namespace openstudio
170
171 #endif // MODEL_AVAILABILITYMANAGERHYBRIDVENTILATION_HPP
172