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/AirTerminalSingleDuctVAVHeatAndCoolNoReheat.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_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17
18 namespace detail {
19
20 class AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl;
21
22 } // namespace detail
23
24 /** AirTerminalSingleDuctVAVHeatAndCoolNoReheat is a StraightComponent that wraps the OpenStudio IDD object 'OS:AirTerminal:SingleDuct:VAV:HeatAndCool:NoReheat'. */
25 class MODEL_API AirTerminalSingleDuctVAVHeatAndCoolNoReheat : public StraightComponent
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit AirTerminalSingleDuctVAVHeatAndCoolNoReheat(const Model& model);
32
33 9 virtual ~AirTerminalSingleDuctVAVHeatAndCoolNoReheat() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ AirTerminalSingleDuctVAVHeatAndCoolNoReheat(const AirTerminalSingleDuctVAVHeatAndCoolNoReheat& other) = default;
36 ✗ AirTerminalSingleDuctVAVHeatAndCoolNoReheat(AirTerminalSingleDuctVAVHeatAndCoolNoReheat&& other) = default;
37 ✗ AirTerminalSingleDuctVAVHeatAndCoolNoReheat& operator=(const AirTerminalSingleDuctVAVHeatAndCoolNoReheat&) = default;
38 ✗ AirTerminalSingleDuctVAVHeatAndCoolNoReheat& operator=(AirTerminalSingleDuctVAVHeatAndCoolNoReheat&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 /** @name Getters */
45 //@{
46
47 boost::optional<Schedule> availabilitySchedule() const;
48
49 boost::optional<double> maximumAirFlowRate() const;
50
51 bool isMaximumAirFlowRateAutosized() const;
52
53 double zoneMinimumAirFlowFraction() const;
54
55 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 bool setAvailabilitySchedule(Schedule& schedule);
62
63 void resetAvailabilitySchedule();
64
65 bool setMaximumAirFlowRate(double maximumAirFlowRate);
66
67 void autosizeMaximumAirFlowRate();
68
69 bool setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction);
70
71 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
72
73 void resetMinimumAirFlowTurndownSchedule();
74
75 //@}
76 /** @name Other */
77 //@{
78
79 boost::optional<double> autosizedMaximumAirFlowRate() const;
80
81 //@}
82 protected:
83 /// @cond
84 using ImplType = detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl;
85
86 explicit AirTerminalSingleDuctVAVHeatAndCoolNoReheat(std::shared_ptr<detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl> impl);
87
88 friend class detail::AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl;
89 friend class Model;
90 friend class IdfObject;
91 friend class openstudio::detail::IdfObject_Impl;
92 /// @endcond
93 private:
94 REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVHeatAndCoolNoReheat");
95 };
96
97 /** \relates AirTerminalSingleDuctVAVHeatAndCoolNoReheat*/
98 using OptionalAirTerminalSingleDuctVAVHeatAndCoolNoReheat = boost::optional<AirTerminalSingleDuctVAVHeatAndCoolNoReheat>;
99
100 /** \relates AirTerminalSingleDuctVAVHeatAndCoolNoReheat*/
101 using AirTerminalSingleDuctVAVHeatAndCoolNoReheatVector = std::vector<AirTerminalSingleDuctVAVHeatAndCoolNoReheat>;
102
103 } // namespace model
104 } // namespace openstudio
105
106 #endif // MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_HPP
107