GCC Code Coverage Report


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

src/model/AvailabilityManagerHybridVentilation_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_AVAILABILITYMANAGERHYBRIDVENTILATION_IMPL_HPP
7 #define MODEL_AVAILABILITYMANAGERHYBRIDVENTILATION_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ThermalZone;
16 class Schedule;
17 class Curve;
18 class ModelObject;
19
20 namespace detail {
21
22 /** AvailabilityManagerHybridVentilation_Impl is a ModelObject_Impl that is the implementation class for AvailabilityManagerHybridVentilation.*/
23 class MODEL_API AvailabilityManagerHybridVentilation_Impl : public AvailabilityManager_Impl
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 AvailabilityManagerHybridVentilation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 AvailabilityManagerHybridVentilation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 AvailabilityManagerHybridVentilation_Impl(const AvailabilityManagerHybridVentilation_Impl& other, Model_Impl* model, bool keepHandle);
34
35 10 virtual ~AvailabilityManagerHybridVentilation_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
46
47 virtual ModelObject clone(Model model) const override;
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 boost::optional<ThermalZone> controlledZone() const;
54
55 Schedule ventilationControlModeSchedule() const;
56
57 bool useWeatherFileRainIndicators() const;
58
59 double maximumWindSpeed() const;
60
61 double minimumOutdoorTemperature() const;
62
63 double maximumOutdoorTemperature() const;
64
65 double minimumOutdoorEnthalpy() const;
66
67 double maximumOutdoorEnthalpy() const;
68
69 double minimumOutdoorDewpoint() const;
70
71 double maximumOutdoorDewpoint() const;
72
73 Schedule minimumOutdoorVentilationAirSchedule() const;
74
75 boost::optional<Curve> openingFactorFunctionofWindSpeedCurve() const;
76
77 double minimumHVACOperationTime() const;
78
79 double minimumVentilationTime() const;
80
81 boost::optional<Schedule> airflowNetworkControlTypeSchedule() const;
82
83 boost::optional<Schedule> simpleAirflowControlTypeSchedule() const;
84
85 boost::optional<ModelObject> zoneVentilationObject() const;
86
87 //@}
88 /** @name Setters */
89 //@{
90
91 bool setControlledZone(const boost::optional<ThermalZone>& thermalZone);
92
93 void resetControlledZone();
94
95 bool setVentilationControlModeSchedule(Schedule& schedule);
96
97 bool setUseWeatherFileRainIndicators(bool useWeatherFileRainIndicators);
98
99 bool setMaximumWindSpeed(double maximumWindSpeed);
100
101 bool setMinimumOutdoorTemperature(double minimumOutdoorTemperature);
102
103 bool setMaximumOutdoorTemperature(double maximumOutdoorTemperature);
104
105 bool setMinimumOutdoorEnthalpy(double minimumOutdoorEnthalpy);
106
107 bool setMaximumOutdoorEnthalpy(double maximumOutdoorEnthalpy);
108
109 bool setMinimumOutdoorDewpoint(double minimumOutdoorDewpoint);
110
111 bool setMaximumOutdoorDewpoint(double maximumOutdoorDewpoint);
112
113 bool setMinimumOutdoorVentilationAirSchedule(Schedule& schedule);
114
115 bool setOpeningFactorFunctionofWindSpeedCurve(const boost::optional<Curve>& curve);
116
117 void resetOpeningFactorFunctionofWindSpeedCurve();
118
119 bool setMinimumHVACOperationTime(double minimumHVACOperationTime);
120
121 bool setMinimumVentilationTime(double minimumVentilationTime);
122
123 bool setAirflowNetworkControlTypeSchedule(Schedule& schedule);
124 void resetAirflowNetworkControlTypeSchedule();
125
126 bool setSimpleAirflowControlTypeSchedule(Schedule& schedule);
127 void resetSimpleAirflowControlTypeSchedule();
128
129 bool setZoneVentilationObject(const ModelObject& zv);
130 void resetZoneVentilationObject();
131
132 //@}
133 /** @name Other */
134 //@{
135
136 //@}
137 protected:
138 private:
139 − REGISTER_LOGGER("openstudio.model.AvailabilityManagerHybridVentilation");
140
141 // TODO: Check the return types of these methods.
142 // Optional getters for use by methods like children() so can remove() if the constructor fails.
143 // There are other ways for the public versions of these getters to fail--perhaps all required
144 // objects should be returned as boost::optionals
145 boost::optional<Schedule> optionalVentilationControlModeSchedule() const;
146 };
147
148 } // namespace detail
149
150 } // namespace model
151 } // namespace openstudio
152
153 #endif // MODEL_AVAILABILITYMANAGERHYBRIDVENTILATION_IMPL_HPP
154