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/CoilHeatingLowTempRadiantVarFlow.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_COILHEATINGLOWTEMPRADIANTVARFLOW_HPP
7 #define MODEL_COILHEATINGLOWTEMPRADIANTVARFLOW_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 CoilHeatingLowTempRadiantVarFlow_Impl;
23
24 } // namespace detail
25
26 /** CoilHeatingLowTempRadiantVarFlow is a StraightComponent that wraps the OpenStudio IDD object 'OS:Coil:Heating:LowTemperatureRadiant:VariableFlow'. */
27 class MODEL_API CoilHeatingLowTempRadiantVarFlow : public StraightComponent
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit CoilHeatingLowTempRadiantVarFlow(const Model& model, Schedule& heatingControlTemperature);
34
35 31 virtual ~CoilHeatingLowTempRadiantVarFlow() override = default;
36 // Default the copy and move operators because the virtual dtor is explicit
37 3 CoilHeatingLowTempRadiantVarFlow(const CoilHeatingLowTempRadiantVarFlow& other) = default;
38 9 CoilHeatingLowTempRadiantVarFlow(CoilHeatingLowTempRadiantVarFlow&& other) = default;
39 ✗ CoilHeatingLowTempRadiantVarFlow& operator=(const CoilHeatingLowTempRadiantVarFlow&) = default;
40 ✗ CoilHeatingLowTempRadiantVarFlow& operator=(CoilHeatingLowTempRadiantVarFlow&&) = default;
41
42 //@}
43
44 static IddObjectType iddObjectType();
45
46 static std::vector<std::string> heatingDesignCapacityMethodValues();
47
48 /** @name Getters */
49 //@{
50
51 boost::optional<double> maximumHotWaterFlow() const;
52
53 bool isMaximumHotWaterFlowDefaulted() const;
54
55 bool isMaximumHotWaterFlowAutosized() const;
56
57 double heatingControlThrottlingRange() const;
58
59 bool isHeatingControlThrottlingRangeDefaulted() const;
60
61 boost::optional<Schedule> heatingControlTemperatureSchedule() const;
62
63 std::string heatingDesignCapacityMethod() const;
64
65 boost::optional<double> heatingDesignCapacity() const;
66 bool isHeatingDesignCapacityAutosized() const;
67
68 double heatingDesignCapacityPerFloorArea() const;
69
70 double fractionofAutosizedHeatingDesignCapacity() const;
71
72 //@}
73 /** @name Setters */
74 //@{
75
76 bool setMaximumHotWaterFlow(double maximumHotWaterFlow);
77
78 void resetMaximumHotWaterFlow();
79
80 void autosizeMaximumHotWaterFlow();
81
82 bool setHeatingControlThrottlingRange(double heatingControlThrottlingRange);
83
84 void resetHeatingControlThrottlingRange();
85
86 bool setHeatingControlTemperatureSchedule(Schedule& schedule);
87
88 void resetHeatingControlTemperatureSchedule();
89
90 bool setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod);
91
92 bool setHeatingDesignCapacity(double heatingDesignCapacity);
93 void autosizeHeatingDesignCapacity();
94
95 bool setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea);
96
97 bool setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity);
98
99 //@}
100 /** @name Other */
101 //@{
102
103 boost::optional<double> autosizedMaximumHotWaterFlow() const;
104
105 boost::optional<double> autosizedHeatingDesignCapacity() const;
106
107 //@}
108 protected:
109 /// @cond
110 using ImplType = detail::CoilHeatingLowTempRadiantVarFlow_Impl;
111
112 explicit CoilHeatingLowTempRadiantVarFlow(std::shared_ptr<detail::CoilHeatingLowTempRadiantVarFlow_Impl> impl);
113
114 friend class detail::CoilHeatingLowTempRadiantVarFlow_Impl;
115 friend class Model;
116 friend class IdfObject;
117 friend class openstudio::detail::IdfObject_Impl;
118 /// @endcond
119 private:
120 REGISTER_LOGGER("openstudio.model.CoilHeatingLowTempRadiantVarFlow");
121
122 // Used to find the ZoneHVAC that contains this coil
123 boost::optional<ZoneHVACLowTempRadiantVarFlow> parentZoneHVAC() const;
124 };
125
126 /** \relates CoilHeatingLowTempRadiantVarFlow*/
127 using OptionalCoilHeatingLowTempRadiantVarFlow = boost::optional<CoilHeatingLowTempRadiantVarFlow>;
128
129 /** \relates CoilHeatingLowTempRadiantVarFlow*/
130 using CoilHeatingLowTempRadiantVarFlowVector = std::vector<CoilHeatingLowTempRadiantVarFlow>;
131
132 } // namespace model
133 } // namespace openstudio
134
135 #endif // MODEL_COILHEATINGLOWTEMPRADIANTVARFLOW_HPP
136