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/ZoneHVACEnergyRecoveryVentilator_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_ZONEHVACENERGYRECOVERYVENTILATOR_IMPL_HPP
7 #define MODEL_ZONEHVACENERGYRECOVERYVENTILATOR_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 class ZoneHVACEnergyRecoveryVentilatorController;
18
19 namespace detail {
20
21 /** ZoneHVACEnergyRecoveryVentilator_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACEnergyRecoveryVentilator.*/
22 class MODEL_API ZoneHVACEnergyRecoveryVentilator_Impl : public ZoneHVACComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 ZoneHVACEnergyRecoveryVentilator_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ZoneHVACEnergyRecoveryVentilator_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ZoneHVACEnergyRecoveryVentilator_Impl(const ZoneHVACEnergyRecoveryVentilator_Impl& other, Model_Impl* model, bool keepHandle);
33
34 3 virtual ~ZoneHVACEnergyRecoveryVentilator_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual ModelObject clone(Model model) const override;
47
48 virtual std::vector<ModelObject> children() const override;
49
50 virtual unsigned inletPort() const override;
51
52 virtual unsigned outletPort() const override;
53
54 virtual ComponentType componentType() const override;
55 virtual std::vector<FuelType> coolingFuelTypes() const override;
56 virtual std::vector<FuelType> heatingFuelTypes() const override;
57 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
58
59 //@}
60 /** @name Getters */
61 //@{
62
63 Schedule availabilitySchedule() const;
64
65 HVACComponent heatExchanger() const;
66
67 boost::optional<double> supplyAirFlowRate() const;
68
69 bool isSupplyAirFlowRateAutosized() const;
70
71 boost::optional<double> exhaustAirFlowRate() const;
72
73 bool isExhaustAirFlowRateAutosized() const;
74
75 HVACComponent supplyAirFan() const;
76
77 HVACComponent exhaustAirFan() const;
78
79 boost::optional<ZoneHVACEnergyRecoveryVentilatorController> controller() const;
80
81 double ventilationRateperUnitFloorArea() const;
82
83 double ventilationRateperOccupant() const;
84
85 // boost::optional<ModelObject> availabilityManagerList() const;
86
87 boost::optional<double> autosizedSupplyAirFlowRate() const;
88
89 boost::optional<double> autosizedExhaustAirFlowRate() const;
90
91 virtual void autosize() override;
92
93 virtual void applySizingValues() override;
94
95 //@}
96 /** @name Setters */
97 //@{
98
99 bool setAvailabilitySchedule(Schedule& schedule);
100
101 bool setHeatExchanger(const HVACComponent& hxAirToAirSensibleAndLatent);
102
103 bool setSupplyAirFlowRate(boost::optional<double> supplyAirFlowRate);
104
105 void autosizeSupplyAirFlowRate();
106
107 bool setExhaustAirFlowRate(boost::optional<double> exhaustAirFlowRate);
108
109 void autosizeExhaustAirFlowRate();
110
111 bool setSupplyAirFan(const HVACComponent& supplyAirFan);
112
113 bool setExhaustAirFan(const HVACComponent& exhaustAirFan);
114
115 bool setController(const boost::optional<ZoneHVACEnergyRecoveryVentilatorController>& zoneHVACEnergyRecoveryVentilatorController);
116
117 void resetController();
118
119 bool setVentilationRateperUnitFloorArea(double ventilationRateperUnitFloorArea);
120
121 bool setVentilationRateperOccupant(double ventilationRateperOccupant);
122
123 // bool setAvailabilityManagerList(const boost::optional<ModelObject>& systemAvailabilityManagerLists);
124
125 // void resetAvailabilityManagerList();
126
127 //@}
128 /** @name Other */
129 //@{
130
131 //@}
132 protected:
133 private:
134 − REGISTER_LOGGER("openstudio.model.ZoneHVACEnergyRecoveryVentilator");
135
136 // Optional getters for use by methods like children() so can remove() if the constructor fails.
137 // There are other ways for the public versions of these getters to fail--perhaps all required
138 // objects should be returned as boost::optionals
139 boost::optional<Schedule> optionalAvailabilitySchedule() const;
140 boost::optional<HVACComponent> optionalHeatExchanger() const;
141 boost::optional<HVACComponent> optionalSupplyAirFan() const;
142 boost::optional<HVACComponent> optionalExhaustAirFan() const;
143 };
144
145 } // namespace detail
146
147 } // namespace model
148 } // namespace openstudio
149
150 #endif // MODEL_ZONEHVACENERGYRECOVERYVENTILATOR_IMPL_HPP
151