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/CentralHeatPumpSystemModule.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_CENTRALHEATPUMPSYSTEMMODULE_HPP
7 #define MODEL_CENTRALHEATPUMPSYSTEMMODULE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ChillerHeaterPerformanceElectricEIR;
16 class CentralHeatPumpSystem;
17 class Schedule;
18
19 namespace detail {
20
21 class CentralHeatPumpSystemModule_Impl;
22
23 } // namespace detail
24
25 /** CentralHeatPumpSystemModule is a ParentObject that wraps the OpenStudio IDD object 'OS:CentralHeatPumpSystem:Module'. */
26 class MODEL_API CentralHeatPumpSystemModule : public ParentObject
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit CentralHeatPumpSystemModule(const Model& model);
33
34 146 virtual ~CentralHeatPumpSystemModule() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 38 CentralHeatPumpSystemModule(const CentralHeatPumpSystemModule& other) = default;
37 48 CentralHeatPumpSystemModule(CentralHeatPumpSystemModule&& other) = default;
38 ✗ CentralHeatPumpSystemModule& operator=(const CentralHeatPumpSystemModule&) = default;
39 ✗ CentralHeatPumpSystemModule& operator=(CentralHeatPumpSystemModule&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 ChillerHeaterPerformanceElectricEIR chillerHeaterModulesPerformanceComponent() const;
49
50 Schedule chillerHeaterModulesControlSchedule() const;
51
52 int numberofChillerHeaterModules() const;
53
54 //@}
55 /** @name Setters */
56 //@{
57
58 bool setChillerHeaterModulesPerformanceComponent(const ChillerHeaterPerformanceElectricEIR& chillerHeaterPerformanceElectricEIR);
59
60 bool setChillerHeaterModulesControlSchedule(Schedule& schedule);
61
62 bool setNumberofChillerHeaterModules(int numberofChillerHeaterModules);
63
64 //@}
65 /** @name Other */
66 //@{
67
68 // Convenience function to return parent CentralHeatPumpSystem
69 boost::optional<CentralHeatPumpSystem> centralHeatPumpSystem() const;
70
71 //@}
72 protected:
73 /// @cond
74 using ImplType = detail::CentralHeatPumpSystemModule_Impl;
75
76 explicit CentralHeatPumpSystemModule(std::shared_ptr<detail::CentralHeatPumpSystemModule_Impl> impl);
77
78 friend class detail::CentralHeatPumpSystemModule_Impl;
79 friend class Model;
80 friend class IdfObject;
81 friend class openstudio::detail::IdfObject_Impl;
82 /// @endcond
83 private:
84 REGISTER_LOGGER("openstudio.model.CentralHeatPumpSystemModule");
85 };
86
87 /** \relates CentralHeatPumpSystemModule*/
88 using OptionalCentralHeatPumpSystemModule = boost::optional<CentralHeatPumpSystemModule>;
89
90 /** \relates CentralHeatPumpSystemModule*/
91 using CentralHeatPumpSystemModuleVector = std::vector<CentralHeatPumpSystemModule>;
92
93 } // namespace model
94 } // namespace openstudio
95
96 #endif // MODEL_CENTRALHEATPUMPSYSTEMMODULE_HPP
97