GCC Code Coverage Report


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

src/model/CentralHeatPumpSystemModule_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_CENTRALHEATPUMPSYSTEMMODULE_IMPL_HPP
7 #define MODEL_CENTRALHEATPUMPSYSTEMMODULE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ChillerHeaterPerformanceElectricEIR;
16 class CentralHeatPumpSystem;
17 class Schedule;
18
19 namespace detail {
20
21 /** CentralHeatPumpSystemModule_Impl is a ParentObject_Impl that is the implementation class for CentralHeatPumpSystemModule.*/
22 class MODEL_API CentralHeatPumpSystemModule_Impl : public ParentObject_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 CentralHeatPumpSystemModule_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 CentralHeatPumpSystemModule_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 CentralHeatPumpSystemModule_Impl(const CentralHeatPumpSystemModule_Impl& other, Model_Impl* model, bool keepHandle);
33
34 23 virtual ~CentralHeatPumpSystemModule_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 //@}
47 /** @name Getters */
48 //@{
49
50 ChillerHeaterPerformanceElectricEIR chillerHeaterModulesPerformanceComponent() const;
51
52 Schedule chillerHeaterModulesControlSchedule() const;
53
54 int numberofChillerHeaterModules() const;
55
56 //@}
57 /** @name Setters */
58 //@{
59
60 bool setChillerHeaterModulesPerformanceComponent(const ChillerHeaterPerformanceElectricEIR& chillerHeaterPerformanceElectricEIR);
61
62 bool setChillerHeaterModulesControlSchedule(Schedule& schedule);
63
64 bool setNumberofChillerHeaterModules(int numberofChillerHeaterModules);
65
66 //@}
67 /** @name Other */
68 //@{
69
70 // Convenience function to return parent CentralHeatPumpSystem
71 boost::optional<CentralHeatPumpSystem> centralHeatPumpSystem() const;
72
73 // Override the clone method to clone the ChillerHeaterPerformanceElectricEIR as well
74 ModelObject clone(Model model) const override;
75
76 // Treat the ChillerHeaterPerformanceElectricEIR as a child
77 std::vector<IddObjectType> allowableChildTypes() const override;
78 std::vector<ModelObject> children() const override;
79
80 //@}
81 protected:
82 private:
83 − REGISTER_LOGGER("openstudio.model.CentralHeatPumpSystemModule");
84
85 // Optional getters for use by methods like children() so can remove() if the constructor fails.
86 // There are other ways for the public versions of these getters to fail--perhaps all required
87 // objects should be returned as boost::optionals
88 boost::optional<ChillerHeaterPerformanceElectricEIR> optionalChillerHeaterModulesPerformanceComponent() const;
89 boost::optional<Schedule> optionalChillerHeaterModulesControlSchedule() const;
90 };
91
92 } // namespace detail
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_CENTRALHEATPUMPSYSTEMMODULE_IMPL_HPP
98