GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 120 / 0 / 120
Functions: 100.0% 1 / 0 / 1
Branches: 80.2% 162 / 0 / 202

src/energyplus/ReverseTranslator/ReverseTranslatePhotovoltaicPerformanceSandia.cpp
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 #include "../ReverseTranslator.hpp"
7
8 #include "../../model/PhotovoltaicPerformanceSandia.hpp"
9
10 #include <utilities/idd/PhotovoltaicPerformance_Sandia_FieldEnums.hxx>
11 #include <utilities/idd/IddEnums.hxx>
12
13 using namespace openstudio::model;
14
15 namespace openstudio {
16
17 namespace energyplus {
18
19 2 boost::optional<ModelObject> ReverseTranslator::translatePhotovoltaicPerformanceSandia(const WorkspaceObject& workspaceObject) {
20 2 boost::optional<ModelObject> result;
21
22 // Instantiate an object of the class to store the values,
23 // but we don't return it until we know it's ok
24 // TODO: check constructor, it might need other objects
25
1/1
✓ Branch 1 taken 2 times.
2 openstudio::model::PhotovoltaicPerformanceSandia modelObject(m_model);
26
27 // TODO: Note JM 2018-10-17
28 // You are responsible for implementing any additional logic based on choice fields, etc.
29 // The ReverseTranslator generator script is meant to facilitate your work, not get you 100% of the way
30
31 // Name
32
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<std::string> _name = workspaceObject.name()) {
33
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setName(_name.get());
34 2 }
35
36 // Active Area: Optional Double
37
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<double> _activeArea = workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::ActiveArea)) {
38
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setActiveArea(_activeArea.get());
39 }
40
41 // Number of Cells in Series: Optional Integer
42
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<int> _numberofCellsinSeries = workspaceObject.getInt(PhotovoltaicPerformance_SandiaFields::NumberofCellsinSeries)) {
43
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setNumberofCellsinSeries(_numberofCellsinSeries.get());
44 }
45
46 // Number of Cells in Parallel: Optional Integer
47
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<int> _numberofCellsinParallel = workspaceObject.getInt(PhotovoltaicPerformance_SandiaFields::NumberofCellsinParallel)) {
48
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setNumberofCellsinParallel(_numberofCellsinParallel.get());
49 }
50
51 // Short Circuit Current: Optional Double
52
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<double> _shortCircuitCurrent = workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::ShortCircuitCurrent)) {
53
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setShortCircuitCurrent(_shortCircuitCurrent.get());
54 }
55
56 // Open Circuit Voltage: Optional Double
57
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<double> _openCircuitVoltage = workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::OpenCircuitVoltage)) {
58
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setOpenCircuitVoltage(_openCircuitVoltage.get());
59 }
60
61 // Current at Maximum Power Point: Optional Double
62 2 if (boost::optional<double> _currentatMaximumPowerPoint =
63
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::CurrentatMaximumPowerPoint)) {
64
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setCurrentatMaximumPowerPoint(_currentatMaximumPowerPoint.get());
65 }
66
67 // Voltage at Maximum Power Point: Optional Double
68 2 if (boost::optional<double> _voltageatMaximumPowerPoint =
69
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::VoltageatMaximumPowerPoint)) {
70
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setVoltageatMaximumPowerPoint(_voltageatMaximumPowerPoint.get());
71 }
72
73 // Sandia Database Parameter aIsc: Optional Double
74 2 if (boost::optional<double> _sandiaDatabaseParameteraIsc =
75
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameteraIsc)) {
76
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameteraIsc(_sandiaDatabaseParameteraIsc.get());
77 }
78
79 // Sandia Database Parameter aImp: Optional Double
80 2 if (boost::optional<double> _sandiaDatabaseParameteraImp =
81
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameteraImp)) {
82
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameteraImp(_sandiaDatabaseParameteraImp.get());
83 }
84
85 // Sandia Database Parameter c0: Optional Double
86 2 if (boost::optional<double> _sandiaDatabaseParameterc0 =
87
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc0)) {
88
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc0(_sandiaDatabaseParameterc0.get());
89 }
90
91 // Sandia Database Parameter c1: Optional Double
92 2 if (boost::optional<double> _sandiaDatabaseParameterc1 =
93
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc1)) {
94
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc1(_sandiaDatabaseParameterc1.get());
95 }
96
97 // Sandia Database Parameter BVoc0: Optional Double
98 2 if (boost::optional<double> _sandiaDatabaseParameterBVoc0 =
99
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterBVoc0)) {
100
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterBVoc0(_sandiaDatabaseParameterBVoc0.get());
101 }
102
103 // Sandia Database Parameter mBVoc: Optional Double
104 2 if (boost::optional<double> _sandiaDatabaseParametermBVoc =
105
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametermBVoc)) {
106
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametermBVoc(_sandiaDatabaseParametermBVoc.get());
107 }
108
109 // Sandia Database Parameter BVmp0: Optional Double
110 2 if (boost::optional<double> _sandiaDatabaseParameterBVmp0 =
111
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterBVmp0)) {
112
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterBVmp0(_sandiaDatabaseParameterBVmp0.get());
113 }
114
115 // Sandia Database Parameter mBVmp: Optional Double
116 2 if (boost::optional<double> _sandiaDatabaseParametermBVmp =
117
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametermBVmp)) {
118
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametermBVmp(_sandiaDatabaseParametermBVmp.get());
119 }
120
121 // Diode Factor: Optional Double
122
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<double> _diodeFactor = workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::DiodeFactor)) {
123
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setDiodeFactor(_diodeFactor.get());
124 }
125
126 // Sandia Database Parameter c2: Optional Double
127 2 if (boost::optional<double> _sandiaDatabaseParameterc2 =
128
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc2)) {
129
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc2(_sandiaDatabaseParameterc2.get());
130 }
131
132 // Sandia Database Parameter c3: Optional Double
133 2 if (boost::optional<double> _sandiaDatabaseParameterc3 =
134
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc3)) {
135
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc3(_sandiaDatabaseParameterc3.get());
136 }
137
138 // Sandia Database Parameter a0: Optional Double
139 2 if (boost::optional<double> _sandiaDatabaseParametera0 =
140
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera0)) {
141
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera0(_sandiaDatabaseParametera0.get());
142 }
143
144 // Sandia Database Parameter a1: Optional Double
145 2 if (boost::optional<double> _sandiaDatabaseParametera1 =
146
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera1)) {
147
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera1(_sandiaDatabaseParametera1.get());
148 }
149
150 // Sandia Database Parameter a2: Optional Double
151 2 if (boost::optional<double> _sandiaDatabaseParametera2 =
152
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera2)) {
153
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera2(_sandiaDatabaseParametera2.get());
154 }
155
156 // Sandia Database Parameter a3: Optional Double
157 2 if (boost::optional<double> _sandiaDatabaseParametera3 =
158
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera3)) {
159
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera3(_sandiaDatabaseParametera3.get());
160 }
161
162 // Sandia Database Parameter a4: Optional Double
163 2 if (boost::optional<double> _sandiaDatabaseParametera4 =
164
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera4)) {
165
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera4(_sandiaDatabaseParametera4.get());
166 }
167
168 // Sandia Database Parameter b0: Optional Double
169 2 if (boost::optional<double> _sandiaDatabaseParameterb0 =
170
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb0)) {
171
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb0(_sandiaDatabaseParameterb0.get());
172 }
173
174 // Sandia Database Parameter b1: Optional Double
175 2 if (boost::optional<double> _sandiaDatabaseParameterb1 =
176
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb1)) {
177
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb1(_sandiaDatabaseParameterb1.get());
178 }
179
180 // Sandia Database Parameter b2: Optional Double
181 2 if (boost::optional<double> _sandiaDatabaseParameterb2 =
182
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb2)) {
183
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb2(_sandiaDatabaseParameterb2.get());
184 }
185
186 // Sandia Database Parameter b3: Optional Double
187 2 if (boost::optional<double> _sandiaDatabaseParameterb3 =
188
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb3)) {
189
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb3(_sandiaDatabaseParameterb3.get());
190 }
191
192 // Sandia Database Parameter b4: Optional Double
193 2 if (boost::optional<double> _sandiaDatabaseParameterb4 =
194
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb4)) {
195
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb4(_sandiaDatabaseParameterb4.get());
196 }
197
198 // Sandia Database Parameter b5: Optional Double
199 2 if (boost::optional<double> _sandiaDatabaseParameterb5 =
200
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb5)) {
201
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb5(_sandiaDatabaseParameterb5.get());
202 }
203
204 // Sandia Database Parameter Delta(Tc): Optional Double
205 2 if (boost::optional<double> _sandiaDatabaseParameterDeltaTc =
206
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterDelta_Tc_)) {
207
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterDeltaTc(_sandiaDatabaseParameterDeltaTc.get());
208 }
209
210 // Sandia Database Parameter fd: Optional Double
211 2 if (boost::optional<double> _sandiaDatabaseParameterfd =
212
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterfd)) {
213
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterfd(_sandiaDatabaseParameterfd.get());
214 }
215
216 // Sandia Database Parameter a: Optional Double
217 2 if (boost::optional<double> _sandiaDatabaseParametera =
218
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParametera)) {
219
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParametera(_sandiaDatabaseParametera.get());
220 }
221
222 // Sandia Database Parameter b: Optional Double
223 2 if (boost::optional<double> _sandiaDatabaseParameterb =
224
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterb)) {
225
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterb(_sandiaDatabaseParameterb.get());
226 }
227
228 // Sandia Database Parameter c4: Optional Double
229 2 if (boost::optional<double> _sandiaDatabaseParameterc4 =
230
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc4)) {
231
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc4(_sandiaDatabaseParameterc4.get());
232 }
233
234 // Sandia Database Parameter c5: Optional Double
235 2 if (boost::optional<double> _sandiaDatabaseParameterc5 =
236
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc5)) {
237
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc5(_sandiaDatabaseParameterc5.get());
238 }
239
240 // Sandia Database Parameter Ix0: Optional Double
241 2 if (boost::optional<double> _sandiaDatabaseParameterIx0 =
242
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterIx0)) {
243
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterIx0(_sandiaDatabaseParameterIx0.get());
244 }
245
246 // Sandia Database Parameter Ixx0: Optional Double
247 2 if (boost::optional<double> _sandiaDatabaseParameterIxx0 =
248
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterIxx0)) {
249
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterIxx0(_sandiaDatabaseParameterIxx0.get());
250 }
251
252 // Sandia Database Parameter c6: Optional Double
253 2 if (boost::optional<double> _sandiaDatabaseParameterc6 =
254
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc6)) {
255
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc6(_sandiaDatabaseParameterc6.get());
256 }
257
258 // Sandia Database Parameter c7: Optional Double
259 2 if (boost::optional<double> _sandiaDatabaseParameterc7 =
260
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 workspaceObject.getDouble(PhotovoltaicPerformance_SandiaFields::SandiaDatabaseParameterc7)) {
261
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 modelObject.setSandiaDatabaseParameterc7(_sandiaDatabaseParameterc7.get());
262 }
263
264
1/1
✓ Branch 1 taken 2 times.
2 result = modelObject;
265 4 return result;
266 2 } // End of translate function
267
268 } // end namespace energyplus
269 } // end namespace openstudio
270