GCC Code Coverage Report


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

src/model/CoilHeatingDXVariableRefrigerantFlow.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_COILHEATINGDXVARIABLEREFRIGERANTFLOW_HPP
7 #define MODEL_COILHEATINGDXVARIABLEREFRIGERANTFLOW_HPP
8
9 #include "ModelAPI.hpp"
10 #include "HVACComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class Curve;
18
19 namespace detail {
20
21 class CoilHeatingDXVariableRefrigerantFlow_Impl;
22
23 } // namespace detail
24
25 /** CoilHeatingDXVariableRefrigerantFlow is a HVACComponent that wraps the OpenStudio IDD object 'OS:Coil:Heating:DX:VariableRefrigerantFlow'. */
26 class MODEL_API CoilHeatingDXVariableRefrigerantFlow : public HVACComponent
27 {
28 public:
29 explicit CoilHeatingDXVariableRefrigerantFlow(const Model& model);
30
31 73 virtual ~CoilHeatingDXVariableRefrigerantFlow() override = default;
32 // Default the copy and move operators because the virtual dtor is explicit
33 ✗ CoilHeatingDXVariableRefrigerantFlow(const CoilHeatingDXVariableRefrigerantFlow& other) = default;
34 ✗ CoilHeatingDXVariableRefrigerantFlow(CoilHeatingDXVariableRefrigerantFlow&& other) = default;
35 ✗ CoilHeatingDXVariableRefrigerantFlow& operator=(const CoilHeatingDXVariableRefrigerantFlow&) = default;
36 ✗ CoilHeatingDXVariableRefrigerantFlow& operator=(CoilHeatingDXVariableRefrigerantFlow&&) = default;
37
38 static IddObjectType iddObjectType();
39
40 Schedule availabilitySchedule() const;
41
42 bool setAvailabilitySchedule(Schedule& schedule);
43
44 boost::optional<double> ratedTotalHeatingCapacity() const;
45
46 bool isRatedTotalHeatingCapacityAutosized() const;
47
48 bool setRatedTotalHeatingCapacity(double ratedTotalHeatingCapacity);
49
50 void autosizeRatedTotalHeatingCapacity();
51
52 boost::optional<double> ratedAirFlowRate() const;
53
54 bool isRatedAirFlowRateAutosized() const;
55
56 bool setRatedAirFlowRate(double ratedAirFlowRate);
57
58 void autosizeRatedAirFlowRate();
59
60 Curve heatingCapacityRatioModifierFunctionofTemperatureCurve() const;
61
62 bool setHeatingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve);
63
64 Curve heatingCapacityModifierFunctionofFlowFractionCurve() const;
65
66 bool setHeatingCapacityModifierFunctionofFlowFractionCurve(const Curve& curve);
67
68 boost::optional<double> autosizedRatedTotalHeatingCapacity() const;
69
70 boost::optional<double> autosizedRatedAirFlowRate() const;
71
72 protected:
73 /// @cond
74 using ImplType = detail::CoilHeatingDXVariableRefrigerantFlow_Impl;
75
76 explicit CoilHeatingDXVariableRefrigerantFlow(std::shared_ptr<detail::CoilHeatingDXVariableRefrigerantFlow_Impl> impl);
77
78 friend class detail::CoilHeatingDXVariableRefrigerantFlow_Impl;
79 friend class Model;
80 friend class IdfObject;
81 friend class openstudio::detail::IdfObject_Impl;
82 /// @endcond
83
84 private:
85 REGISTER_LOGGER("openstudio.model.CoilHeatingDXVariableRefrigerantFlow");
86 };
87
88 /** \relates CoilHeatingDXVariableRefrigerantFlow*/
89 using OptionalCoilHeatingDXVariableRefrigerantFlow = boost::optional<CoilHeatingDXVariableRefrigerantFlow>;
90
91 /** \relates CoilHeatingDXVariableRefrigerantFlow*/
92 using CoilHeatingDXVariableRefrigerantFlowVector = std::vector<CoilHeatingDXVariableRefrigerantFlow>;
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_COILHEATINGDXVARIABLEREFRIGERANTFLOW_HPP
98