GCC Code Coverage Report


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

src/model/AirTerminalSingleDuctVAVHeatAndCoolReheat.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_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class HVACComponent;
18
19 namespace detail {
20
21 class AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl;
22
23 } // namespace detail
24
25 /** AirTerminalSingleDuctVAVHeatAndCoolReheat is a StraightComponent that wraps the OpenStudio IDD object 'OS:AirTerminal:SingleDuct:VAV:HeatAndCool:Reheat'. */
26 class MODEL_API AirTerminalSingleDuctVAVHeatAndCoolReheat : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit AirTerminalSingleDuctVAVHeatAndCoolReheat(const Model& model, const HVACComponent& reheatCoil);
33
34 37 virtual ~AirTerminalSingleDuctVAVHeatAndCoolReheat() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ AirTerminalSingleDuctVAVHeatAndCoolReheat(const AirTerminalSingleDuctVAVHeatAndCoolReheat& other) = default;
37 9 AirTerminalSingleDuctVAVHeatAndCoolReheat(AirTerminalSingleDuctVAVHeatAndCoolReheat&& other) = default;
38 ✗ AirTerminalSingleDuctVAVHeatAndCoolReheat& operator=(const AirTerminalSingleDuctVAVHeatAndCoolReheat&) = default;
39 1 AirTerminalSingleDuctVAVHeatAndCoolReheat& operator=(AirTerminalSingleDuctVAVHeatAndCoolReheat&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 boost::optional<Schedule> availabilitySchedule() const;
49
50 boost::optional<double> maximumAirFlowRate() const;
51
52 bool isMaximumAirFlowRateAutosized() const;
53
54 double zoneMinimumAirFlowFraction() const;
55
56 HVACComponent reheatCoil() const;
57
58 boost::optional<double> maximumHotWaterorSteamFlowRate() const;
59
60 bool isMaximumHotWaterorSteamFlowRateAutosized() const;
61
62 double minimumHotWaterorSteamFlowRate() const;
63
64 double convergenceTolerance() const;
65
66 double maximumReheatAirTemperature() const;
67
68 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
69
70 //@}
71 /** @name Setters */
72 //@{
73
74 bool setAvailabilitySchedule(Schedule& schedule);
75
76 void resetAvailabilitySchedule();
77
78 bool setMaximumAirFlowRate(double maximumAirFlowRate);
79
80 void autosizeMaximumAirFlowRate();
81
82 bool setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction);
83
84 bool setReheatCoil(const HVACComponent& heatingCoilName);
85
86 bool setMaximumHotWaterorSteamFlowRate(double maximumHotWaterorSteamFlowRate);
87
88 void autosizeMaximumHotWaterorSteamFlowRate();
89
90 bool setMinimumHotWaterorSteamFlowRate(double minimumHotWaterorSteamFlowRate);
91
92 bool setConvergenceTolerance(double convergenceTolerance);
93
94 bool setMaximumReheatAirTemperature(double maximumReheatAirTemperature);
95
96 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
97
98 void resetMinimumAirFlowTurndownSchedule();
99
100 //@}
101 /** @name Other */
102 //@{
103
104 boost::optional<double> autosizedMaximumAirFlowRate() const;
105
106 boost::optional<double> autosizedMaximumHotWaterorSteamFlowRate() const;
107
108 //@}
109 protected:
110 /// @cond
111 using ImplType = detail::AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl;
112
113 explicit AirTerminalSingleDuctVAVHeatAndCoolReheat(std::shared_ptr<detail::AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl> impl);
114
115 friend class detail::AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl;
116 friend class Model;
117 friend class IdfObject;
118 friend class openstudio::detail::IdfObject_Impl;
119 /// @endcond
120 private:
121 − REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVHeatAndCoolReheat");
122 };
123
124 /** \relates AirTerminalSingleDuctVAVHeatAndCoolReheat*/
125 using OptionalAirTerminalSingleDuctVAVHeatAndCoolReheat = boost::optional<AirTerminalSingleDuctVAVHeatAndCoolReheat>;
126
127 /** \relates AirTerminalSingleDuctVAVHeatAndCoolReheat*/
128 using AirTerminalSingleDuctVAVHeatAndCoolReheatVector = std::vector<AirTerminalSingleDuctVAVHeatAndCoolReheat>;
129
130 } // namespace model
131 } // namespace openstudio
132
133 #endif // MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_HPP
134