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/CoilSystemCoolingWaterHeatExchangerAssisted_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_COILSYSTEMCOOLINGWATERHEATEXCHANGERASSISTED_IMPL_HPP
7 #define MODEL_COILSYSTEMCOOLINGWATERHEATEXCHANGERASSISTED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class AirToAirComponent;
16 class WaterToAirComponent;
17
18 namespace detail {
19
20 /** CoilSystemCoolingWaterHeatExchangerAssisted_Impl is a StraightComponent_Impl that is the implementation class for CoilSystemCoolingWaterHeatExchangerAssisted.*/
21 class MODEL_API CoilSystemCoolingWaterHeatExchangerAssisted_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoilSystemCoolingWaterHeatExchangerAssisted_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoilSystemCoolingWaterHeatExchangerAssisted_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoilSystemCoolingWaterHeatExchangerAssisted_Impl(const CoilSystemCoolingWaterHeatExchangerAssisted_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 26 virtual ~CoilSystemCoolingWaterHeatExchangerAssisted_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 unsigned inletPort() const override;
45
46 virtual unsigned outletPort() const override;
47
48 // will return the coolingCoil and heatExchanger
49 virtual std::vector<ModelObject> children() const override;
50
51 // Will also clone the coolingCoil and heatExchanger
52 virtual ModelObject clone(Model model) const override;
53
54 // This function will connect the air side only, for water side, use the coils directly
55 virtual bool addToNode(Node& node) override;
56
57 // Need to disconnect the Water side of the coil(s) before removing
58 virtual std::vector<IdfObject> remove() override;
59
60 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
61
62 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
63
64 virtual ComponentType componentType() const override;
65 virtual std::vector<FuelType> coolingFuelTypes() const override;
66 virtual std::vector<FuelType> heatingFuelTypes() const override;
67 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
68
69 //@}
70 /** @name Getters */
71 //@{
72
73 AirToAirComponent heatExchanger() const;
74
75 WaterToAirComponent coolingCoil() const;
76
77 //@}
78 /** @name Setters */
79 //@{
80
81 bool setHeatExchanger(const AirToAirComponent& heatExchanger);
82
83 bool setCoolingCoil(const WaterToAirComponent& coolingCoil);
84
85 //@}
86 /** @name Other */
87 //@{
88
89 //@}
90 protected:
91 private:
92 − REGISTER_LOGGER("openstudio.model.CoilSystemCoolingWaterHeatExchangerAssisted");
93
94 boost::optional<AirToAirComponent> optionalHeatExchanger() const;
95 boost::optional<WaterToAirComponent> optionalCoolingCoil() const;
96 };
97
98 } // namespace detail
99
100 } // namespace model
101 } // namespace openstudio
102
103 #endif // MODEL_COILSYSTEMCOOLINGWATERHEATEXCHANGERASSISTED_IMPL_HPP
104