GCC Code Coverage Report


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

src/model/CoilCoolingDXVariableRefrigerantFlow_Impl.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_COILCOOLINGDXVARIABLEREFRIGERANTFLOW_IMPL_HPP
7 #define MODEL_COILCOOLINGDXVARIABLEREFRIGERANTFLOW_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "HVACComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class Curve;
18
19 namespace detail {
20
21 /** CoilCoolingDXVariableRefrigerantFlow_Impl is a HVACComponent_Impl that is the implementation class for CoilCoolingDXVariableRefrigerantFlow.*/
22 class MODEL_API CoilCoolingDXVariableRefrigerantFlow_Impl : public HVACComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 CoilCoolingDXVariableRefrigerantFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 CoilCoolingDXVariableRefrigerantFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 CoilCoolingDXVariableRefrigerantFlow_Impl(const CoilCoolingDXVariableRefrigerantFlow_Impl& other, Model_Impl* model, bool keepHandle);
33
34 79 virtual ~CoilCoolingDXVariableRefrigerantFlow_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual ComponentType componentType() const override;
47 virtual std::vector<FuelType> coolingFuelTypes() const override;
48 virtual std::vector<FuelType> heatingFuelTypes() const override;
49 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 Schedule availabilitySchedule() const;
56
57 boost::optional<double> ratedTotalCoolingCapacity() const;
58
59 bool isRatedTotalCoolingCapacityAutosized() const;
60
61 boost::optional<double> ratedSensibleHeatRatio() const;
62
63 bool isRatedSensibleHeatRatioAutosized() const;
64
65 boost::optional<double> ratedAirFlowRate() const;
66
67 bool isRatedAirFlowRateAutosized() const;
68
69 Curve coolingCapacityRatioModifierFunctionofTemperatureCurve() const;
70
71 Curve coolingCapacityModifierCurveFunctionofFlowFraction() const;
72
73 boost::optional<double> autosizedRatedTotalCoolingCapacity() const;
74
75 boost::optional<double> autosizedRatedSensibleHeatRatio() const;
76
77 boost::optional<double> autosizedRatedAirFlowRate() const;
78
79 virtual void autosize() override;
80
81 virtual void applySizingValues() override;
82
83 //@}
84 /** @name Setters */
85 //@{
86
87 bool setAvailabilitySchedule(Schedule& schedule);
88
89 bool setRatedTotalCoolingCapacity(boost::optional<double> ratedTotalCoolingCapacity);
90
91 void autosizeRatedTotalCoolingCapacity();
92
93 bool setRatedSensibleHeatRatio(boost::optional<double> ratedSensibleHeatRatio);
94
95 void autosizeRatedSensibleHeatRatio();
96
97 bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate);
98
99 void autosizeRatedAirFlowRate();
100
101 bool setCoolingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve);
102
103 bool setCoolingCapacityModifierCurveFunctionofFlowFraction(const Curve& curve);
104
105 //@}
106 /** @name Other */
107 //@{
108
109 ModelObject clone(Model model) const override;
110
111 std::vector<ModelObject> children() const override;
112
113 //@}
114 protected:
115 private:
116 − REGISTER_LOGGER("openstudio.model.CoilCoolingDXVariableRefrigerantFlow");
117
118 boost::optional<Schedule> optionalAvailabilitySchedule() const;
119 boost::optional<Curve> optionalCoolingCapacityRatioModifierFunctionofTemperatureCurve() const;
120 boost::optional<Curve> optionalCoolingCapacityModifierCurveFunctionofFlowFraction() const;
121 };
122
123 } // namespace detail
124
125 } // namespace model
126 } // namespace openstudio
127
128 #endif // MODEL_COILCOOLINGDXVARIABLEREFRIGERANTFLOW_IMPL_HPP
129