GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 40.0% 2 / 0 / 5
Functions: 40.0% 2 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/CoilCoolingWaterPanelRadiant.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_COILCOOLINGWATERPANELRADIANT_HPP
7 #define MODEL_COILCOOLINGWATERPANELRADIANT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17
18 namespace detail {
19
20 class CoilCoolingWaterPanelRadiant_Impl;
21
22 } // namespace detail
23
24 /** CoilCoolingWaterPanelRadiant is a StraightComponent that wraps the OpenStudio IDD object 'OS:Coil:Cooling:Water:Panel:Radiant'. */
25 class MODEL_API CoilCoolingWaterPanelRadiant : public StraightComponent
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit CoilCoolingWaterPanelRadiant(const Model& model);
32
33 15 virtual ~CoilCoolingWaterPanelRadiant() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ CoilCoolingWaterPanelRadiant(const CoilCoolingWaterPanelRadiant& other) = default;
36 3 CoilCoolingWaterPanelRadiant(CoilCoolingWaterPanelRadiant&& other) = default;
37 ✗ CoilCoolingWaterPanelRadiant& operator=(const CoilCoolingWaterPanelRadiant&) = default;
38 ✗ CoilCoolingWaterPanelRadiant& operator=(CoilCoolingWaterPanelRadiant&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> coolingDesignCapacityMethodValues();
45
46 /** @name Getters */
47 //@{
48
49 double ratedInletWaterTemperature() const;
50
51 double ratedInletSpaceTemperature() const;
52
53 double ratedWaterMassFlowRate() const;
54
55 std::string coolingDesignCapacityMethod() const;
56
57 boost::optional<double> coolingDesignCapacity() const;
58
59 bool isCoolingDesignCapacityAutosized() const;
60
61 double coolingDesignCapacityPerFloorArea() const;
62
63 double fractionofAutosizedCoolingDesignCapacity() const;
64
65 boost::optional<double> maximumChilledWaterFlowRate() const;
66
67 bool isMaximumChilledWaterFlowRateAutosized() const;
68
69 std::string controlType() const;
70
71 double coolingControlThrottlingRange() const;
72
73 boost::optional<Schedule> coolingControlTemperatureSchedule() const;
74
75 std::string condensationControlType() const;
76
77 double condensationControlDewpointOffset() const;
78
79 //@}
80 /** @name Setters */
81 //@{
82
83 bool setRatedInletWaterTemperature(double ratedInletWaterTemperature);
84
85 bool setRatedInletSpaceTemperature(double ratedInletSpaceTemperature);
86
87 bool setRatedWaterMassFlowRate(double ratedWaterMassFlowRate);
88
89 bool setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod);
90
91 bool setCoolingDesignCapacity(double coolingDesignCapacity);
92
93 void autosizeCoolingDesignCapacity();
94
95 bool setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea);
96
97 bool setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity);
98
99 bool setMaximumChilledWaterFlowRate(double maximumChilledWaterFlowRate);
100
101 void autosizeMaximumChilledWaterFlowRate();
102
103 bool setControlType(const std::string& controlType);
104
105 bool setCoolingControlThrottlingRange(double coolingControlThrottlingRange);
106
107 bool setCoolingControlTemperatureSchedule(Schedule& coolingControlTemperatureSchedule);
108
109 void resetCoolingControlTemperatureSchedule();
110
111 bool setCondensationControlType(const std::string& condensationControlType);
112
113 bool setCondensationControlDewpointOffset(double condensationControlDewpointOffset);
114
115 //@}
116 /** @name Other */
117 //@{
118
119 boost::optional<double> autosizedCoolingDesignCapacity() const;
120
121 boost::optional<double> autosizedMaximumChilledWaterFlowRate() const;
122
123 //@}
124 protected:
125 /// @cond
126 using ImplType = detail::CoilCoolingWaterPanelRadiant_Impl;
127
128 explicit CoilCoolingWaterPanelRadiant(std::shared_ptr<detail::CoilCoolingWaterPanelRadiant_Impl> impl);
129
130 friend class detail::CoilCoolingWaterPanelRadiant_Impl;
131 friend class Model;
132 friend class IdfObject;
133 friend class openstudio::detail::IdfObject_Impl;
134 /// @endcond
135 private:
136 REGISTER_LOGGER("openstudio.model.CoilCoolingWaterPanelRadiant");
137 };
138
139 /** \relates CoilCoolingWaterPanelRadiant*/
140 using OptionalCoilCoolingWaterPanelRadiant = boost::optional<CoilCoolingWaterPanelRadiant>;
141
142 /** \relates CoilCoolingWaterPanelRadiant*/
143 using CoilCoolingWaterPanelRadiantVector = std::vector<CoilCoolingWaterPanelRadiant>;
144
145 } // namespace model
146 } // namespace openstudio
147
148 #endif // MODEL_COILCOOLINGWATERPANELRADIANT_HPP
149