GCC Code Coverage Report


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

src/model/CoilCoolingLowTempRadiantVarFlow.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_COILCOOLINGLOWTEMPRADIANTVARFLOW_HPP
7 #define MODEL_COILCOOLINGLOWTEMPRADIANTVARFLOW_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11 #include "ZoneHVACLowTempRadiantVarFlow.hpp"
12 #include "ZoneHVACLowTempRadiantVarFlow_Impl.hpp"
13
14 namespace openstudio {
15
16 namespace model {
17
18 class Schedule;
19
20 namespace detail {
21
22 class CoilCoolingLowTempRadiantVarFlow_Impl;
23
24 } // namespace detail
25
26 /** CoilCoolingLowTempRadiantVarFlow is a StraightComponent that wraps the OpenStudio IDD object 'OS:Coil:Cooling:LowTemperatureRadiant:VariableFlow'. */
27 class MODEL_API CoilCoolingLowTempRadiantVarFlow : public StraightComponent
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit CoilCoolingLowTempRadiantVarFlow(const Model& model, Schedule& coolingControlTemperatureSchedule);
34
35 27 virtual ~CoilCoolingLowTempRadiantVarFlow() override = default;
36 // Default the copy and move operators because the virtual dtor is explicit
37 3 CoilCoolingLowTempRadiantVarFlow(const CoilCoolingLowTempRadiantVarFlow& other) = default;
38 7 CoilCoolingLowTempRadiantVarFlow(CoilCoolingLowTempRadiantVarFlow&& other) = default;
39 ✗ CoilCoolingLowTempRadiantVarFlow& operator=(const CoilCoolingLowTempRadiantVarFlow&) = default;
40 ✗ CoilCoolingLowTempRadiantVarFlow& operator=(CoilCoolingLowTempRadiantVarFlow&&) = default;
41
42 //@}
43
44 static IddObjectType iddObjectType();
45
46 //unsigned inletPort() const;
47
48 //unsigned outletPort() const;
49
50 static std::vector<std::string> coolingDesignCapacityMethodValues();
51
52 static std::vector<std::string> condensationControlTypeValues();
53
54 /** @name Getters */
55 //@{
56
57 boost::optional<double> maximumColdWaterFlow() const;
58
59 bool isMaximumColdWaterFlowDefaulted() const;
60
61 bool isMaximumColdWaterFlowAutosized() const;
62
63 double coolingControlThrottlingRange() const;
64
65 bool isCoolingControlThrottlingRangeDefaulted() const;
66
67 boost::optional<Schedule> coolingControlTemperatureSchedule() const;
68
69 std::string condensationControlType() const;
70
71 bool isCondensationControlTypeDefaulted() const;
72
73 double condensationControlDewpointOffset() const;
74
75 bool isCondensationControlDewpointOffsetDefaulted() const;
76
77 std::string coolingDesignCapacityMethod() const;
78
79 boost::optional<double> coolingDesignCapacity() const;
80 bool isCoolingDesignCapacityAutosized() const;
81
82 double coolingDesignCapacityPerFloorArea() const;
83
84 double fractionofAutosizedCoolingDesignCapacity() const;
85
86 //@}
87 /** @name Setters */
88 //@{
89
90 bool setMaximumColdWaterFlow(double maximumColdWaterFlow);
91
92 void resetMaximumColdWaterFlow();
93
94 void autosizeMaximumColdWaterFlow();
95
96 bool setCoolingControlThrottlingRange(double coolingControlThrottlingRange);
97
98 void resetCoolingControlThrottlingRange();
99
100 bool setCoolingControlTemperatureSchedule(Schedule& schedule);
101
102 void resetCoolingControlTemperatureSchedule();
103
104 bool setCondensationControlType(const std::string& condensationControlType);
105
106 void resetCondensationControlType();
107
108 bool setCondensationControlDewpointOffset(double condensationControlDewpointOffset);
109
110 void resetCondensationControlDewpointOffset();
111
112 bool setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod);
113
114 bool setCoolingDesignCapacity(double coolingDesignCapacity);
115 void autosizeCoolingDesignCapacity();
116
117 bool setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea);
118
119 bool setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity);
120
121 //@}
122 /** @name Other */
123 //@{
124
125 boost::optional<double> autosizedMaximumColdWaterFlow() const;
126
127 boost::optional<double> autosizedCoolingDesignCapacity() const;
128
129 //@}
130 protected:
131 /// @cond
132 using ImplType = detail::CoilCoolingLowTempRadiantVarFlow_Impl;
133
134 explicit CoilCoolingLowTempRadiantVarFlow(std::shared_ptr<detail::CoilCoolingLowTempRadiantVarFlow_Impl> impl);
135
136 friend class detail::CoilCoolingLowTempRadiantVarFlow_Impl;
137 friend class Model;
138 friend class IdfObject;
139 friend class openstudio::detail::IdfObject_Impl;
140 /// @endcond
141 private:
142 REGISTER_LOGGER("openstudio.model.CoilCoolingLowTempRadiantVarFlow");
143
144 // Used to find the ZoneHVAC that contains this coil
145 boost::optional<ZoneHVACLowTempRadiantVarFlow> parentZoneHVAC() const;
146 };
147
148 /** \relates CoilCoolingLowTempRadiantVarFlow*/
149 using OptionalCoilCoolingLowTempRadiantVarFlow = boost::optional<CoilCoolingLowTempRadiantVarFlow>;
150
151 /** \relates CoilCoolingLowTempRadiantVarFlow*/
152 using CoilCoolingLowTempRadiantVarFlowVector = std::vector<CoilCoolingLowTempRadiantVarFlow>;
153
154 } // namespace model
155 } // namespace openstudio
156
157 #endif // MODEL_COILCOOLINGLOWTEMPRADIANTVARFLOW_HPP
158