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/CoilCoolingDX_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_COILCOOLINGDX_IMPL_HPP
7 #define MODEL_COILCOOLINGDX_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17 class CoilCoolingDXCurveFitPerformance;
18
19 namespace detail {
20
21 /** CoilCoolingDX_Impl is a StraightComponent_Impl that is the implementation class for CoilCoolingDX.*/
22 class MODEL_API CoilCoolingDX_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 CoilCoolingDX_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 CoilCoolingDX_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 CoilCoolingDX_Impl(const CoilCoolingDX_Impl& other, Model_Impl* model, bool keepHandle);
33
34 48 virtual ~CoilCoolingDX_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 unsigned inletPort() const override;
47
48 virtual unsigned outletPort() const override;
49
50 virtual ModelObject clone(Model model) const override;
51
52 virtual std::vector<ModelObject> children() const override;
53
54 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
55
56 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
57
58 virtual bool addToNode(Node& node) override;
59
60 virtual ComponentType componentType() const override;
61 virtual std::vector<FuelType> coolingFuelTypes() const override;
62 virtual std::vector<FuelType> heatingFuelTypes() const override;
63 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
64
65 //@}
66 /** @name Getters */
67 //@{
68
69 Schedule availabilitySchedule() const;
70
71 boost::optional<ThermalZone> condenserZone() const;
72
73 CoilCoolingDXCurveFitPerformance performanceObject() const;
74
75 // boost::optional<HVACComponent> condensateCollectionWaterStorageTank() const;
76
77 // boost::optional<HVACComponent> evaporativeCondenserSupplyWaterStorageTank() const;
78
79 //@}
80 /** @name Setters */
81 //@{
82
83 bool setAvailabilitySchedule(Schedule& schedule);
84
85 bool setCondenserZone(const ThermalZone& thermalZone);
86 void resetCondenserZone();
87
88 // TODO: Eventually provide an API to set these Nodes once E+ is done implementing support for it (as of 9.3.0 it's not the case)
89 // boost::optional<std::string> condenserInletNodeName() const;
90 // bool setCondenserInletNodeName(const std::string& condenserInletNodeName);
91 // void resetCondenserInletNodeName();
92
93 // boost::optional<std::string> condenserOutletNodeName() const;
94 // bool setCondenserOutletNodeName(const std::string& condenserOutletNodeName);
95 // void resetCondenserOutletNodeName();
96
97 bool setPerformanceObject(const CoilCoolingDXCurveFitPerformance& coilCoolingDXCurveFitPerformance);
98
99 // bool setCondensateCollectionWaterStorageTank(const HVACComponent& condensateCollectionWaterStorageTank);
100 // void resetCondensateCollectionWaterStorageTank();
101
102 // bool setEvaporativeCondenserSupplyWaterStorageTank(const HVACComponent& evaporativeCondenserSupplyWaterStorageTank);
103 // void resetEvaporativeCondenserSupplyWaterStorageTank();
104
105 //@}
106 /** @name Other */
107 //@{
108
109 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
110
111 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
112
113 //@}
114 protected:
115 private:
116 − REGISTER_LOGGER("openstudio.model.CoilCoolingDX");
117
118 boost::optional<Schedule> optionalAvailabilitySchedule() const;
119 boost::optional<CoilCoolingDXCurveFitPerformance> optionalPerformanceObject() const;
120
121 boost::optional<Connection> optionalAirInletNode() const;
122 boost::optional<Connection> optionalAirOutletNode() const;
123 };
124
125 } // namespace detail
126
127 } // namespace model
128 } // namespace openstudio
129
130 #endif // MODEL_COILCOOLINGDX_IMPL_HPP
131