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/CoilHeatingElectricMultiStageStageData_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_COILHEATINGELECTRICMULTISTAGESTAGEDATA_IMPL_HPP
7 #define MODEL_COILHEATINGELECTRICMULTISTAGESTAGEDATA_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class CoilHeatingElectricMultiStage;
16
17 namespace detail {
18
19 /** CoilHeatingElectricMultiStageStageData_Impl is a ModelObject_Impl that is the implementation class for CoilHeatingElectricMultiStageStageData.*/
20 class MODEL_API CoilHeatingElectricMultiStageStageData_Impl : public ModelObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilHeatingElectricMultiStageStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilHeatingElectricMultiStageStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilHeatingElectricMultiStageStageData_Impl(const CoilHeatingElectricMultiStageStageData_Impl& other, Model_Impl* model, bool keepHandle);
31
32 32 virtual ~CoilHeatingElectricMultiStageStageData_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 // If this object is used by any CoilHeatingElectricMultiStage, remove the corresponding extensible group to avoid having 'blanks'
43 virtual std::vector<IdfObject> remove() override;
44
45 //@}
46 /** @name Getters */
47 //@{
48
49 double efficiency() const;
50
51 boost::optional<double> nominalCapacity() const;
52
53 bool isNominalCapacityAutosized() const;
54
55 //@}
56 /** @name Setters */
57 //@{
58
59 bool setEfficiency(double StageEfficiency);
60
61 bool setNominalCapacity(boost::optional<double> StageNominalCapacity);
62
63 void autosizeNominalCapacity();
64
65 //@}
66 /** @name Other */
67 //@{
68
69 boost::optional<double> autosizedNominalCapacity() const;
70
71 void autosize();
72
73 void applySizingValues();
74
75 // Returns the CoilHeatingElectricMultiStage that references it if any
76 boost::optional<CoilHeatingElectricMultiStage> parentCoil() const;
77
78 // Used to determine the index of this performance data in the
79 // list of stages in the parent object.
80 boost::optional<std::tuple<int, CoilHeatingElectricMultiStage>> stageIndexAndParentCoil() const;
81
82 //@}
83 protected:
84 private:
85 − REGISTER_LOGGER("openstudio.model.CoilHeatingElectricMultiStageStageData");
86 };
87
88 } // namespace detail
89
90 } // namespace model
91 } // namespace openstudio
92
93 #endif // MODEL_COILHEATINGELECTRICMULTISTAGESTAGEDATA_IMPL_HPP
94