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/HeatExchangerDesiccantBalancedFlow_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_HEATEXCHANGERDESICCANTBALANCEDFLOW_IMPL_HPP
7 #define MODEL_HEATEXCHANGERDESICCANTBALANCEDFLOW_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AirToAirComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class Connection;
17 class HeatExchangerDesiccantBalancedFlowPerformanceDataType1;
18
19 namespace detail {
20
21 /** HeatExchangerDesiccantBalancedFlow_Impl is a AirToAirComponent_Impl that is the implementation class for HeatExchangerDesiccantBalancedFlow.*/
22 class MODEL_API HeatExchangerDesiccantBalancedFlow_Impl : public AirToAirComponent_Impl
23 {
24
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 HeatExchangerDesiccantBalancedFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 HeatExchangerDesiccantBalancedFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 HeatExchangerDesiccantBalancedFlow_Impl(const HeatExchangerDesiccantBalancedFlow_Impl& other, Model_Impl* model, bool keepHandle);
34
35 25 virtual ~HeatExchangerDesiccantBalancedFlow_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual std::vector<ModelObject> children() const override;
42
43 virtual const std::vector<std::string>& outputVariableNames() const override;
44
45 virtual IddObjectType iddObjectType() const override;
46
47 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
48
49 // Returns an eventual CoilSystemCooling Water/DX HeatExchangerAssisted
50 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
51
52 /* Override disallows addToNode when part of a CoilSystemCooling Water/DX HeatExchangerAssisted
53 * otherwise calls parent AirToAirComponent_Impl::addToNode
54 */
55 virtual bool addToNode(Node& node) override;
56
57 virtual unsigned primaryAirInletPort() const override;
58
59 virtual unsigned primaryAirOutletPort() const override;
60
61 virtual unsigned secondaryAirInletPort() const override;
62
63 virtual unsigned secondaryAirOutletPort() const override;
64
65 virtual ComponentType componentType() const override;
66 virtual std::vector<FuelType> coolingFuelTypes() const override;
67 virtual std::vector<FuelType> heatingFuelTypes() const override;
68 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
69
70 //@}
71 /** @name Getters */
72 //@{
73
74 Schedule availabilitySchedule() const;
75
76 HeatExchangerDesiccantBalancedFlowPerformanceDataType1 heatExchangerPerformance() const;
77
78 bool economizerLockout() const;
79
80 //@}
81 /** @name Setters */
82 //@{
83
84 bool setAvailabilitySchedule(Schedule& schedule);
85
86 bool setHeatExchangerPerformance(const HeatExchangerDesiccantBalancedFlowPerformanceDataType1& heatExchangerPerformance);
87
88 bool setEconomizerLockout(bool economizerLockout);
89
90 //@}
91 /** @name Other */
92 //@{
93
94 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
95 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
96
97 //@}
98
99 protected:
100 private:
101 − REGISTER_LOGGER("openstudio.model.HeatExchangerDesiccantBalancedFlow");
102
103 // Optional getters for use by methods like children() so can remove() if the constructor fails.
104 // There are other ways for the public versions of these getters to fail--perhaps all required
105 // objects should be returned as boost::optionals
106 boost::optional<Schedule> optionalAvailabilitySchedule() const;
107 boost::optional<HeatExchangerDesiccantBalancedFlowPerformanceDataType1> optionalHeatExchangerPerformance() const;
108
109 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
110
111 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
112 };
113
114 } // namespace detail
115
116 } // namespace model
117 } // namespace openstudio
118
119 #endif // MODEL_HEATEXCHANGERDESICCANTBALANCEDFLOW_IMPL_HPP
120