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/CoilHeatingGasMultiStageStageData_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_COILHEATINGGASMULTISTAGESTAGEDATA_IMPL_HPP
7 #define MODEL_COILHEATINGGASMULTISTAGESTAGEDATA_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class CoilHeatingGasMultiStage;
16
17 namespace detail {
18
19 /** CoilHeatingGasMultiStageStageData_Impl is a ModelObject_Impl that is the implementation class for CoilHeatingGasMultiStageStageData.*/
20 class MODEL_API CoilHeatingGasMultiStageStageData_Impl : public ModelObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilHeatingGasMultiStageStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilHeatingGasMultiStageStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilHeatingGasMultiStageStageData_Impl(const CoilHeatingGasMultiStageStageData_Impl& other, Model_Impl* model, bool keepHandle);
31
32 27 virtual ~CoilHeatingGasMultiStageStageData_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 CoilHeatingGasMultiStage, 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 gasBurnerEfficiency() const;
50
51 boost::optional<double> nominalCapacity() const;
52
53 bool isNominalCapacityAutosized() const;
54
55 double onCycleParasiticElectricLoad() const;
56
57 boost::optional<double> autosizedNominalCapacity() const;
58
59 //@}
60 /** @name Setters */
61 //@{
62
63 bool setGasBurnerEfficiency(double stageGasBurnerEfficiency);
64
65 bool setNominalCapacity(double stageNominalCapacity);
66
67 void autosizeNominalCapacity();
68
69 bool setOnCycleParasiticElectricLoad(double stageonCycleParasiticElectricLoad);
70
71 //@}
72 /** @name Other */
73 //@{
74
75 void autosize();
76
77 void applySizingValues();
78
79 // Returns the CoilHeatingGasMultiStage that references it if any
80 boost::optional<CoilHeatingGasMultiStage> parentCoil() const;
81
82 // Used to determine the index of this performance data in the
83 // list of stages in the parent object.
84 boost::optional<std::tuple<int, CoilHeatingGasMultiStage>> stageIndexAndParentCoil() const;
85
86 //@}
87 protected:
88 private:
89 − REGISTER_LOGGER("openstudio.model.CoilHeatingGasMultiStageStageData");
90 };
91
92 } // namespace detail
93
94 } // namespace model
95 } // namespace openstudio
96
97 #endif // MODEL_COILHEATINGGASMULTISTAGESTAGEDATA_IMPL_HPP
98