GCC Code Coverage Report


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

src/model/CoilHeatingWaterBaseboard_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_COILHEATINGWATERBASEBOARD_IMPL_HPP
7 #define MODEL_COILHEATINGWATERBASEBOARD_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11 #include "ZoneHVACComponent.hpp"
12 #include "ZoneHVACComponent_Impl.hpp"
13
14 namespace openstudio {
15 namespace model {
16
17 namespace detail {
18
19 /** CoilHeatingWaterBaseboard_Impl is a StraightComponent_Impl that is the implementation class for CoilHeatingWaterBaseboard.*/
20 class MODEL_API CoilHeatingWaterBaseboard_Impl : public StraightComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilHeatingWaterBaseboard_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilHeatingWaterBaseboard_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilHeatingWaterBaseboard_Impl(const CoilHeatingWaterBaseboard_Impl& other, Model_Impl* model, bool keepHandle);
31
32 5 virtual ~CoilHeatingWaterBaseboard_Impl() override = default;
33
34 //@}
35
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual unsigned inletPort() const override;
44
45 virtual unsigned outletPort() const override;
46
47 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
48
49 virtual ComponentType componentType() const override;
50 virtual std::vector<FuelType> coolingFuelTypes() const override;
51 virtual std::vector<FuelType> heatingFuelTypes() const override;
52 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
53
54 //@}
55 /** @name Getters */
56 //@{
57
58 std::string heatingDesignCapacityMethod() const;
59
60 boost::optional<double> heatingDesignCapacity() const;
61
62 bool isHeatingDesignCapacityAutosized() const;
63
64 double heatingDesignCapacityPerFloorArea() const;
65
66 double fractionofAutosizedHeatingDesignCapacity() const;
67
68 boost::optional<double> uFactorTimesAreaValue() const;
69
70 bool isUFactorTimesAreaValueDefaulted() const;
71
72 bool isUFactorTimesAreaValueAutosized() const;
73
74 boost::optional<double> maximumWaterFlowRate() const;
75
76 bool isMaximumWaterFlowRateDefaulted() const;
77
78 bool isMaximumWaterFlowRateAutosized() const;
79
80 double convergenceTolerance() const;
81
82 bool isConvergenceToleranceDefaulted() const;
83
84 boost::optional<double> autosizedHeatingDesignCapacity() const;
85
86 boost::optional<double> autosizedUFactorTimesAreaValue() const;
87
88 boost::optional<double> autosizedMaximumWaterFlowRate() const;
89
90 virtual void autosize() override;
91
92 virtual void applySizingValues() override;
93
94 //@}
95 /** @name Setters */
96 //@{
97 bool setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod);
98
99 bool setHeatingDesignCapacity(boost::optional<double> heatingDesignCapacity);
100
101 void autosizeHeatingDesignCapacity();
102
103 bool setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea);
104
105 bool setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity);
106
107 bool setUFactorTimesAreaValue(boost::optional<double> uFactorTimesAreaValue);
108
109 void resetUFactorTimesAreaValue();
110
111 void autosizeUFactorTimesAreaValue();
112
113 bool setMaximumWaterFlowRate(boost::optional<double> maximumWaterFlowRate);
114
115 void resetMaximumWaterFlowRate();
116
117 void autosizeMaximumWaterFlowRate();
118
119 bool setConvergenceTolerance(double convergenceTolerance);
120
121 void resetConvergenceTolerance();
122
123 //@}
124 /** @name Other */
125 //@{
126
127 bool addToNode(Node& node) override;
128
129 //@}
130 protected:
131 private:
132 REGISTER_LOGGER("openstudio.model.CoilHeatingWaterBaseboard");
133 };
134
135 } // namespace detail
136
137 } // namespace model
138 } // namespace openstudio
139
140 #endif // MODEL_COILHEATINGWATERBASEBOARD_IMPL_HPP
141