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/ZoneHVACUnitVentilator_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_ZONEHVACUNITVENTILATOR_IMPL_HPP
7 #define MODEL_ZONEHVACUNITVENTILATOR_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ZoneHVACComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class HVACComponent;
17
18 namespace detail {
19
20 /** ZoneHVACUnitVentilator_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACUnitVentilator.*/
21 class MODEL_API ZoneHVACUnitVentilator_Impl : public ZoneHVACComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 ZoneHVACUnitVentilator_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 ZoneHVACUnitVentilator_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ZoneHVACUnitVentilator_Impl(const ZoneHVACUnitVentilator_Impl& other, Model_Impl* model, bool keepHandle);
32
33 20 virtual ~ZoneHVACUnitVentilator_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 ModelObject clone(Model model) const override;
46
47 virtual std::vector<IdfObject> remove() override;
48
49 virtual std::vector<ModelObject> children() const override;
50
51 virtual unsigned inletPort() const override;
52
53 virtual unsigned outletPort() const override;
54
55 virtual ComponentType componentType() const override;
56 virtual std::vector<FuelType> coolingFuelTypes() const override;
57 virtual std::vector<FuelType> heatingFuelTypes() const override;
58 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
59
60 //@}
61 /** @name Getters */
62 //@{
63
64 Schedule availabilitySchedule() const;
65
66 boost::optional<double> maximumSupplyAirFlowRate() const;
67
68 bool isMaximumSupplyAirFlowRateAutosized() const;
69
70 std::string outdoorAirControlType() const;
71
72 boost::optional<double> minimumOutdoorAirFlowRate() const;
73
74 bool isMinimumOutdoorAirFlowRateAutosized() const;
75
76 Schedule minimumOutdoorAirSchedule() const;
77
78 boost::optional<double> maximumOutdoorAirFlowRate() const;
79
80 bool isMaximumOutdoorAirFlowRateAutosized() const;
81
82 Schedule maximumOutdoorAirFractionorTemperatureSchedule() const;
83
84 HVACComponent supplyAirFan() const;
85
86 boost::optional<Schedule> supplyAirFanOperatingModeSchedule() const;
87
88 boost::optional<HVACComponent> heatingCoil() const;
89
90 double heatingConvergenceTolerance() const;
91
92 boost::optional<HVACComponent> coolingCoil() const;
93
94 double coolingConvergenceTolerance() const;
95
96 // boost::optional<ModelObject> availabilityManagerList() const;
97
98 // boost::optional<ModelObject> designSpecificationZoneHVACSizingObject() const;
99
100 boost::optional<double> autosizedMaximumSupplyAirFlowRate() const;
101
102 boost::optional<double> autosizedMinimumOutdoorAirFlowRate() const;
103
104 boost::optional<double> autosizedMaximumOutdoorAirFlowRate() const;
105
106 virtual void autosize() override;
107
108 virtual void applySizingValues() override;
109
110 //@}
111 /** @name Setters */
112 //@{
113
114 bool setAvailabilitySchedule(Schedule& schedule);
115
116 bool setMaximumSupplyAirFlowRate(boost::optional<double> maximumSupplyAirFlowRate);
117
118 void autosizeMaximumSupplyAirFlowRate();
119
120 bool setOutdoorAirControlType(const std::string& outdoorAirControlType);
121
122 bool setMinimumOutdoorAirFlowRate(boost::optional<double> minimumOutdoorAirFlowRate);
123
124 void autosizeMinimumOutdoorAirFlowRate();
125
126 bool setMinimumOutdoorAirSchedule(Schedule& schedule);
127
128 bool setMaximumOutdoorAirFlowRate(boost::optional<double> maximumOutdoorAirFlowRate);
129
130 void autosizeMaximumOutdoorAirFlowRate();
131
132 bool setMaximumOutdoorAirFractionorTemperatureSchedule(Schedule& schedule);
133
134 bool setSupplyAirFan(const HVACComponent& supplyAirFan);
135
136 bool setSupplyAirFanOperatingModeSchedule(Schedule& schedule);
137
138 void resetSupplyAirFanOperatingModeSchedule();
139
140 bool setHeatingCoil(const boost::optional<HVACComponent>& heatingCoil);
141
142 void resetHeatingCoil();
143
144 bool setHeatingConvergenceTolerance(double heatingConvergenceTolerance);
145
146 bool setCoolingCoil(const boost::optional<HVACComponent>& coolingCoil);
147
148 void resetCoolingCoil();
149
150 bool setCoolingConvergenceTolerance(double coolingConvergenceTolerance);
151
152 // bool setAvailabilityManagerList(const boost::optional<ModelObject>& systemAvailabilityManagerLists);
153
154 // void resetAvailabilityManagerList();
155
156 // bool setDesignSpecificationZoneHVACSizingObject(const boost::optional<ModelObject>& designSpecificationZoneHVACSizingName);
157
158 // void resetDesignSpecificationZoneHVACSizingObject();
159
160 //@}
161 /** @name Other */
162 //@{
163
164 //@}
165 protected:
166 private:
167 − REGISTER_LOGGER("openstudio.model.ZoneHVACUnitVentilator");
168
169 // Optional getters for use by methods like children() so can remove() if the constructor fails.
170 // There are other ways for the public versions of these getters to fail--perhaps all required
171 // objects should be returned as boost::optionals
172 boost::optional<Schedule> optionalAvailabilitySchedule() const;
173 boost::optional<Schedule> optionalMinimumOutdoorAirSchedule() const;
174 boost::optional<Schedule> optionalMaximumOutdoorAirFractionorTemperatureSchedule() const;
175 boost::optional<HVACComponent> optionalSupplyAirFan() const;
176 };
177
178 } // namespace detail
179
180 } // namespace model
181 } // namespace openstudio
182
183 #endif // MODEL_ZONEHVACUNITVENTILATOR_IMPL_HPP
184