GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 1 / 6
Functions: 60.0% 3 / 1 / 6
Branches: -% 0 / 1 / 1

src/model/CoilSystemIntegratedHeatPumpAirSource.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_COILSYSTEMINTEGRATEDHEATPUMPAIRSOURCE_HPP
7 #define MODEL_COILSYSTEMINTEGRATEDHEATPUMPAIRSOURCE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class StraightComponent;
16 class HVACComponent;
17 class Curve;
18
19 namespace detail {
20
21 class CoilSystemIntegratedHeatPumpAirSource_Impl;
22
23 } // namespace detail
24
25 /** CoilSystemIntegratedHeatPumpAirSource is a StraightComponent that wraps the OpenStudio IDD object 'OS:CoilSystem:IntegratedHeatPump:AirSource'. */
26 class MODEL_API CoilSystemIntegratedHeatPumpAirSource : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit CoilSystemIntegratedHeatPumpAirSource(const Model& model);
33
34 explicit CoilSystemIntegratedHeatPumpAirSource(const Model& model, const StraightComponent& spaceCoolingCoil,
35 const StraightComponent& spaceHeatingCoil, const HVACComponent& dedicatedWaterHeatingCoil,
36 const HVACComponent& scwhCoil, const StraightComponent& scdwhCoolingCoil,
37 const HVACComponent& scdwhWaterHeatingCoil, const StraightComponent& shdwhHeatingCoil,
38 const HVACComponent& shdwhWaterHeatingCoil);
39
40 130 virtual ~CoilSystemIntegratedHeatPumpAirSource() override = default;
41 // Default the copy and move operators because the virtual dtor is explicit
42 ✗ CoilSystemIntegratedHeatPumpAirSource(const CoilSystemIntegratedHeatPumpAirSource& other) = default;
43 51 CoilSystemIntegratedHeatPumpAirSource(CoilSystemIntegratedHeatPumpAirSource&& other) = default;
44 ✗ CoilSystemIntegratedHeatPumpAirSource& operator=(const CoilSystemIntegratedHeatPumpAirSource&) = default;
45 2 CoilSystemIntegratedHeatPumpAirSource& operator=(CoilSystemIntegratedHeatPumpAirSource&&) = default;
46
47 //@}
48
49 static IddObjectType iddObjectType();
50
51 /** @name Getters */
52 //@{
53
54 StraightComponent spaceCoolingCoil() const;
55
56 StraightComponent spaceHeatingCoil() const;
57
58 HVACComponent dedicatedWaterHeatingCoil() const;
59
60 HVACComponent scwhCoil() const;
61
62 StraightComponent scdwhCoolingCoil() const;
63
64 HVACComponent scdwhWaterHeatingCoil() const;
65
66 StraightComponent shdwhHeatingCoil() const;
67
68 HVACComponent shdwhWaterHeatingCoil() const;
69
70 double indoorTemperatureLimitForSCWHMode() const;
71
72 double ambientTemperatureLimitForSCWHMode() const;
73
74 double indoorTemperatureAboveWhichWHHasHigherPriority() const;
75
76 double ambientTemperatureAboveWhichWHHasHigherPriority() const;
77
78 int flagtoIndicateLoadControlInSCWHMode() const;
79
80 int minimumSpeedLevelForSCWHMode() const;
81
82 double maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode() const;
83
84 int minimumSpeedLevelForSCDWHMode() const;
85
86 double maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode() const;
87
88 int minimumSpeedLevelForSHDWHMode() const;
89
90 //@}
91 /** @name Setters */
92 //@{
93
94 bool setSpaceCoolingCoil(const StraightComponent& spaceCoolingCoil);
95
96 bool setSpaceHeatingCoil(const StraightComponent& spaceHeatingCoil);
97
98 bool setDedicatedWaterHeatingCoil(const HVACComponent& dedicatedWaterHeatingCoil);
99
100 bool setSCWHCoil(const HVACComponent& scwhCoil);
101
102 bool setSCDWHCoolingCoil(const StraightComponent& scdwhCoolingCoil);
103
104 bool setSCDWHWaterHeatingCoil(const HVACComponent& scdwhWaterHeatingCoil);
105
106 bool setSHDWHHeatingCoil(const StraightComponent& shdwhHeatingCoil);
107
108 bool setSHDWHWaterHeatingCoil(const HVACComponent& shdwhWaterHeatingCoil);
109
110 bool setIndoorTemperatureLimitForSCWHMode(double indoorTemperatureLimitForSCWHMode);
111
112 bool setAmbientTemperatureLimitForSCWHMode(double ambientTemperatureLimitForSCWHMode);
113
114 bool setIndoorTemperatureAboveWhichWHHasHigherPriority(double indoorTemperatureAboveWhichWHHasHigherPriority);
115
116 bool setAmbientTemperatureAboveWhichWHHasHigherPriority(double ambientTemperatureAboveWhichWHHasHigherPriority);
117
118 bool setFlagtoIndicateLoadControlInSCWHMode(int flagtoIndicateLoadControlInSCWHMode);
119
120 bool setMinimumSpeedLevelForSCWHMode(int minimumSpeedLevelForSCWHMode);
121
122 bool setMaximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode(double maximumWaterFlowVolumeBeforeSwitchingfromSCDWHtoSCWHMode);
123
124 bool setMinimumSpeedLevelForSCDWHMode(int minimumSpeedLevelForSCDWHMode);
125
126 bool setMaximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode(
127 double maximumRunningTimeBeforeAllowingElectricResistanceHeatUseDuringSHDWHMode);
128
129 bool setMinimumSpeedLevelForSHDWHMode(int minimumSpeedLevelForSHDWHMode);
130
131 //@}
132 /** @name Other */
133 //@{
134
135 //@}
136 protected:
137 /// @cond
138 using ImplType = detail::CoilSystemIntegratedHeatPumpAirSource_Impl;
139
140 explicit CoilSystemIntegratedHeatPumpAirSource(std::shared_ptr<detail::CoilSystemIntegratedHeatPumpAirSource_Impl> impl);
141
142 friend class detail::CoilSystemIntegratedHeatPumpAirSource_Impl;
143 friend class Model;
144 friend class IdfObject;
145 friend class openstudio::detail::IdfObject_Impl;
146 /// @endcond
147 private:
148 − REGISTER_LOGGER("openstudio.model.CoilSystemIntegratedHeatPumpAirSource");
149 };
150
151 /** \relates CoilSystemIntegratedHeatPumpAirSource*/
152 using OptionalCoilSystemIntegratedHeatPumpAirSource = boost::optional<CoilSystemIntegratedHeatPumpAirSource>;
153
154 /** \relates CoilSystemIntegratedHeatPumpAirSource*/
155 using CoilSystemIntegratedHeatPumpAirSourceVector = std::vector<CoilSystemIntegratedHeatPumpAirSource>;
156
157 } // namespace model
158 } // namespace openstudio
159
160 #endif // MODEL_COILSYSTEMINTEGRATEDHEATPUMPAIRSOURCE_HPP
161