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/AirTerminalSingleDuctSeriesPIUReheat_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_AIRTERMINALSINGLEDUCTSERIESPIUREHEAT_IMPL_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTSERIESPIUREHEAT_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 /** AirTerminalSingleDuctSeriesPIUReheat_Impl is a StraightComponent_Impl that is the implementation class for AirTerminalSingleDuctSeriesPIUReheat.*/
21 class MODEL_API AirTerminalSingleDuctSeriesPIUReheat_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirTerminalSingleDuctSeriesPIUReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirTerminalSingleDuctSeriesPIUReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirTerminalSingleDuctSeriesPIUReheat_Impl(const AirTerminalSingleDuctSeriesPIUReheat_Impl& other, Model_Impl* model, bool keepHandle);
32
33 27 virtual ~AirTerminalSingleDuctSeriesPIUReheat_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 boost::optional<double> maximumPrimaryAirFlowRate() const;
61
62 bool isMaximumPrimaryAirFlowRateAutosized() const;
63
64 boost::optional<double> minimumPrimaryAirFlowFraction() const;
65
66 bool isMinimumPrimaryAirFlowFractionAutosized() const;
67
68 HVACComponent fan() const;
69
70 HVACComponent reheatCoil() const;
71
72 boost::optional<double> maximumHotWaterorSteamFlowRate() const;
73
74 bool isMaximumHotWaterorSteamFlowRateAutosized() const;
75
76 double minimumHotWaterorSteamFlowRate() const;
77
78 double convergenceTolerance() const;
79
80 std::string fanControlType() const;
81
82 double minimumFanTurnDownRatio() const;
83
84 std::string heatingControlType() const;
85
86 double designHeatingDischargeAirTemperature() const;
87
88 double highLimitHeatingDischargeAirTemperature() const;
89
90 boost::optional<double> autosizedMaximumAirFlowRate() const;
91
92 boost::optional<double> autosizedMaximumPrimaryAirFlowRate() const;
93
94 boost::optional<double> autosizedMinimumPrimaryAirFlowFraction() const;
95
96 boost::optional<double> autosizedMaximumHotWaterorSteamFlowRate() const;
97
98 virtual void autosize() override;
99
100 virtual void applySizingValues() override;
101
102 //@}
103 /** @name Setters */
104 //@{
105
106 bool setAvailabilitySchedule(Schedule& schedule);
107
108 void resetAvailabilitySchedule();
109
110 bool setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate);
111
112 void autosizeMaximumAirFlowRate();
113
114 bool setMaximumPrimaryAirFlowRate(boost::optional<double> maximumPrimaryAirFlowRate);
115
116 void autosizeMaximumPrimaryAirFlowRate();
117
118 bool setMinimumPrimaryAirFlowFraction(boost::optional<double> minimumPrimaryAirFlowFraction);
119
120 void autosizeMinimumPrimaryAirFlowFraction();
121
122 bool setFan(const HVACComponent& fan);
123
124 bool setReheatCoil(const HVACComponent& coil);
125
126 bool setMaximumHotWaterorSteamFlowRate(boost::optional<double> maximumHotWaterorSteamFlowRate);
127
128 void resetMaximumHotWaterorSteamFlowRate();
129
130 void autosizeMaximumHotWaterorSteamFlowRate();
131
132 bool setMinimumHotWaterorSteamFlowRate(double minimumHotWaterorSteamFlowRate);
133
134 bool setConvergenceTolerance(double convergenceTolerance);
135
136 bool setFanControlType(const std::string& fanControlType);
137
138 bool setMinimumFanTurnDownRatio(double minimumFanTurnDownRatio);
139
140 bool setHeatingControlType(const std::string& heatingControlType);
141
142 bool setDesignHeatingDischargeAirTemperature(double designHeatingDischargeAirTemperature);
143
144 bool setHighLimitHeatingDischargeAirTemperature(double highLimitHeatingDischargeAirTemperature);
145
146 //@}
147 /** @name Other */
148 //@{
149
150 virtual unsigned inletPort() const override;
151 virtual unsigned outletPort() const override;
152 unsigned secondaryAirInletPort() const;
153 boost::optional<Node> secondaryAirInletNode() const;
154 bool addToNode(Node& node) override;
155 std::vector<ModelObject> children() const override;
156 ModelObject clone(Model model) const override;
157 bool setFanAvailabilitySchedule(Schedule& schedule);
158
159 // This is a non publlic method to draw recirculation air from a plenum
160 // Use carefully. Removing (or moving) plenum will leave model in invalid state
161 bool setInducedAirPlenumZone(ThermalZone& thermalZone);
162
163 std::vector<IdfObject> remove() override;
164
165 //@}
166 protected:
167 private:
168 − REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctSeriesPIUReheat");
169
170 // Optional getters for use by methods like children() so can remove() if the constructor fails.
171 // There are other ways for the public versions of these getters to fail--perhaps all required
172 // objects should be returned as boost::optionals
173 boost::optional<HVACComponent> optionalFan() const;
174 boost::optional<HVACComponent> optionalReheatCoil() const;
175 };
176
177 } // namespace detail
178
179 } // namespace model
180 } // namespace openstudio
181
182 #endif // MODEL_AIRTERMINALSINGLEDUCTSERIESPIUREHEAT_IMPL_HPP
183