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/GeneratorFuelCellElectricalStorage_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_GENERATORFUELCELLELECTRICALSTORAGE_IMPL_HPP
7 #define MODEL_GENERATORFUELCELLELECTRICALSTORAGE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class GeneratorFuelCell;
16
17 namespace detail {
18
19 /** GeneratorFuelCellElectricalStorage_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCellElectricalStorage.*/
20 class MODEL_API GeneratorFuelCellElectricalStorage_Impl : public ModelObject_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 GeneratorFuelCellElectricalStorage_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 GeneratorFuelCellElectricalStorage_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 GeneratorFuelCellElectricalStorage_Impl(const GeneratorFuelCellElectricalStorage_Impl& other, Model_Impl* model, bool keepHandle);
31
32 14 virtual ~GeneratorFuelCellElectricalStorage_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 //@}
43 /** @name Getters */
44 //@{
45
46 std::string choiceofModel() const;
47
48 double nominalChargingEnergeticEfficiency() const;
49
50 double nominalDischargingEnergeticEfficiency() const;
51
52 double simpleMaximumCapacity() const;
53
54 double simpleMaximumPowerDraw() const;
55
56 double simpleMaximumPowerStore() const;
57
58 double initialChargeState() const;
59
60 // Return optional parent generator
61 boost::optional<GeneratorFuelCell> fuelCell() const;
62
63 //@}
64 /** @name Setters */
65 //@{
66
67 bool setChoiceofModel(const std::string& choiceofModel);
68
69 void resetChoiceofModel();
70
71 bool setNominalChargingEnergeticEfficiency(double nominalChargingEnergeticEfficiency);
72
73 void resetNominalChargingEnergeticEfficiency();
74
75 bool setNominalDischargingEnergeticEfficiency(double nominalDischargingEnergeticEfficiency);
76
77 void resetNominalDischargingEnergeticEfficiency();
78
79 bool setSimpleMaximumCapacity(double simpleMaximumCapacity);
80
81 void resetSimpleMaximumCapacity();
82
83 bool setSimpleMaximumPowerDraw(double simpleMaximumPowerDraw);
84
85 void resetSimpleMaximumPowerDraw();
86
87 bool setSimpleMaximumPowerStore(double simpleMaximumPowerStore);
88
89 void resetSimpleMaximumPowerStore();
90
91 bool setInitialChargeState(double initialChargeState);
92
93 void resetInitialChargeState();
94
95 //@}
96 /** @name Other */
97 //@{
98
99 //@}
100 protected:
101 private:
102 − REGISTER_LOGGER("openstudio.model.GeneratorFuelCellElectricalStorage");
103 };
104
105 } // namespace detail
106
107 } // namespace model
108 } // namespace openstudio
109
110 #endif // MODEL_GENERATORFUELCELLELECTRICALSTORAGE_IMPL_HPP
111