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/CoilCoolingWater_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_COILCOOLINGWATER_IMPL_HPP
7 #define MODEL_COILCOOLINGWATER_IMPL_HPP
8
9 #include "WaterToAirComponent_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class Schedule;
15
16 namespace detail {
17
18 class MODEL_API CoilCoolingWater_Impl : public WaterToAirComponent_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 CoilCoolingWater_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 CoilCoolingWater_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 CoilCoolingWater_Impl(const CoilCoolingWater_Impl& other, Model_Impl* model, bool keepHandle);
29
30 129 virtual ~CoilCoolingWater_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual std::vector<openstudio::IdfObject> remove() override;
37
38 virtual bool removeFromPlantLoop() override;
39
40 virtual ModelObject clone(Model model) const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual const std::vector<std::string>& outputVariableNames() const override;
45
46 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
47
48 virtual unsigned airInletPort() const override;
49
50 virtual unsigned airOutletPort() const override;
51
52 virtual unsigned waterInletPort() const override;
53
54 virtual unsigned waterOutletPort() const override;
55
56 virtual bool addToNode(Node& node) override;
57
58 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
59
60 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
61
62 virtual std::vector<ModelObject> children() const override;
63
64 virtual ComponentType componentType() const override;
65 virtual std::vector<FuelType> coolingFuelTypes() const override;
66 virtual std::vector<FuelType> heatingFuelTypes() const override;
67 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
68
69 //@}
70
71 Schedule availabilitySchedule() const;
72
73 bool setAvailabilitySchedule(Schedule& schedule);
74
75 boost::optional<double> designWaterFlowRate();
76
77 bool setDesignWaterFlowRate(double value);
78
79 bool isDesignWaterFlowRateAutosized();
80
81 void autosizeDesignWaterFlowRate();
82
83 boost::optional<double> designAirFlowRate();
84
85 bool setDesignAirFlowRate(double value);
86
87 bool isDesignAirFlowRateAutosized();
88
89 void autosizeDesignAirFlowRate();
90
91 boost::optional<double> designInletWaterTemperature();
92
93 bool setDesignInletWaterTemperature(double value);
94
95 bool isDesignInletWaterTemperatureAutosized();
96
97 void autosizeDesignInletWaterTemperature();
98
99 boost::optional<double> designInletAirTemperature();
100
101 bool setDesignInletAirTemperature(double value);
102
103 bool isDesignInletAirTemperatureAutosized();
104
105 void autosizeDesignInletAirTemperature();
106
107 boost::optional<double> designOutletAirTemperature();
108
109 bool setDesignOutletAirTemperature(double value);
110
111 bool isDesignOutletAirTemperatureAutosized();
112
113 void autosizeDesignOutletAirTemperature();
114
115 boost::optional<double> designInletAirHumidityRatio();
116
117 bool setDesignInletAirHumidityRatio(double value);
118
119 bool isDesignInletAirHumidityRatioAutosized();
120
121 void autosizeDesignInletAirHumidityRatio();
122
123 boost::optional<double> designOutletAirHumidityRatio();
124
125 bool setDesignOutletAirHumidityRatio(double value);
126
127 bool isDesignOutletAirHumidityRatioAutosized();
128
129 void autosizeDesignOutletAirHumidityRatio();
130
131 std::string typeOfAnalysis();
132
133 bool setTypeOfAnalysis(const std::string& value);
134
135 std::string heatExchangerConfiguration();
136
137 bool setHeatExchangerConfiguration(const std::string& value);
138
139 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
140
141 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
142
143 boost::optional<double> autosizedDesignWaterFlowRate() const;
144
145 boost::optional<double> autosizedDesignAirFlowRate() const;
146
147 boost::optional<double> autosizedDesignInletWaterTemperature() const;
148
149 boost::optional<double> autosizedDesignInletAirTemperature() const;
150
151 boost::optional<double> autosizedDesignOutletAirTemperature() const;
152
153 boost::optional<double> autosizedDesignInletAirHumidityRatio() const;
154
155 boost::optional<double> autosizedDesignOutletAirHumidityRatio() const;
156
157 // Not part of the applySizingValues
158 boost::optional<double> autosizedDesignCoilLoad() const;
159
160 virtual void autosize() override;
161
162 virtual void applySizingValues() override;
163
164 private:
165 − REGISTER_LOGGER("openstudio.model.CoilCoolingWater");
166
167 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
168
169 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
170 };
171
172 } // namespace detail
173
174 } // namespace model
175
176 } // namespace openstudio
177
178 #endif // MODEL_COILCOOLINGWATER_IMPL_HPP
179