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/CoilSystemCoolingDXHeatExchangerAssisted_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_COILSYSTEMCOOLINGDXHEATEXCHANGERASSISTED_IMPL_HPP
7 #define MODEL_COILSYSTEMCOOLINGDXHEATEXCHANGERASSISTED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class AirToAirComponent;
16
17 namespace detail {
18
19 /** CoilSystemCoolingDXHeatExchangerAssisted_Impl is a StraightComponent_Impl that is the implementation class for CoilSystemCoolingDXHeatExchangerAssisted.*/
20 class MODEL_API CoilSystemCoolingDXHeatExchangerAssisted_Impl : public StraightComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilSystemCoolingDXHeatExchangerAssisted_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilSystemCoolingDXHeatExchangerAssisted_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilSystemCoolingDXHeatExchangerAssisted_Impl(const CoilSystemCoolingDXHeatExchangerAssisted_Impl& other, Model_Impl* model, bool keepHandle);
31
32 26 virtual ~CoilSystemCoolingDXHeatExchangerAssisted_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual unsigned inletPort() const override;
43 virtual unsigned outletPort() const override;
44
45 /**
46 * Note JM 2019-03-13: At this point in time
47 * CoilSystemCoolingDXHeatExchangerAssisted is **NOT** allowed on a Branch directly and should be placed inside one of the Unitary systems
48 * cf https://github.com/NREL/EnergyPlus/issues/7222
49 * This method returns false and does nothing as a result
50 */
51 virtual bool addToNode(Node& node) override;
52
53 // will return the coolingCoil and heatExchanger
54 virtual std::vector<ModelObject> children() const override;
55
56 // Will also clone the coolingCoil and heatExchanger
57 virtual ModelObject clone(Model model) const override;
58
59 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
60
61 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
62
63 virtual ComponentType componentType() const override;
64 virtual std::vector<FuelType> coolingFuelTypes() const override;
65 virtual std::vector<FuelType> heatingFuelTypes() const override;
66 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
67
68 //@}
69 /** @name Getters */
70 //@{
71
72 AirToAirComponent heatExchanger() const;
73
74 StraightComponent coolingCoil() const;
75
76 //@}
77 /** @name Setters */
78 //@{
79
80 bool setHeatExchanger(const AirToAirComponent& heatExchanger);
81
82 bool setCoolingCoil(const StraightComponent& coolingCoil);
83
84 //@}
85 /** @name Other */
86 //@{
87
88 //@}
89 protected:
90 private:
91 − REGISTER_LOGGER("openstudio.model.CoilSystemCoolingDXHeatExchangerAssisted");
92
93 boost::optional<AirToAirComponent> optionalHeatExchanger() const;
94 boost::optional<StraightComponent> optionalCoolingCoil() const;
95 };
96
97 } // namespace detail
98
99 } // namespace model
100 } // namespace openstudio
101
102 #endif // MODEL_COILSYSTEMCOOLINGDXHEATEXCHANGERASSISTED_IMPL_HPP
103