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/PerformancePrecisionTradeoffs.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_PERFORMANCEPRECISIONTRADEOFFS_HPP
7 #define MODEL_PERFORMANCEPRECISIONTRADEOFFS_HPP
8
9 #include <vector>
10 #include "ModelAPI.hpp"
11 #include "ModelObject.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 namespace detail {
17
18 class PerformancePrecisionTradeoffs_Impl;
19
20 } // namespace detail
21
22 /** PerformancePrecisionTradeoffs is a ModelObject that wraps the OpenStudio IDD object 'OS:PerformancePrecisionTradeoffs'. */
23 class MODEL_API PerformancePrecisionTradeoffs : public ModelObject
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 27 virtual ~PerformancePrecisionTradeoffs() override = default;
30 // Default the copy and move operators because the virtual dtor is explicit
31 3 PerformancePrecisionTradeoffs(const PerformancePrecisionTradeoffs& other) = default;
32 5 PerformancePrecisionTradeoffs(PerformancePrecisionTradeoffs&& other) = default;
33 ✗ PerformancePrecisionTradeoffs& operator=(const PerformancePrecisionTradeoffs&) = default;
34 ✗ PerformancePrecisionTradeoffs& operator=(PerformancePrecisionTradeoffs&&) = default;
35
36 //@}
37
38 static IddObjectType iddObjectType();
39
40 static std::vector<std::string> zoneRadiantExchangeAlgorithmValues();
41 static std::vector<std::string> validZoneRadiantExchangeAlgorithmValues();
42
43 static std::vector<std::string> overrideModeValues();
44 static std::vector<std::string> validOverrideModeValues();
45
46 /** @name Getters */
47 //@{
48
49 bool useCoilDirectSolutions() const;
50 bool isUseCoilDirectSolutionsDefaulted() const;
51
52 std::string zoneRadiantExchangeAlgorithm() const;
53 bool isZoneRadiantExchangeAlgorithmDefaulted() const;
54
55 std::string overrideMode() const;
56 bool isOverrideModeDefaulted() const;
57
58 double maxZoneTempDiff() const;
59 bool isMaxZoneTempDiffDefaulted() const;
60
61 double maxAllowedDelTemp() const;
62 bool isMaxAllowedDelTempDefaulted() const;
63
64 bool useRepresentativeSurfacesforCalculations() const;
65 bool isUseRepresentativeSurfacesforCalculationsDefaulted() const;
66
67 //@}
68 /** @name Setters */
69 //@{
70
71 bool setUseCoilDirectSolutions(bool useCoilDirectSolutions);
72 void resetUseCoilDirectSolutions();
73
74 bool setZoneRadiantExchangeAlgorithm(const std::string& zoneRadiantExchangeAlgorithm);
75 void resetZoneRadiantExchangeAlgorithm();
76
77 bool setOverrideMode(const std::string& overrideMode);
78 void resetOverrideMode();
79
80 bool setMaxZoneTempDiff(double maxZoneTempDiff);
81 void resetMaxZoneTempDiff();
82
83 bool setMaxAllowedDelTemp(double maxAllowedDelTemp);
84 void resetMaxAllowedDelTemp();
85
86 bool setUseRepresentativeSurfacesforCalculations(bool useRepresentativeSurfacesforCalculations);
87 void resetUseRepresentativeSurfacesforCalculations();
88
89 //@}
90 /** @name Other */
91 //@{
92
93 //@}
94 protected:
95 explicit PerformancePrecisionTradeoffs(Model& model);
96
97 /// @cond
98 using ImplType = detail::PerformancePrecisionTradeoffs_Impl;
99
100 friend class Model;
101 friend class openstudio::IdfObject;
102 friend class detail::PerformancePrecisionTradeoffs_Impl;
103
104 explicit PerformancePrecisionTradeoffs(std::shared_ptr<detail::PerformancePrecisionTradeoffs_Impl> impl);
105
106 /// @endcond
107 private:
108 REGISTER_LOGGER("openstudio.model.PerformancePrecisionTradeoffs");
109 };
110
111 /** \relates PerformancePrecisionTradeoffs*/
112 using OptionalPerformancePrecisionTradeoffs = boost::optional<PerformancePrecisionTradeoffs>;
113
114 /** \relates PerformancePrecisionTradeoffs*/
115 using PerformancePrecisionTradeoffsVector = std::vector<PerformancePrecisionTradeoffs>;
116
117 } // namespace model
118 } // namespace openstudio
119
120 #endif // MODEL_PERFORMANCEPRECISIONTRADEOFFS_HPP
121