GCC Code Coverage Report


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

src/model/LoadingIndex.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_LOADINGINDEX_HPP
7 #define MODEL_LOADINGINDEX_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ParentObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17
18 namespace detail {
19
20 class LoadingIndex_Impl;
21
22 } // namespace detail
23
24 /** LoadingIndex is a ParentObject that wraps the OpenStudio IDD object 'OS:AirConditioner:VariableRefrigerantFlow:FluidTemperatureControl:LoadingIndex'. */
25 class MODEL_API LoadingIndex : public ParentObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit LoadingIndex(const Model& model, double compressorSpeed, const Curve& evaporativeCapacityMultiplierFunctionofTemperatureCurve,
32 const Curve& compressorPowerMultiplierFunctionofTemperatureCurve);
33
34 466 virtual ~LoadingIndex() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 74 LoadingIndex(const LoadingIndex& other) = default;
37 184 LoadingIndex(LoadingIndex&& other) = default;
38 ✗ LoadingIndex& operator=(const LoadingIndex&) = default;
39 ✗ LoadingIndex& operator=(LoadingIndex&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 double compressorSpeed() const;
49
50 Curve evaporativeCapacityMultiplierFunctionofTemperatureCurve() const;
51
52 Curve compressorPowerMultiplierFunctionofTemperatureCurve() const;
53
54 //@}
55 /** @name Setters */
56 //@{
57
58 bool setCompressorSpeed(double compressorSpeed);
59
60 bool setEvaporativeCapacityMultiplierFunctionofTemperatureCurve(const Curve& curve);
61
62 bool setCompressorPowerMultiplierFunctionofTemperatureCurve(const Curve& curve);
63
64 //@}
65 /** @name Other */
66 //@{
67
68 //@}
69 protected:
70 /// @cond
71 using ImplType = detail::LoadingIndex_Impl;
72
73 explicit LoadingIndex(std::shared_ptr<detail::LoadingIndex_Impl> impl);
74
75 friend class detail::LoadingIndex_Impl;
76 friend class Model;
77 friend class IdfObject;
78 friend class openstudio::detail::IdfObject_Impl;
79 /// @endcond
80 private:
81 − REGISTER_LOGGER("openstudio.model.LoadingIndex");
82 };
83
84 /** \relates LoadingIndex*/
85 using OptionalLoadingIndex = boost::optional<LoadingIndex>;
86
87 /** \relates LoadingIndex*/
88 using LoadingIndexVector = std::vector<LoadingIndex>;
89
90 } // namespace model
91 } // namespace openstudio
92
93 #endif // MODEL_LOADINGINDEX_HPP
94