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/RefrigerationTranscriticalSystem_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_REFRIGERATIONTRANSCRITICALSYSTEM_IMPL_HPP
7 #define MODEL_REFRIGERATIONTRANSCRITICALSYSTEM_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class RefrigerationCase;
16 class RefrigerationCompressor;
17 class RefrigerationWalkIn;
18 class ModelObjectList;
19 class RefrigerationGasCoolerAirCooled;
20 class ThermalZone;
21
22 namespace detail {
23
24 /** RefrigerationTranscriticalSystem_Impl is a ModelObject_Impl that is the implementation class for RefrigerationTranscriticalSystem.*/
25 class MODEL_API RefrigerationTranscriticalSystem_Impl : public ModelObject_Impl
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 RefrigerationTranscriticalSystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
32
33 RefrigerationTranscriticalSystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
34
35 RefrigerationTranscriticalSystem_Impl(const RefrigerationTranscriticalSystem_Impl& other, Model_Impl* model, bool keepHandle);
36
37 53 virtual ~RefrigerationTranscriticalSystem_Impl() override = default;
38
39 //@}
40 /** @name Virtual Methods */
41 //@{
42
43 virtual const std::vector<std::string>& outputVariableNames() const override;
44
45 virtual IddObjectType iddObjectType() const override;
46
47 std::vector<IdfObject> remove() override;
48
49 ModelObject clone(Model model) const override;
50
51 template <class T>
52 std::vector<T> listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const;
53
54 template <class T>
55 void removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList);
56
57 template <class T>
58 void removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList);
59
60 template <class T>
61 bool addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList);
62
63 bool addMediumTemperatureCase(const RefrigerationCase& refrigerationCase);
64
65 void removeMediumTemperatureCase(const RefrigerationCase& refrigerationCase);
66
67 void removeAllMediumTemperatureCases();
68
69 std::vector<RefrigerationCase> mediumTemperatureCases() const;
70
71 bool addLowTemperatureCase(const RefrigerationCase& refrigerationCase);
72
73 void removeLowTemperatureCase(const RefrigerationCase& refrigerationCase);
74
75 void removeAllLowTemperatureCases();
76
77 std::vector<RefrigerationCase> lowTemperatureCases() const;
78
79 bool addMediumTemperatureWalkin(const RefrigerationWalkIn& refrigerationWalkin);
80
81 void removeMediumTemperatureWalkin(const RefrigerationWalkIn& refrigerationWalkin);
82
83 void removeAllMediumTemperatureWalkins();
84
85 std::vector<RefrigerationWalkIn> mediumTemperatureWalkins() const;
86
87 bool addLowTemperatureWalkin(const RefrigerationWalkIn& refrigerationWalkin);
88
89 void removeLowTemperatureWalkin(const RefrigerationWalkIn& refrigerationWalkin);
90
91 void removeAllLowTemperatureWalkins();
92
93 std::vector<RefrigerationWalkIn> lowTemperatureWalkins() const;
94
95 bool addHighPressureCompressor(const RefrigerationCompressor& compressor);
96
97 void removeHighPressureCompressor(const RefrigerationCompressor& compressor);
98
99 void removeAllHighPressureCompressors();
100
101 std::vector<RefrigerationCompressor> highPressureCompressors() const;
102
103 bool addLowPressureCompressor(const RefrigerationCompressor& compressor);
104
105 void removeLowPressureCompressor(const RefrigerationCompressor& compressor);
106
107 void removeAllLowPressureCompressors();
108
109 std::vector<RefrigerationCompressor> lowPressureCompressors() const;
110
111 //@}
112 /** @name Getters */
113 //@{
114
115 boost::optional<ModelObjectList> mediumTemperatureRefrigeratedCaseAndWalkInList() const;
116
117 boost::optional<ModelObjectList> lowTemperatureRefrigeratedCaseAndWalkInList() const;
118
119 boost::optional<RefrigerationGasCoolerAirCooled> refrigerationGasCooler() const;
120
121 boost::optional<ModelObjectList> highPressureCompressorList() const;
122
123 boost::optional<ModelObjectList> lowPressureCompressorList() const;
124
125 double receiverPressure() const;
126
127 bool isReceiverPressureDefaulted() const;
128
129 double subcoolerEffectiveness() const;
130
131 bool isSubcoolerEffectivenessDefaulted() const;
132
133 std::string refrigerationSystemWorkingFluidType() const;
134
135 double sumUASuctionPipingforMediumTemperatureLoads() const;
136
137 bool isSumUASuctionPipingforMediumTemperatureLoadsDefaulted() const;
138
139 boost::optional<ThermalZone> mediumTemperatureSuctionPipingZone() const;
140
141 double sumUASuctionPipingforLowTemperatureLoads() const;
142
143 bool isSumUASuctionPipingforLowTemperatureLoadsDefaulted() const;
144
145 boost::optional<ThermalZone> lowTemperatureSuctionPipingZone() const;
146
147 std::string endUseSubcategory() const;
148
149 bool isEndUseSubcategoryDefaulted() const;
150
151 //@}
152 /** @name Setters */
153 //@{
154
155 bool setMediumTemperatureRefrigeratedCaseAndWalkInList(const ModelObjectList& modelObjectList);
156
157 bool setLowTemperatureRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList);
158
159 void resetLowTemperatureRefrigeratedCaseAndWalkInList();
160
161 bool setRefrigerationGasCooler(const RefrigerationGasCoolerAirCooled& refrigerationGasCoolerAirCooled);
162
163 bool setHighPressureCompressorList(const ModelObjectList& modelObjectList);
164
165 bool setLowPressureCompressorList(const boost::optional<ModelObjectList>& modelObjectList);
166
167 void resetLowPressureCompressorList();
168
169 bool setReceiverPressure(double receiverPressure);
170
171 void resetReceiverPressure();
172
173 bool setSubcoolerEffectiveness(double subcoolerEffectiveness);
174
175 void resetSubcoolerEffectiveness();
176
177 bool setRefrigerationSystemWorkingFluidType(const std::string& refrigerationSystemWorkingFluidType);
178
179 bool setSumUASuctionPipingforMediumTemperatureLoads(double sumUASuctionPipingforMediumTemperatureLoads);
180
181 void resetSumUASuctionPipingforMediumTemperatureLoads();
182
183 bool setMediumTemperatureSuctionPipingZone(const boost::optional<ThermalZone>& thermalZone);
184
185 void resetMediumTemperatureSuctionPipingZone();
186
187 bool setSumUASuctionPipingforLowTemperatureLoads(double sumUASuctionPipingforLowTemperatureLoads);
188
189 void resetSumUASuctionPipingforLowTemperatureLoads();
190
191 bool setLowTemperatureSuctionPipingZone(const boost::optional<ThermalZone>& thermalZone);
192
193 void resetLowTemperatureSuctionPipingZone();
194
195 bool setEndUseSubcategory(const std::string& endUseSubcategory);
196
197 void resetEndUseSubcategory();
198
199 //@}
200 /** @name Other */
201 //@{
202
203 //@}
204 protected:
205 private:
206 REGISTER_LOGGER("openstudio.model.RefrigerationTranscriticalSystem");
207
208 // Optional getters for use by methods like children() so can remove() if the constructor fails.
209 // There are other ways for the public versions of these getters to fail--perhaps all required
210 // objects should be returned as boost::optionals
211 // boost::optional<ModelObjectList> optionalMediumTemperatureRefrigeratedCaseAndWalkInList() const;
212 // boost::optional<RefrigerationAllTypesGasCooler> optionalRefrigerationGasCooler() const;
213 // boost::optional<ModelObjectList> optionalHighPressureCompressorList() const;
214 };
215
216 } // namespace detail
217
218 } // namespace model
219 } // namespace openstudio
220
221 #endif // MODEL_REFRIGERATIONTRANSCRITICALSYSTEM_IMPL_HPP
222