GCC Code Coverage Report


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

src/model/ElectricLoadCenterInverterLookUpTable.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_ELECTRICLOADCENTERINVERTERLOOKUPTABLE_HPP
7 #define MODEL_ELECTRICLOADCENTERINVERTERLOOKUPTABLE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Inverter.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class ThermalZone;
18
19 namespace detail {
20
21 class ElectricLoadCenterInverterLookUpTable_Impl;
22
23 } // namespace detail
24
25 /** ElectricLoadCenterInverterLookUpTable is a Inverter that wraps the OpenStudio IDD object 'OS:ElectricLoadCenter:Inverter:LookUpTable'. */
26 class MODEL_API ElectricLoadCenterInverterLookUpTable : public Inverter
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit ElectricLoadCenterInverterLookUpTable(const Model& model);
33
34 2 virtual ~ElectricLoadCenterInverterLookUpTable() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ ElectricLoadCenterInverterLookUpTable(const ElectricLoadCenterInverterLookUpTable& other) = default;
37 ✗ ElectricLoadCenterInverterLookUpTable(ElectricLoadCenterInverterLookUpTable&& other) = default;
38 ✗ ElectricLoadCenterInverterLookUpTable& operator=(const ElectricLoadCenterInverterLookUpTable&) = default;
39 ✗ ElectricLoadCenterInverterLookUpTable& operator=(ElectricLoadCenterInverterLookUpTable&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 boost::optional<Schedule> availabilitySchedule() const;
49
50 boost::optional<double> radiativeFraction() const;
51
52 boost::optional<double> ratedMaximumContinuousOutputPower() const;
53
54 boost::optional<double> nightTareLossPower() const;
55
56 boost::optional<double> nominalVoltageInput() const;
57
58 // DLM: the IDD for these fields looks weird, there is no default and the field is not required but I don't
59 // see how the object would work without values for these fields
60
61 boost::optional<double> efficiencyAt10PowerAndNominalVoltage() const;
62
63 boost::optional<double> efficiencyAt20PowerAndNominalVoltage() const;
64
65 boost::optional<double> efficiencyAt30PowerAndNominalVoltage() const;
66
67 boost::optional<double> efficiencyAt50PowerAndNominalVoltage() const;
68
69 boost::optional<double> efficiencyAt75PowerAndNominalVoltage() const;
70
71 boost::optional<double> efficiencyAt100PowerAndNominalVoltage() const;
72
73 //@}
74 /** @name Setters */
75 //@{
76
77 bool setAvailabilitySchedule(Schedule& schedule);
78
79 void resetAvailabilitySchedule();
80
81 bool setRadiativeFraction(double radiativeFraction);
82
83 void resetRadiativeFraction();
84
85 bool setRatedMaximumContinuousOutputPower(double ratedMaximumContinuousOutputPower);
86
87 void resetRatedMaximumContinuousOutputPower();
88
89 bool setNightTareLossPower(double nightTareLossPower);
90
91 void resetNightTareLossPower();
92
93 bool setNominalVoltageInput(double nominalVoltageInput);
94
95 void resetNominalVoltageInput();
96
97 bool setEfficiencyAt10PowerAndNominalVoltage(double efficiencyAt10PowerAndNominalVoltage);
98
99 void resetEfficiencyAt10PowerAndNominalVoltage();
100
101 bool setEfficiencyAt20PowerAndNominalVoltage(double efficiencyAt20PowerAndNominalVoltage);
102
103 void resetEfficiencyAt20PowerAndNominalVoltage();
104
105 bool setEfficiencyAt30PowerAndNominalVoltage(double efficiencyAt30PowerAndNominalVoltage);
106
107 void resetEfficiencyAt30PowerAndNominalVoltage();
108
109 bool setEfficiencyAt50PowerAndNominalVoltage(double efficiencyAt50PowerAndNominalVoltage);
110
111 void resetEfficiencyAt50PowerAndNominalVoltage();
112
113 bool setEfficiencyAt75PowerAndNominalVoltage(double efficiencyAt75PowerAndNominalVoltage);
114
115 void resetEfficiencyAt75PowerAndNominalVoltage();
116
117 bool setEfficiencyAt100PowerAndNominalVoltage(double efficiencyAt100PowerAndNominalVoltage);
118
119 void resetEfficiencyAt100PowerAndNominalVoltage();
120
121 //@}
122 /** @name Other */
123 //@{
124
125 //@}
126 protected:
127 /// @cond
128 using ImplType = detail::ElectricLoadCenterInverterLookUpTable_Impl;
129
130 explicit ElectricLoadCenterInverterLookUpTable(std::shared_ptr<detail::ElectricLoadCenterInverterLookUpTable_Impl> impl);
131
132 friend class detail::ElectricLoadCenterInverterLookUpTable_Impl;
133 friend class Model;
134 friend class IdfObject;
135 friend class openstudio::detail::IdfObject_Impl;
136 /// @endcond
137 private:
138 REGISTER_LOGGER("openstudio.model.ElectricLoadCenterInverterLookUpTable");
139 };
140
141 /** \relates ElectricLoadCenterInverterLookUpTable*/
142 using OptionalElectricLoadCenterInverterLookUpTable = boost::optional<ElectricLoadCenterInverterLookUpTable>;
143
144 /** \relates ElectricLoadCenterInverterLookUpTable*/
145 using ElectricLoadCenterInverterLookUpTableVector = std::vector<ElectricLoadCenterInverterLookUpTable>;
146
147 } // namespace model
148 } // namespace openstudio
149
150 #endif // MODEL_ELECTRICLOADCENTERINVERTERLOOKUPTABLE_HPP
151