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/AirTerminalSingleDuctVAVHeatAndCoolReheat_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_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_IMPL_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class HVACComponent;
17
18 namespace detail {
19
20 /** AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl is a StraightComponent_Impl that is the implementation class for AirTerminalSingleDuctVAVHeatAndCoolReheat.*/
21 class MODEL_API AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl(const AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl& other, Model_Impl* model, bool keepHandle);
32
33 11 virtual ~AirTerminalSingleDuctVAVHeatAndCoolReheat_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual ComponentType componentType() const override;
46 virtual std::vector<FuelType> coolingFuelTypes() const override;
47 virtual std::vector<FuelType> heatingFuelTypes() const override;
48 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 boost::optional<Schedule> availabilitySchedule() const;
55
56 boost::optional<double> maximumAirFlowRate() const;
57
58 bool isMaximumAirFlowRateAutosized() const;
59
60 double zoneMinimumAirFlowFraction() const;
61
62 HVACComponent reheatCoil() const;
63
64 boost::optional<double> maximumHotWaterorSteamFlowRate() const;
65
66 bool isMaximumHotWaterorSteamFlowRateAutosized() const;
67
68 double minimumHotWaterorSteamFlowRate() const;
69
70 double convergenceTolerance() const;
71
72 double maximumReheatAirTemperature() const;
73
74 boost::optional<double> autosizedMaximumAirFlowRate() const;
75
76 boost::optional<double> autosizedMaximumHotWaterorSteamFlowRate() const;
77
78 virtual void autosize() override;
79
80 virtual void applySizingValues() override;
81
82 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
83
84 //@}
85 /** @name Setters */
86 //@{
87
88 bool setAvailabilitySchedule(Schedule& schedule);
89
90 void resetAvailabilitySchedule();
91
92 bool setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate);
93
94 void autosizeMaximumAirFlowRate();
95
96 bool setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction);
97
98 bool setReheatCoil(const HVACComponent& heatingCoil);
99
100 bool setMaximumHotWaterorSteamFlowRate(boost::optional<double> maximumHotWaterorSteamFlowRate);
101
102 void autosizeMaximumHotWaterorSteamFlowRate();
103
104 bool setMinimumHotWaterorSteamFlowRate(double minimumHotWaterorSteamFlowRate);
105
106 bool setAirOutlet(const std::string& airOutlet);
107
108 bool setConvergenceTolerance(double convergenceTolerance);
109
110 bool setMaximumReheatAirTemperature(double maximumReheatAirTemperature);
111
112 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
113
114 void resetMinimumAirFlowTurndownSchedule();
115
116 //@}
117 /** @name Other */
118 //@{
119
120 virtual unsigned inletPort() const override;
121
122 virtual unsigned outletPort() const override;
123
124 bool addToNode(Node& node) override;
125
126 std::vector<IdfObject> remove() override;
127
128 bool isRemovable() const override;
129
130 std::vector<ModelObject> children() const override;
131
132 ModelObject clone(Model model) const override;
133
134 //@}
135 protected:
136 private:
137 − REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVHeatAndCoolReheat");
138
139 boost::optional<HVACComponent> optionalReheatCoil() const;
140
141 boost::optional<ModelObject> minimumAirFlowTurndownScheduleAsModelObject() const;
142
143 bool setMinimumAirFlowTurndownScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
144 };
145
146 } // namespace detail
147
148 } // namespace model
149 } // namespace openstudio
150
151 #endif // MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLREHEAT_IMPL_HPP
152