GCC Code Coverage Report


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

src/model/RefrigerationSubcoolerMechanical.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_REFRIGERATIONSUBCOOLERMECHANICAL_HPP
7 #define MODEL_REFRIGERATIONSUBCOOLERMECHANICAL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class RefrigerationSystem;
17
18 namespace detail {
19
20 class RefrigerationSubcoolerMechanical_Impl;
21
22 } // namespace detail
23
24 /** RefrigerationSubcoolerMechanical is a ModelObject that wraps the OpenStudio IDD object 'OS:Refrigeration:Subcooler:Mechanical'. */
25 class MODEL_API RefrigerationSubcoolerMechanical : public ModelObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit RefrigerationSubcoolerMechanical(const Model& model);
32
33 116 virtual ~RefrigerationSubcoolerMechanical() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 11 RefrigerationSubcoolerMechanical(const RefrigerationSubcoolerMechanical& other) = default;
36 46 RefrigerationSubcoolerMechanical(RefrigerationSubcoolerMechanical&& other) = default;
37 ✗ RefrigerationSubcoolerMechanical& operator=(const RefrigerationSubcoolerMechanical&) = default;
38 ✗ RefrigerationSubcoolerMechanical& operator=(RefrigerationSubcoolerMechanical&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 /** @name Getters */
45 //@{
46
47 // The system that provides the cooling capacity
48 boost::optional<RefrigerationSystem> capacityProvidingSystem() const;
49
50 boost::optional<double> outletControlTemperature() const;
51
52 //@}
53 /** @name Setters */
54 //@{
55
56 bool setCapacityProvidingSystem(const RefrigerationSystem& refrigerationSystem);
57
58 void resetCapacityProvidingSystem();
59
60 bool setOutletControlTemperature(double outletControlTemperature);
61
62 void resetOutletControlTemperature();
63
64 //@}
65 /** @name Other */
66 //@{
67
68 // The parent RefrigerationSystem, for which condensate is cooled.
69 // This is a convenience method to find any RefrigerationSystem that uses this subcooler
70 boost::optional<RefrigerationSystem> system() const;
71
72 //@}
73 protected:
74 /// @cond
75 using ImplType = detail::RefrigerationSubcoolerMechanical_Impl;
76
77 explicit RefrigerationSubcoolerMechanical(std::shared_ptr<detail::RefrigerationSubcoolerMechanical_Impl> impl);
78
79 friend class detail::RefrigerationSubcoolerMechanical_Impl;
80 friend class Model;
81 friend class IdfObject;
82 friend class openstudio::detail::IdfObject_Impl;
83 /// @endcond
84 private:
85 REGISTER_LOGGER("openstudio.model.RefrigerationSubcoolerMechanical");
86 };
87
88 /** \relates RefrigerationSubcoolerMechanical*/
89 using OptionalRefrigerationSubcoolerMechanical = boost::optional<RefrigerationSubcoolerMechanical>;
90
91 /** \relates RefrigerationSubcoolerMechanical*/
92 using RefrigerationSubcoolerMechanicalVector = std::vector<RefrigerationSubcoolerMechanical>;
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_REFRIGERATIONSUBCOOLERMECHANICAL_HPP
98