GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 87.4% 167 / 0 / 191
Functions: 90.2% 46 / 0 / 51
Branches: 85.8% 579 / 0 / 675

src/model/OutputTableMonthly.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 "OutputTableMonthly.hpp"
7 #include "OutputTableMonthly_Impl.hpp"
8
9 #include "ModelExtensibleGroup.hpp"
10
11 #include "../utilities/core/Assert.hpp"
12
13 #include <utilities/idd/IddEnums.hxx>
14 #include <utilities/idd/IddFactory.hxx>
15 #include <utilities/idd/OS_Output_Table_Monthly_FieldEnums.hxx>
16
17 #include <fmt/format.h>
18 #include <fmt/ranges.h>
19
20 namespace openstudio {
21 namespace model {
22
23 4924 MonthlyVariableGroup::MonthlyVariableGroup(std::string variableOrMeterName, std::string aggregationType)
24 4924 : m_variableOrMeterName(std::move(variableOrMeterName)), m_aggregationType(std::move(aggregationType)) {
25
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 4923 times.
4924 if (m_variableOrMeterName.empty()) {
26
13/13
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 38 taken 1 time.
✓ Branch 41 taken 1 time.
1 LOG_AND_THROW("Variable or Meter Name can't be empty");
27 }
28
3/3
✓ Branch 1 taken 4923 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 4922 times.
4923 if (!OutputTableMonthly::isAggregationTypeValid(m_aggregationType)) {
29
15/15
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 40 taken 1 time.
✓ Branch 44 taken 1 time.
✓ Branch 50 taken 1 time.
✓ Branch 53 taken 1 time.
3 LOG_AND_THROW(fmt::format("Invalid aggregation type '{}': {}", m_aggregationType, OutputTableMonthly::aggregationTypeValues()));
30 }
31 4926 }
32
33 8266 std::string MonthlyVariableGroup::variableOrMeterName() const {
34 8266 return m_variableOrMeterName;
35 }
36
37 1701 std::string MonthlyVariableGroup::aggregationType() const {
38 1701 return m_aggregationType;
39 }
40
41 3340 bool MonthlyVariableGroup::operator==(const MonthlyVariableGroup& other) const {
42
1/6
✓ Branch 1 taken 3340 times.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
3340 return openstudio::istringEqual(variableOrMeterName(), other.variableOrMeterName())
43
15/20
✓ Branch 1 taken 3340 times.
✓ Branch 4 taken 3340 times.
✓ Branch 7 taken 3340 times.
✓ Branch 9 taken 57 times.
✓ Branch 10 taken 3283 times.
✓ Branch 12 taken 57 times.
✓ Branch 15 taken 57 times.
✓ Branch 18 taken 57 times.
✓ Branch 20 taken 6 times.
✓ Branch 21 taken 51 times.
✓ Branch 22 taken 57 times.
✓ Branch 23 taken 3283 times.
✓ Branch 25 taken 57 times.
✓ Branch 26 taken 3283 times.
✓ Branch 28 taken 3340 times.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
6680 && openstudio::istringEqual(aggregationType(), other.aggregationType());
44 }
45
46 ✗ bool MonthlyVariableGroup::operator!=(const MonthlyVariableGroup& other) const {
47 ✗ return (!operator==(other));
48 }
49
50 1353 bool MonthlyVariableGroup::isAggregationTypeAdvanced() const {
51 1353 return OutputTableMonthly::isAggregationTypeAdvanced(m_aggregationType);
52 }
53
54 2 std::ostream& operator<<(std::ostream& out, const openstudio::model::MonthlyVariableGroup& monthlyVariableGroup) {
55 ✗ out << "(Output Variable or Meter = '" << monthlyVariableGroup.variableOrMeterName() << "', Aggregation Type = '"
56
6/6
✓ Branch 2 taken 2 times.
✓ Branch 5 taken 2 times.
✓ Branch 8 taken 2 times.
✓ Branch 11 taken 2 times.
✓ Branch 14 taken 2 times.
✓ Branch 17 taken 2 times.
2 << monthlyVariableGroup.aggregationType() << "')";
57 2 return out;
58 }
59
60 namespace detail {
61
62 60 const std::vector<std::pair<std::string, std::vector<MonthlyVariableGroup>>>& OutputTableMonthly_Impl::standardReports() {
63 // Generated from this python code, https://github.com/NREL/EnergyPlus/blob/v25.1.0-IOFreeze/datasets/StandardReports.idf
64 //
65 // ```python
66 // def generate_report(standard_report_name: str):
67 // wo = w.getObjectByTypeAndName('Output:Table:Monthly', standard_report_name).get()
68 // s = f' {{"{standard_report_name}",\n {{\n'
69 // for eg in wo.extensibleGroups():
70 // s += f' {{"{eg.getString(0).get()}", "{eg.getString(1).get()}"}},\n'
71 // s += " }\n },"
72 // return s
73 //
74 // w = openstudio.Workspace.load('/path/to/EnergyPlus/datasets/StandardReports.idf').get()
75 // reports = sorted([wo for wo in w.getObjectsByType('Output:Table:Monthly')], key=lambda wo: wo.nameString())
76 //
77 // print("static std::vector<std::pair<std::string, std::vector<MonthlyVariableGroup>>> standard_reports{")
78 //
79 // for report in reports:
80 // print(generate_report(report.nameString()))
81 //
82 // print("};")
83 // ```
84
85 static std::vector<std::pair<std::string, std::vector<MonthlyVariableGroup>>> standard_reports{
86 {"Air Loop System Component Energy Use",
87 {
88 {"Air System Fan Electricity Energy", "SumOrAverage"},
89 {"Air System Heating Coil Hot Water Energy", "SumOrAverage"},
90 {"Air System Cooling Coil Chilled Water Energy", "SumOrAverage"},
91 {"Air System DX Heating Coil Electricity Energy", "SumOrAverage"},
92 {"Air System DX Cooling Coil Electricity Energy", "SumOrAverage"},
93 {"Air System Heating Coil Electricity Energy", "SumOrAverage"},
94 {"Air System Heating Coil NaturalGas Energy", "SumOrAverage"},
95 {"Air System Heating Coil Steam Energy", "SumOrAverage"},
96 {"Air System Humidifier Electricity Energy", "SumOrAverage"},
97 {"Air System Evaporative Cooler Electricity Energy", "SumOrAverage"},
98 {"Air System Desiccant Dehumidifier Electricity Energy", "SumOrAverage"},
99 }},
100 {"Air Loop System Component Loads",
101 {
102 {"Air System Fan Air Heating Energy", "SumOrAverage"},
103 {"Air System Cooling Coil Total Cooling Energy", "SumOrAverage"},
104 {"Air System Heating Coil Total Heating Energy", "SumOrAverage"},
105 {"Air System Heat Exchanger Total Heating Energy", "SumOrAverage"},
106 {"Air System Heat Exchanger Total Cooling Energy", "SumOrAverage"},
107 {"Air System Humidifier Total Heating Energy", "SumOrAverage"},
108 {"Air System Evaporative Cooler Total Cooling Energy", "SumOrAverage"},
109 {"Air System Desiccant Dehumidifier Total Cooling Energy", "SumOrAverage"},
110 }},
111 {"Air Loop System Energy and Water Use",
112 {
113 {"Air System Hot Water Energy", "SumOrAverage"},
114 {"Air System Steam Energy", "SumOrAverage"},
115 {"Air System Chilled Water Energy", "SumOrAverage"},
116 {"Air System Electricity Energy", "SumOrAverage"},
117 {"Air System NaturalGas Energy", "SumOrAverage"},
118 {"Air System Water Volume", "SumOrAverage"},
119 }},
120 {"Average Outdoor Conditions",
121 {
122 {"Site Outdoor Air Drybulb Temperature", "SumOrAverage"},
123 {"Site Outdoor Air Wetbulb Temperature", "SumOrAverage"},
124 {"Site Outdoor Air Dewpoint Temperature", "SumOrAverage"},
125 {"Site Wind Speed", "SumOrAverage"},
126 {"Site Sky Temperature", "SumOrAverage"},
127 {"Site Diffuse Solar Radiation Rate per Area", "SumOrAverage"},
128 {"Site Direct Solar Radiation Rate per Area", "SumOrAverage"},
129 {"Raining", "SumOrAverage"},
130 }},
131 {"Boiler Report",
132 {
133 {"Boiler Heating Energy", "SumOrAverage"},
134 {"Boiler NaturalGas Energy", "SumOrAverage"},
135 {"Boiler Heating Energy", "HoursNonZero"},
136 {"Boiler Heating Rate", "Maximum"},
137 {"Boiler NaturalGas Rate", "Maximum"},
138 {"Boiler Inlet Temperature", "SumOrAverage"},
139 {"Boiler Outlet Temperature", "SumOrAverage"},
140 {"Boiler Mass Flow Rate", "SumOrAverage"},
141 {"Boiler Ancillary Electricity Rate", "SumOrAverage"},
142 }},
143 {"Chiller Report",
144 {
145 {"Chiller Electricity Energy", "SumOrAverage"},
146 {"Chiller Electricity Rate", "Maximum"},
147 {"Chiller Electricity Energy", "HoursNonZero"},
148 {"Chiller Evaporator Cooling Energy", "SumOrAverage"},
149 {"Chiller Condenser Heat Transfer Energy", "SumOrAverage"},
150 {"Chiller COP", "SumOrAverage"},
151 {"Chiller COP", "Minimum"},
152 {"Chiller COP", "Maximum"},
153 }},
154 {"Coil Report",
155 {
156 {"Heating Coil Heating Energy", "SumOrAverage"},
157 {"Heating Coil Heating Rate", "Maximum"},
158 {"Cooling Coil Total Cooling Energy", "SumOrAverage"},
159 {"Cooling Coil Sensible Cooling Energy", "SumOrAverage"},
160 {"Cooling Coil Total Cooling Rate", "Maximum"},
161 {"Cooling Coil Sensible Cooling Rate", "ValueWhenMaximumOrMinimum"},
162 {"Cooling Coil Wetted Area Fraction", "SumOrAverage"},
163 }},
164 {"Comfort Report - Simple 55",
165 {
166 {"Zone Thermal Comfort ASHRAE 55 Simple Model Summer Clothes Not Comfortable Time", "HoursNonZero"},
167 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
168 {"Zone Thermal Comfort ASHRAE 55 Simple Model Winter Clothes Not Comfortable Time", "HoursNonZero"},
169 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
170 {"Zone Thermal Comfort ASHRAE 55 Simple Model Summer or Winter Clothes Not Comfortable Time", "HoursNonZero"},
171 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
172 }},
173 {"Cond Loop Demand Report",
174 {
175 {"Plant Supply Side Cooling Demand Rate", "SumOrAverage"},
176 {"Plant Supply Side Cooling Demand Rate", "Maximum"},
177 {"Plant Supply Side Inlet Temperature", "ValueWhenMaximumOrMinimum"},
178 {"Plant Supply Side Outlet Temperature", "ValueWhenMaximumOrMinimum"},
179 {"Plant Supply Side Heating Demand Rate", "SumOrAverage"},
180 {"Plant Supply Side Heating Demand Rate", "Maximum"},
181 }},
182 {"DX Report",
183 {
184 {"Cooling Coil Total Cooling Energy", "SumOrAverage"},
185 {"Cooling Coil Electricity Energy", "SumOrAverage"},
186 {"Cooling Coil Total Cooling Energy", "HoursNonZero"},
187 {"Cooling Coil Sensible Cooling Energy", "SumOrAverage"},
188 {"Cooling Coil Latent Cooling Energy", "SumOrAverage"},
189 {"Cooling Coil Crankcase Heater Electricity Energy", "SumOrAverage"},
190 {"Cooling Coil Runtime Fraction", "Maximum"},
191 {"Cooling Coil Runtime Fraction", "Minimum"},
192 {"Cooling Coil Total Cooling Rate", "Maximum"},
193 {"Cooling Coil Sensible Cooling Rate", "Maximum"},
194 {"Cooling Coil Latent Cooling Rate", "Maximum"},
195 {"Cooling Coil Electricity Rate", "Maximum"},
196 {"Cooling Coil Crankcase Heater Electricity Rate", "Maximum"},
197 }},
198 {"Daylighting Report",
199 {
200 {"Site Exterior Beam Normal Illuminance", "HoursNonZero"},
201 {"Daylighting Lighting Power Multiplier", "SumOrAverageDuringHoursShown"},
202 {"Daylighting Lighting Power Multiplier", "MinimumDuringHoursShown"},
203 {"Daylighting Reference Point 1 Illuminance", "SumOrAverageDuringHoursShown"},
204 {"Daylighting Reference Point 1 Glare Index", "SumOrAverageDuringHoursShown"},
205 {"Daylighting Reference Point 2 Illuminance", "SumOrAverageDuringHoursShown"},
206 {"Daylighting Reference Point 2 Glare Index", "SumOrAverageDuringHoursShown"},
207 }},
208 {"Electric Components of Peak Demand",
209 {
210 {"Electricity:Facility", "Maximum"},
211 {"InteriorLights:Electricity", "ValueWhenMaximumOrMinimum"},
212 {"InteriorEquipment:Electricity", "ValueWhenMaximumOrMinimum"},
213 {"ExteriorLights:Electricity", "ValueWhenMaximumOrMinimum"},
214 {"ExteriorEquipment:Electricity", "ValueWhenMaximumOrMinimum"},
215 {"Fans:Electricity", "ValueWhenMaximumOrMinimum"},
216 {"Pumps:Electricity", "ValueWhenMaximumOrMinimum"},
217 {"Heating:Electricity", "ValueWhenMaximumOrMinimum"},
218 {"Cooling:Electricity", "ValueWhenMaximumOrMinimum"},
219 {"HeatRejection:Electricity", "ValueWhenMaximumOrMinimum"},
220 }},
221 {"End-Use Energy Consumption - Coal",
222 {
223 {"ExteriorEquipment:Coal", "SumOrAverage"},
224 {"Heating:Coal", "SumOrAverage"},
225 {"WaterSystems:Coal", "SumOrAverage"},
226 }},
227 {"End-Use Energy Consumption - Diesel",
228 {
229 {"ExteriorEquipment:Diesel", "SumOrAverage"},
230 {"Cooling:Diesel", "SumOrAverage"},
231 {"Heating:Diesel", "SumOrAverage"},
232 {"WaterSystems:Diesel", "SumOrAverage"},
233 {"Cogeneration:Diesel", "SumOrAverage"},
234 }},
235 {"End-Use Energy Consumption - Electricity",
236 {
237 {"InteriorLights:Electricity", "SumOrAverage"},
238 {"ExteriorLights:Electricity", "SumOrAverage"},
239 {"InteriorEquipment:Electricity", "SumOrAverage"},
240 {"ExteriorEquipment:Electricity", "SumOrAverage"},
241 {"Fans:Electricity", "SumOrAverage"},
242 {"Pumps:Electricity", "SumOrAverage"},
243 {"Heating:Electricity", "SumOrAverage"},
244 {"Cooling:Electricity", "SumOrAverage"},
245 {"HeatRejection:Electricity", "SumOrAverage"},
246 {"Humidifier:Electricity", "SumOrAverage"},
247 {"HeatRecovery:Electricity", "SumOrAverage"},
248 {"WaterSystems:Electricity", "SumOrAverage"},
249 {"Cogeneration:Electricity", "SumOrAverage"},
250 }},
251 {"End-Use Energy Consumption - Fuel Oil",
252 {
253 {"ExteriorEquipment:FuelOilNo1", "SumOrAverage"},
254 {"Cooling:FuelOilNo1", "SumOrAverage"},
255 {"Heating:FuelOilNo1", "SumOrAverage"},
256 {"WaterSystems:FuelOilNo1", "SumOrAverage"},
257 {"Cogeneration:FuelOilNo1", "SumOrAverage"},
258 {"ExteriorEquipment:FuelOilNo2", "SumOrAverage"},
259 {"Cooling:FuelOilNo2", "SumOrAverage"},
260 {"Heating:FuelOilNo2", "SumOrAverage"},
261 {"WaterSystems:FuelOilNo2", "SumOrAverage"},
262 {"Cogeneration:FuelOilNo2", "SumOrAverage"},
263 }},
264 {"End-Use Energy Consumption - Gasoline",
265 {
266 {"ExteriorEquipment:Gasoline", "SumOrAverage"},
267 {"Cooling:Gasoline", "SumOrAverage"},
268 {"Heating:Gasoline", "SumOrAverage"},
269 {"WaterSystems:Gasoline", "SumOrAverage"},
270 {"Cogeneration:Gasoline", "SumOrAverage"},
271 }},
272 {"End-Use Energy Consumption - Natural Gas",
273 {
274 {"InteriorEquipment:NaturalGas", "SumOrAverage"},
275 {"ExteriorEquipment:NaturalGas", "SumOrAverage"},
276 {"Heating:NaturalGas", "SumOrAverage"},
277 {"Cooling:NaturalGas", "SumOrAverage"},
278 {"WaterSystems:NaturalGas", "SumOrAverage"},
279 {"Cogeneration:NaturalGas", "SumOrAverage"},
280 }},
281 {"End-Use Energy Consumption - Propane",
282 {
283 {"ExteriorEquipment:Propane", "SumOrAverage"},
284 {"Cooling:Propane", "SumOrAverage"},
285 {"Heating:Propane", "SumOrAverage"},
286 {"WaterSystems:Propane", "SumOrAverage"},
287 {"Cogeneration:Propane", "SumOrAverage"},
288 }},
289 {"Energy Consumption - Purchased Heating & Cooling",
290 {
291 {"DistrictCooling:Facility", "SumOrAverage"},
292 {"DistrictCooling:Facility", "Maximum"},
293 {"DistrictHeatingWater:Facility", "SumOrAverage"},
294 {"DistrictHeatingWater:Facility", "Maximum"},
295 }},
296 {"Energy Consumption - Coal & Gasoline",
297 {
298 {"COAL:Facility", "SumOrAverage"},
299 {"COAL:Facility", "Maximum"},
300 {"GASOLINE:Facility", "SumOrAverage"},
301 {"GASOLINE:Facility", "Maximum"},
302 }},
303 {"Energy Consumption - Diesel & Fuel Oil",
304 {
305 {"Diesel:Facility", "SumOrAverage"},
306 {"Diesel:Facility", "Maximum"},
307 {"FuelOilNo1:Facility", "SumOrAverage"},
308 {"FuelOilNo1:Facility", "Maximum"},
309 {"FuelOilNo2:Facility", "SumOrAverage"},
310 {"FuelOilNo2:Facility", "Maximum"},
311 }},
312 {"Energy Consumption - Electricity & Natural Gas",
313 {
314 {"Electricity:Facility", "SumOrAverage"},
315 {"Electricity:Facility", "Maximum"},
316 {"NaturalGas:Facility", "SumOrAverage"},
317 {"NaturalGas:Facility", "Maximum"},
318 }},
319 {"Energy Consumption - Electricity Generated & Propane",
320 {
321 {"ElectricityProduced:Facility", "SumOrAverage"},
322 {"ElectricityProduced:Facility", "Maximum"},
323 {"Propane:Facility", "SumOrAverage"},
324 {"Propane:Facility", "Maximum"},
325 }},
326 {"Fan Report",
327 {
328 {"Fan Electricity Energy", "SumOrAverage"},
329 {"Fan Rise in Air Temperature", "SumOrAverage"},
330 {"Fan Electricity Rate", "Maximum"},
331 {"Fan Rise in Air Temperature", "ValueWhenMaximumOrMinimum"},
332 }},
333 {"Generator Report",
334 {
335 {"Generator Produced Electricity Energy", "SumOrAverage"},
336 {"Generator Diesel Energy", "SumOrAverage"},
337 {"Generator NaturalGas Energy", "SumOrAverage"},
338 {"Generator Produced Electricity Energy", "HoursNonZero"},
339 {"Generator Total Heat Recovery", "SumOrAverage"},
340 {"Generator Jacket Heat Recovery Energy", "SumOrAverage"},
341 {"Generator Lube Heat Recovery Energy", "SumOrAverage"},
342 {"Generator Exhaust Heat Recovery Energy", "SumOrAverage"},
343 {"Generator Exhaust Air Temperature", "SumOrAverage"},
344 }},
345 {"Mechanical Ventilation Loads",
346 {
347 {"Zone Mechanical Ventilation No Load Heat Removal Energy", "SumOrAverage"},
348 {"Zone Mechanical Ventilation Cooling Load Increase Energy", "SumOrAverage"},
349 {"Zone Mechanical Ventilation Cooling Load Increase Due to Overheating Energy", "SumOrAverage"},
350 {"Zone Mechanical Ventilation Cooling Load Decrease Energy", "SumOrAverage"},
351 {"Zone Mechanical Ventilation No Load Heat Addition Energy", "SumOrAverage"},
352 {"Zone Mechanical Ventilation Heating Load Increase Energy", "SumOrAverage"},
353 {"Zone Mechanical Ventilation Heating Load Increase Due to Overcooling Energy", "SumOrAverage"},
354 {"Zone Mechanical Ventilation Heating Load Decrease Energy", "SumOrAverage"},
355 {"Zone Mechanical Ventilation Air Changes per Hour", "SumOrAverage"},
356 }},
357 {"Occupant Comfort Data Summary",
358 {
359 {"Zone People Occupant Count", "HoursNonZero"},
360 {"Zone Air Temperature", "SumOrAverageDuringHoursShown"},
361 {"Zone Air Relative Humidity", "SumOrAverageDuringHoursShown"},
362 {"Zone Thermal Comfort Fanger Model PMV", "SumOrAverageDuringHoursShown"},
363 }},
364 {"Outdoor Conditions Maximum Dew Point",
365 {
366 {"Site Outdoor Air Dewpoint Temperature", "Maximum"},
367 {"Site Outdoor Air Drybulb Temperature", "ValueWhenMaximumOrMinimum"},
368 {"Site Outdoor Air Wetbulb Temperature", "ValueWhenMaximumOrMinimum"},
369 {"Site Wind Speed", "ValueWhenMaximumOrMinimum"},
370 {"Site Sky Temperature", "ValueWhenMaximumOrMinimum"},
371 {"Site Diffuse Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
372 {"Site Direct Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
373 }},
374 {"Outdoor Conditions Maximum Drybulb",
375 {
376 {"Site Outdoor Air Drybulb Temperature", "Maximum"},
377 {"Site Outdoor Air Wetbulb Temperature", "ValueWhenMaximumOrMinimum"},
378 {"Site Outdoor Air Dewpoint Temperature", "ValueWhenMaximumOrMinimum"},
379 {"Site Wind Speed", "ValueWhenMaximumOrMinimum"},
380 {"Site Sky Temperature", "ValueWhenMaximumOrMinimum"},
381 {"Site Diffuse Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
382 {"Site Direct Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
383 }},
384 {"Outdoor Conditions Maximum Wetbulb",
385 {
386 {"Site Outdoor Air Wetbulb Temperature", "Maximum"},
387 {"Site Outdoor Air Drybulb Temperature", "ValueWhenMaximumOrMinimum"},
388 {"Site Outdoor Air Dewpoint Temperature", "ValueWhenMaximumOrMinimum"},
389 {"Site Wind Speed", "ValueWhenMaximumOrMinimum"},
390 {"Site Sky Temperature", "ValueWhenMaximumOrMinimum"},
391 {"Site Diffuse Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
392 {"Site Direct Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
393 }},
394 {"Outdoor Conditions Minimum Drybulb",
395 {
396 {"Site Outdoor Air Drybulb Temperature", "Minimum"},
397 {"Site Outdoor Air Wetbulb Temperature", "ValueWhenMaximumOrMinimum"},
398 {"Site Outdoor Air Dewpoint Temperature", "ValueWhenMaximumOrMinimum"},
399 {"Site Wind Speed", "ValueWhenMaximumOrMinimum"},
400 {"Site Sky Temperature", "ValueWhenMaximumOrMinimum"},
401 {"Site Diffuse Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
402 {"Site Direct Solar Radiation Rate per Area", "ValueWhenMaximumOrMinimum"},
403 }},
404 {"Outdoor Ground Conditions",
405 {
406 {"Site Ground Temperature", "SumOrAverage"},
407 {"Site Surface Ground Temperature", "SumOrAverage"},
408 {"Site Deep Ground Temperature", "SumOrAverage"},
409 {"Site Mains Water Temperature", "SumOrAverage"},
410 {"Site Ground Reflected Solar Radiation Rate per Area", "SumOrAverage"},
411 {"Snow On Ground", "SumOrAverage"},
412 }},
413 {"Peak Energy End-Use - Coal",
414 {
415 {"ExteriorEquipment:Coal", "Maximum"},
416 {"Heating:Coal", "Maximum"},
417 {"WaterSystems:Coal", "Maximum"},
418 }},
419 {"Peak Energy End-Use - Diesel",
420 {
421 {"ExteriorEquipment:Diesel", "Maximum"},
422 {"Cooling:Diesel", "Maximum"},
423 {"Heating:Diesel", "Maximum"},
424 {"WaterSystems:Diesel", "Maximum"},
425 {"Cogeneration:Diesel", "Maximum"},
426 }},
427 {"Peak Energy End-Use - Electricity Part 1",
428 {
429 {"InteriorLights:Electricity", "Maximum"},
430 {"ExteriorLights:Electricity", "Maximum"},
431 {"InteriorEquipment:Electricity", "Maximum"},
432 {"ExteriorEquipment:Electricity", "Maximum"},
433 {"Fans:Electricity", "Maximum"},
434 {"Pumps:Electricity", "Maximum"},
435 {"Heating:Electricity", "Maximum"},
436 }},
437 {"Peak Energy End-Use - Electricity Part 2",
438 {
439 {"Cooling:Electricity", "Maximum"},
440 {"HeatRejection:Electricity", "Maximum"},
441 {"Humidifier:Electricity", "Maximum"},
442 {"HeatRecovery:Electricity", "Maximum"},
443 {"WaterSystems:Electricity", "Maximum"},
444 {"Cogeneration:Electricity", "Maximum"},
445 }},
446 {"Peak Energy End-Use - Fuel Oil",
447 {
448 {"ExteriorEquipment:FuelOilNo1", "Maximum"},
449 {"Cooling:FuelOilNo1", "Maximum"},
450 {"Heating:FuelOilNo1", "Maximum"},
451 {"WaterSystems:FuelOilNo1", "Maximum"},
452 {"Cogeneration:FuelOilNo1", "Maximum"},
453 {"ExteriorEquipment:FuelOilNo2", "Maximum"},
454 {"Cooling:FuelOilNo2", "Maximum"},
455 {"Heating:FuelOilNo2", "Maximum"},
456 {"WaterSystems:FuelOilNo2", "Maximum"},
457 {"Cogeneration:FuelOilNo2", "Maximum"},
458 }},
459 {"Peak Energy End-Use - Gasoline",
460 {
461 {"ExteriorEquipment:Gasoline", "Maximum"},
462 {"Cooling:Gasoline", "Maximum"},
463 {"Heating:Gasoline", "Maximum"},
464 {"WaterSystems:Gasoline", "Maximum"},
465 {"Cogeneration:Gasoline", "Maximum"},
466 }},
467 {"Peak Energy End-Use - Natural Gas",
468 {
469 {"InteriorEquipment:NaturalGas", "Maximum"},
470 {"ExteriorEquipment:NaturalGas", "Maximum"},
471 {"Heating:NaturalGas", "Maximum"},
472 {"Cooling:NaturalGas", "Maximum"},
473 {"WaterSystems:NaturalGas", "Maximum"},
474 {"Cogeneration:NaturalGas", "Maximum"},
475 }},
476 {"Peak Energy End-Use - Propane",
477 {
478 {"ExteriorEquipment:Propane", "Maximum"},
479 {"Cooling:Propane", "Maximum"},
480 {"Heating:Propane", "Maximum"},
481 {"WaterSystems:Propane", "Maximum"},
482 {"Cogeneration:Propane", "Maximum"},
483 }},
484 {"Peak Space Gains",
485 {
486 {"Zone People Total Heating Energy", "Maximum"},
487 {"Zone Lights Total Heating Energy", "Maximum"},
488 {"Zone Electric Equipment Total Heating Energy", "Maximum"},
489 {"Zone Gas Equipment Total Heating Energy", "Maximum"},
490 {"Zone Hot Water Equipment Total Heating Energy", "Maximum"},
491 {"Zone Steam Equipment Total Heating Energy", "Maximum"},
492 {"Zone Other Equipment Total Heating Energy", "Maximum"},
493 {"Zone Infiltration Sensible Heat Gain Energy", "Maximum"},
494 {"Zone Infiltration Sensible Heat Loss Energy", "Maximum"},
495 }},
496 {"Plant Loop Demand Report",
497 {
498 {"Plant Supply Side Cooling Demand Rate", "SumOrAverage"},
499 {"Plant Supply Side Cooling Demand Rate", "Maximum"},
500 {"Plant Supply Side Heating Demand Rate", "SumOrAverage"},
501 {"Plant Supply Side Heating Demand Rate", "Maximum"},
502 }},
503 {"Pump Report",
504 {
505 {"Pump Electricity Energy", "SumOrAverage"},
506 {"Pump Fluid Heat Gain Energy", "SumOrAverage"},
507 {"Pump Electricity Rate", "Maximum"},
508 {"Pump Shaft Power", "ValueWhenMaximumOrMinimum"},
509 {"Pump Fluid Heat Gain Rate", "ValueWhenMaximumOrMinimum"},
510 {"Pump Outlet Temperature", "ValueWhenMaximumOrMinimum"},
511 {"Pump Mass Flow Rate", "ValueWhenMaximumOrMinimum"},
512 }},
513 {"Setpoints Not Met With Temperatures",
514 {
515 {"Zone Heating Setpoint Not Met Time", "HoursNonZero"},
516 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
517 {"Zone Heating Setpoint Not Met While Occupied Time", "HoursNonZero"},
518 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
519 {"Zone Cooling Setpoint Not Met Time", "HoursNonZero"},
520 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
521 {"Zone Cooling Setpoint Not Met While Occupied Time", "HoursNonZero"},
522 {"Zone Mean Air Temperature", "SumOrAverageDuringHoursShown"},
523 }},
524 {"Space Gain Components at Cooling Peak",
525 {
526 {"Zone Air System Sensible Cooling Rate", "Maximum"},
527 {"Zone People Total Heating Energy", "ValueWhenMaximumOrMinimum"},
528 {"Zone Lights Total Heating Energy", "ValueWhenMaximumOrMinimum"},
529 {"Zone Electric Equipment Total Heating Energy", "ValueWhenMaximumOrMinimum"},
530 {"Zone Gas Equipment Total Heating Energy", "ValueWhenMaximumOrMinimum"},
531 {"Zone Hot Water Equipment Total Heating Energy", "ValueWhenMaximumOrMinimum"},
532 {"Zone Steam Equipment Total Heating Energy", "ValueWhenMaximumOrMinimum"},
533 {"Zone Other Equipment Total Heating Energy", "ValueWhenMaximumOrMinimum"},
534 {"Zone Infiltration Sensible Heat Gain Energy", "ValueWhenMaximumOrMinimum"},
535 {"Zone Infiltration Sensible Heat Loss Energy", "ValueWhenMaximumOrMinimum"},
536 }},
537 {"Space Gains",
538 {
539 {"Zone People Total Heating Energy", "SumOrAverage"},
540 {"Zone Lights Total Heating Energy", "SumOrAverage"},
541 {"Zone Electric Equipment Total Heating Energy", "SumOrAverage"},
542 {"Zone Gas Equipment Total Heating Energy", "SumOrAverage"},
543 {"Zone Hot Water Equipment Total Heating Energy", "SumOrAverage"},
544 {"Zone Steam Equipment Total Heating Energy", "SumOrAverage"},
545 {"Zone Other Equipment Total Heating Energy", "SumOrAverage"},
546 {"Zone Infiltration Sensible Heat Gain Energy", "SumOrAverage"},
547 {"Zone Infiltration Sensible Heat Loss Energy", "SumOrAverage"},
548 }},
549 {"Tower Report",
550 {
551 {"Cooling Tower Fan Electricity Energy", "SumOrAverage"},
552 {"Cooling Tower Fan Electricity Energy", "HoursNonZero"},
553 {"Cooling Tower Fan Electricity Rate", "Maximum"},
554 {"Cooling Tower Heat Transfer Rate", "Maximum"},
555 {"Cooling Tower Inlet Temperature", "SumOrAverage"},
556 {"Cooling Tower Outlet Temperature", "SumOrAverage"},
557 {"Cooling Tower Mass Flow Rate", "SumOrAverage"},
558 }},
559 {"Unglazed Transpired Solar Collector Summary",
560 {
561 {"Solar Collector System Efficiency", "HoursNonZero"},
562 {"Solar Collector System Efficiency", "SumOrAverageDuringHoursShown"},
563 {"Solar Collector Outside Face Suction Velocity", "SumOrAverageDuringHoursShown"},
564 {"Solar Collector Sensible Heating Rate", "SumOrAverageDuringHoursShown"},
565 }},
566 {"Water Heater Report",
567 {
568 {"Water Heater Total Demand Heat Transfer Energy", "SumOrAverage"},
569 {"Water Heater Use Side Heat Transfer Energy", "SumOrAverage"},
570 {"Water Heater Burner Heating Energy", "SumOrAverage"},
571 {"Water Heater NaturalGas Energy", "SumOrAverage"},
572 {"Water Heater Total Demand Heat Transfer Energy", "HoursNonZero"},
573 {"Water Heater Loss Demand Energy", "SumOrAverage"},
574 {"Water Heater Heat Loss Energy", "SumOrAverage"},
575 {"Water Heater Tank Temperature", "SumOrAverage"},
576 {"Water Heater Heat Recovery Supply Energy", "SumOrAverage"},
577 {"Water Heater Source Side Heat Transfer Energy", "SumOrAverage"},
578 }},
579 {"Window AC Report",
580 {
581 {"Zone Window Air Conditioner Total Cooling Energy", "SumOrAverage"},
582 {"Zone Window Air Conditioner Electricity Energy", "SumOrAverage"},
583 {"Zone Window Air Conditioner Total Cooling Energy", "HoursNonZero"},
584 {"Zone Window Air Conditioner Sensible Cooling Energy", "SumOrAverage"},
585 {"Zone Window Air Conditioner Latent Cooling Energy", "SumOrAverage"},
586 {"Zone Window Air Conditioner Total Cooling Rate", "Maximum"},
587 {"Zone Window Air Conditioner Sensible Cooling Rate", "ValueWhenMaximumOrMinimum"},
588 {"Zone Window Air Conditioner Latent Cooling Rate", "ValueWhenMaximumOrMinimum"},
589 {"Zone Window Air Conditioner Electricity Rate", "ValueWhenMaximumOrMinimum"},
590 }},
591 {"Window Energy Report",
592 {
593 {"Surface Window Transmitted Solar Radiation Energy", "SumOrAverage"},
594 {"Surface Window Transmitted Beam Solar Radiation Energy", "SumOrAverage"},
595 {"Surface Window Transmitted Diffuse Solar Radiation Energy", "SumOrAverage"},
596 {"Surface Window Heat Gain Energy", "SumOrAverage"},
597 {"Surface Window Heat Loss Energy", "SumOrAverage"},
598 }},
599 {"Window Energy Zone Summary",
600 {
601 {"Zone Windows Total Heat Gain Energy", "SumOrAverage"},
602 {"Zone Windows Total Heat Loss Energy", "SumOrAverage"},
603 {"Zone Windows Total Transmitted Solar Radiation Energy", "SumOrAverage"},
604 {"Zone Exterior Windows Total Transmitted Beam Solar Radiation Energy", "SumOrAverage"},
605 {"Zone Exterior Windows Total Transmitted Diffuse Solar Radiation Energy", "SumOrAverage"},
606 {"Zone Interior Windows Total Transmitted Diffuse Solar Radiation Energy", "SumOrAverage"},
607 {"Zone Interior Windows Total Transmitted Beam Solar Radiation Energy", "SumOrAverage"},
608 }},
609 {"Window Report",
610 {
611 {"Surface Window Transmitted Solar Radiation Rate", "SumOrAverage"},
612 {"Surface Window Transmitted Beam Solar Radiation Rate", "SumOrAverage"},
613 {"Surface Window Transmitted Diffuse Solar Radiation Rate", "SumOrAverage"},
614 {"Surface Window Heat Gain Rate", "SumOrAverage"},
615 {"Surface Window Heat Loss Rate", "SumOrAverage"},
616 {"Surface Window Inside Face Glazing Condensation Status", "HoursNonZero"},
617 {"Surface Shading Device Is On Time Fraction", "HoursNonZero"},
618 {"Surface Storm Window On Off Status", "HoursNonZero"},
619 }},
620 {"Window Zone Summary",
621 {
622 {"Zone Windows Total Heat Gain Rate", "SumOrAverage"},
623 {"Zone Windows Total Heat Loss Rate", "SumOrAverage"},
624 {"Zone Windows Total Transmitted Solar Radiation Rate", "SumOrAverage"},
625 {"Zone Exterior Windows Total Transmitted Beam Solar Radiation Rate", "SumOrAverage"},
626 {"Zone Exterior Windows Total Transmitted Diffuse Solar Radiation Rate", "SumOrAverage"},
627 {"Zone Interior Windows Total Transmitted Diffuse Solar Radiation Rate", "SumOrAverage"},
628 {"Zone Interior Windows Total Transmitted Beam Solar Radiation Rate", "SumOrAverage"},
629 }},
630 {"Zone Cooling Summary",
631 {
632 {"Zone Air System Sensible Cooling Energy", "SumOrAverage"},
633 {"Zone Air System Sensible Cooling Rate", "Maximum"},
634 {"Site Outdoor Air Drybulb Temperature", "ValueWhenMaximumOrMinimum"},
635 {"Site Outdoor Air Wetbulb Temperature", "ValueWhenMaximumOrMinimum"},
636 {"Zone Total Internal Latent Gain Energy", "SumOrAverage"},
637 {"Zone Total Internal Latent Gain Energy", "Maximum"},
638 {"Site Outdoor Air Drybulb Temperature", "ValueWhenMaximumOrMinimum"},
639 {"Site Outdoor Air Wetbulb Temperature", "ValueWhenMaximumOrMinimum"},
640 }},
641 {"Zone Electric Summary",
642 {
643 {"Zone Lights Electricity Energy", "SumOrAverage"},
644 {"Zone Lights Electricity Energy", "Maximum"},
645 {"Zone Electric Equipment Electricity Energy", "SumOrAverage"},
646 {"Zone Electric Equipment Electricity Energy", "Maximum"},
647 }},
648 {"Zone Heating Summary",
649 {
650 {"Zone Air System Sensible Heating Energy", "SumOrAverage"},
651 {"Zone Air System Sensible Heating Rate", "Maximum"},
652 {"Site Outdoor Air Drybulb Temperature", "ValueWhenMaximumOrMinimum"},
653 }},
654 {"Zone Temperature Oscillation Report",
655 {
656 {"Zone Oscillating Temperatures Time", "HoursNonZero"},
657 {"Zone People Occupant Count", "SumOrAverageDuringHoursShown"},
658 }},
659
403/408
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 59 times.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 9 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 15 taken 1 time.
✓ Branch 18 taken 1 time.
✓ Branch 21 taken 1 time.
✓ Branch 24 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
✓ Branch 36 taken 1 time.
✓ Branch 39 taken 1 time.
✓ Branch 42 taken 1 time.
✓ Branch 45 taken 1 time.
✓ Branch 48 taken 1 time.
✓ Branch 51 taken 1 time.
✓ Branch 54 taken 1 time.
✓ Branch 57 taken 1 time.
✓ Branch 60 taken 1 time.
✓ Branch 63 taken 1 time.
✓ Branch 66 taken 1 time.
✓ Branch 69 taken 1 time.
✓ Branch 72 taken 1 time.
✓ Branch 75 taken 1 time.
✓ Branch 78 taken 1 time.
✓ Branch 81 taken 1 time.
✓ Branch 84 taken 1 time.
✓ Branch 87 taken 1 time.
✓ Branch 90 taken 1 time.
✓ Branch 93 taken 1 time.
✓ Branch 96 taken 1 time.
✓ Branch 99 taken 1 time.
✓ Branch 102 taken 1 time.
✓ Branch 105 taken 1 time.
✓ Branch 108 taken 1 time.
✓ Branch 111 taken 1 time.
✓ Branch 114 taken 1 time.
✓ Branch 117 taken 1 time.
✓ Branch 120 taken 1 time.
✓ Branch 123 taken 1 time.
✓ Branch 126 taken 1 time.
✓ Branch 129 taken 1 time.
✓ Branch 132 taken 1 time.
✓ Branch 135 taken 1 time.
✓ Branch 138 taken 1 time.
✓ Branch 141 taken 1 time.
✓ Branch 144 taken 1 time.
✓ Branch 147 taken 1 time.
✓ Branch 150 taken 1 time.
✓ Branch 153 taken 1 time.
✓ Branch 156 taken 1 time.
✓ Branch 159 taken 1 time.
✓ Branch 162 taken 1 time.
✓ Branch 165 taken 1 time.
✓ Branch 168 taken 1 time.
✓ Branch 171 taken 1 time.
✓ Branch 174 taken 1 time.
✓ Branch 177 taken 1 time.
✓ Branch 180 taken 1 time.
✓ Branch 183 taken 1 time.
✓ Branch 186 taken 1 time.
✓ Branch 189 taken 1 time.
✓ Branch 192 taken 1 time.
✓ Branch 195 taken 1 time.
✓ Branch 198 taken 1 time.
✓ Branch 201 taken 1 time.
✓ Branch 204 taken 1 time.
✓ Branch 207 taken 1 time.
✓ Branch 210 taken 1 time.
✓ Branch 213 taken 1 time.
✓ Branch 216 taken 1 time.
✓ Branch 219 taken 1 time.
✓ Branch 222 taken 1 time.
✓ Branch 225 taken 1 time.
✓ Branch 228 taken 1 time.
✓ Branch 231 taken 1 time.
✓ Branch 234 taken 1 time.
✓ Branch 237 taken 1 time.
✓ Branch 240 taken 1 time.
✓ Branch 243 taken 1 time.
✓ Branch 246 taken 1 time.
✓ Branch 249 taken 1 time.
✓ Branch 252 taken 1 time.
✓ Branch 255 taken 1 time.
✓ Branch 258 taken 1 time.
✓ Branch 261 taken 1 time.
✓ Branch 264 taken 1 time.
✓ Branch 267 taken 1 time.
✓ Branch 270 taken 1 time.
✓ Branch 273 taken 1 time.
✓ Branch 276 taken 1 time.
✓ Branch 279 taken 1 time.
✓ Branch 282 taken 1 time.
✓ Branch 285 taken 1 time.
✓ Branch 288 taken 1 time.
✓ Branch 291 taken 1 time.
✓ Branch 294 taken 1 time.
✓ Branch 297 taken 1 time.
✓ Branch 300 taken 1 time.
✓ Branch 303 taken 1 time.
✓ Branch 306 taken 1 time.
✓ Branch 309 taken 1 time.
✓ Branch 312 taken 1 time.
✓ Branch 315 taken 1 time.
✓ Branch 318 taken 1 time.
✓ Branch 321 taken 1 time.
✓ Branch 324 taken 1 time.
✓ Branch 327 taken 1 time.
✓ Branch 330 taken 1 time.
✓ Branch 333 taken 1 time.
✓ Branch 336 taken 1 time.
✓ Branch 339 taken 1 time.
✓ Branch 342 taken 1 time.
✓ Branch 345 taken 1 time.
✓ Branch 348 taken 1 time.
✓ Branch 351 taken 1 time.
✓ Branch 354 taken 1 time.
✓ Branch 357 taken 1 time.
✓ Branch 360 taken 1 time.
✓ Branch 363 taken 1 time.
✓ Branch 366 taken 1 time.
✓ Branch 369 taken 1 time.
✓ Branch 372 taken 1 time.
✓ Branch 375 taken 1 time.
✓ Branch 378 taken 1 time.
✓ Branch 381 taken 1 time.
✓ Branch 384 taken 1 time.
✓ Branch 387 taken 1 time.
✓ Branch 390 taken 1 time.
✓ Branch 393 taken 1 time.
✓ Branch 396 taken 1 time.
✓ Branch 399 taken 1 time.
✓ Branch 402 taken 1 time.
✓ Branch 405 taken 1 time.
✓ Branch 408 taken 1 time.
✓ Branch 411 taken 1 time.
✓ Branch 414 taken 1 time.
✓ Branch 417 taken 1 time.
✓ Branch 420 taken 1 time.
✓ Branch 423 taken 1 time.
✓ Branch 426 taken 1 time.
✓ Branch 429 taken 1 time.
✓ Branch 432 taken 1 time.
✓ Branch 435 taken 1 time.
✓ Branch 438 taken 1 time.
✓ Branch 441 taken 1 time.
✓ Branch 444 taken 1 time.
✓ Branch 447 taken 1 time.
✓ Branch 450 taken 1 time.
✓ Branch 453 taken 1 time.
✓ Branch 456 taken 1 time.
✓ Branch 459 taken 1 time.
✓ Branch 462 taken 1 time.
✓ Branch 465 taken 1 time.
✓ Branch 468 taken 1 time.
✓ Branch 471 taken 1 time.
✓ Branch 474 taken 1 time.
✓ Branch 477 taken 1 time.
✓ Branch 480 taken 1 time.
✓ Branch 483 taken 1 time.
✓ Branch 486 taken 1 time.
✓ Branch 489 taken 1 time.
✓ Branch 492 taken 1 time.
✓ Branch 495 taken 1 time.
✓ Branch 498 taken 1 time.
✓ Branch 501 taken 1 time.
✓ Branch 504 taken 1 time.
✓ Branch 507 taken 1 time.
✓ Branch 510 taken 1 time.
✓ Branch 513 taken 1 time.
✓ Branch 516 taken 1 time.
✓ Branch 519 taken 1 time.
✓ Branch 522 taken 1 time.
✓ Branch 525 taken 1 time.
✓ Branch 528 taken 1 time.
✓ Branch 531 taken 1 time.
✓ Branch 534 taken 1 time.
✓ Branch 537 taken 1 time.
✓ Branch 540 taken 1 time.
✓ Branch 543 taken 1 time.
✓ Branch 546 taken 1 time.
✓ Branch 549 taken 1 time.
✓ Branch 552 taken 1 time.
✓ Branch 555 taken 1 time.
✓ Branch 558 taken 1 time.
✓ Branch 561 taken 1 time.
✓ Branch 564 taken 1 time.
✓ Branch 567 taken 1 time.
✓ Branch 570 taken 1 time.
✓ Branch 573 taken 1 time.
✓ Branch 576 taken 1 time.
✓ Branch 579 taken 1 time.
✓ Branch 582 taken 1 time.
✓ Branch 585 taken 1 time.
✓ Branch 588 taken 1 time.
✓ Branch 591 taken 1 time.
✓ Branch 594 taken 1 time.
✓ Branch 597 taken 1 time.
✓ Branch 600 taken 1 time.
✓ Branch 603 taken 1 time.
✓ Branch 606 taken 1 time.
✓ Branch 609 taken 1 time.
✓ Branch 612 taken 1 time.
✓ Branch 615 taken 1 time.
✓ Branch 618 taken 1 time.
✓ Branch 621 taken 1 time.
✓ Branch 624 taken 1 time.
✓ Branch 627 taken 1 time.
✓ Branch 630 taken 1 time.
✓ Branch 633 taken 1 time.
✓ Branch 636 taken 1 time.
✓ Branch 639 taken 1 time.
✓ Branch 642 taken 1 time.
✓ Branch 645 taken 1 time.
✓ Branch 648 taken 1 time.
✓ Branch 651 taken 1 time.
✓ Branch 654 taken 1 time.
✓ Branch 657 taken 1 time.
✓ Branch 660 taken 1 time.
✓ Branch 663 taken 1 time.
✓ Branch 666 taken 1 time.
✓ Branch 669 taken 1 time.
✓ Branch 672 taken 1 time.
✓ Branch 675 taken 1 time.
✓ Branch 678 taken 1 time.
✓ Branch 681 taken 1 time.
✓ Branch 684 taken 1 time.
✓ Branch 687 taken 1 time.
✓ Branch 690 taken 1 time.
✓ Branch 693 taken 1 time.
✓ Branch 696 taken 1 time.
✓ Branch 699 taken 1 time.
✓ Branch 702 taken 1 time.
✓ Branch 705 taken 1 time.
✓ Branch 708 taken 1 time.
✓ Branch 711 taken 1 time.
✓ Branch 714 taken 1 time.
✓ Branch 717 taken 1 time.
✓ Branch 720 taken 1 time.
✓ Branch 723 taken 1 time.
✓ Branch 726 taken 1 time.
✓ Branch 729 taken 1 time.
✓ Branch 732 taken 1 time.
✓ Branch 735 taken 1 time.
✓ Branch 738 taken 1 time.
✓ Branch 741 taken 1 time.
✓ Branch 744 taken 1 time.
✓ Branch 747 taken 1 time.
✓ Branch 750 taken 1 time.
✓ Branch 753 taken 1 time.
✓ Branch 756 taken 1 time.
✓ Branch 759 taken 1 time.
✓ Branch 762 taken 1 time.
✓ Branch 765 taken 1 time.
✓ Branch 768 taken 1 time.
✓ Branch 771 taken 1 time.
✓ Branch 774 taken 1 time.
✓ Branch 777 taken 1 time.
✓ Branch 780 taken 1 time.
✓ Branch 783 taken 1 time.
✓ Branch 786 taken 1 time.
✓ Branch 789 taken 1 time.
✓ Branch 792 taken 1 time.
✓ Branch 795 taken 1 time.
✓ Branch 798 taken 1 time.
✓ Branch 801 taken 1 time.
✓ Branch 804 taken 1 time.
✓ Branch 807 taken 1 time.
✓ Branch 810 taken 1 time.
✓ Branch 813 taken 1 time.
✓ Branch 816 taken 1 time.
✓ Branch 819 taken 1 time.
✓ Branch 822 taken 1 time.
✓ Branch 825 taken 1 time.
✓ Branch 828 taken 1 time.
✓ Branch 831 taken 1 time.
✓ Branch 834 taken 1 time.
✓ Branch 837 taken 1 time.
✓ Branch 840 taken 1 time.
✓ Branch 843 taken 1 time.
✓ Branch 846 taken 1 time.
✓ Branch 849 taken 1 time.
✓ Branch 852 taken 1 time.
✓ Branch 855 taken 1 time.
✓ Branch 858 taken 1 time.
✓ Branch 861 taken 1 time.
✓ Branch 864 taken 1 time.
✓ Branch 867 taken 1 time.
✓ Branch 870 taken 1 time.
✓ Branch 873 taken 1 time.
✓ Branch 876 taken 1 time.
✓ Branch 879 taken 1 time.
✓ Branch 882 taken 1 time.
✓ Branch 885 taken 1 time.
✓ Branch 888 taken 1 time.
✓ Branch 891 taken 1 time.
✓ Branch 894 taken 1 time.
✓ Branch 897 taken 1 time.
✓ Branch 900 taken 1 time.
✓ Branch 903 taken 1 time.
✓ Branch 906 taken 1 time.
✓ Branch 909 taken 1 time.
✓ Branch 912 taken 1 time.
✓ Branch 915 taken 1 time.
✓ Branch 918 taken 1 time.
✓ Branch 921 taken 1 time.
✓ Branch 924 taken 1 time.
✓ Branch 927 taken 1 time.
✓ Branch 930 taken 1 time.
✓ Branch 933 taken 1 time.
✓ Branch 936 taken 1 time.
✓ Branch 939 taken 1 time.
✓ Branch 942 taken 1 time.
✓ Branch 945 taken 1 time.
✓ Branch 948 taken 1 time.
✓ Branch 951 taken 1 time.
✓ Branch 954 taken 1 time.
✓ Branch 957 taken 1 time.
✓ Branch 960 taken 1 time.
✓ Branch 963 taken 1 time.
✓ Branch 966 taken 1 time.
✓ Branch 969 taken 1 time.
✓ Branch 972 taken 1 time.
✓ Branch 975 taken 1 time.
✓ Branch 978 taken 1 time.
✓ Branch 981 taken 1 time.
✓ Branch 984 taken 1 time.
✓ Branch 987 taken 1 time.
✓ Branch 990 taken 1 time.
✓ Branch 993 taken 1 time.
✓ Branch 996 taken 1 time.
✓ Branch 999 taken 1 time.
✓ Branch 1002 taken 1 time.
✓ Branch 1005 taken 1 time.
✓ Branch 1008 taken 1 time.
✓ Branch 1011 taken 1 time.
✓ Branch 1014 taken 1 time.
✓ Branch 1017 taken 1 time.
✓ Branch 1020 taken 1 time.
✓ Branch 1023 taken 1 time.
✓ Branch 1026 taken 1 time.
✓ Branch 1029 taken 1 time.
✓ Branch 1032 taken 1 time.
✓ Branch 1035 taken 1 time.
✓ Branch 1038 taken 1 time.
✓ Branch 1041 taken 1 time.
✓ Branch 1044 taken 1 time.
✓ Branch 1047 taken 1 time.
✓ Branch 1050 taken 1 time.
✓ Branch 1053 taken 1 time.
✓ Branch 1056 taken 1 time.
✓ Branch 1059 taken 1 time.
✓ Branch 1062 taken 1 time.
✓ Branch 1065 taken 1 time.
✓ Branch 1068 taken 1 time.
✓ Branch 1071 taken 1 time.
✓ Branch 1074 taken 1 time.
✓ Branch 1077 taken 1 time.
✓ Branch 1080 taken 1 time.
✓ Branch 1083 taken 1 time.
✓ Branch 1086 taken 1 time.
✓ Branch 1089 taken 1 time.
✓ Branch 1092 taken 1 time.
✓ Branch 1095 taken 1 time.
✓ Branch 1098 taken 1 time.
✓ Branch 1101 taken 1 time.
✓ Branch 1104 taken 1 time.
✓ Branch 1107 taken 1 time.
✓ Branch 1110 taken 1 time.
✓ Branch 1113 taken 1 time.
✓ Branch 1116 taken 1 time.
✓ Branch 1119 taken 1 time.
✓ Branch 1122 taken 1 time.
✓ Branch 1125 taken 1 time.
✓ Branch 1128 taken 1 time.
✓ Branch 1131 taken 1 time.
✓ Branch 1134 taken 1 time.
✓ Branch 1137 taken 1 time.
✓ Branch 1140 taken 1 time.
✓ Branch 1143 taken 1 time.
✓ Branch 1146 taken 1 time.
✓ Branch 1149 taken 1 time.
✓ Branch 1152 taken 1 time.
✓ Branch 1155 taken 1 time.
✓ Branch 1158 taken 1 time.
✓ Branch 1161 taken 1 time.
✓ Branch 1164 taken 1 time.
✓ Branch 1167 taken 1 time.
✓ Branch 1170 taken 1 time.
✓ Branch 1173 taken 1 time.
✓ Branch 1176 taken 1 time.
✓ Branch 1179 taken 1 time.
✓ Branch 1182 taken 1 time.
✓ Branch 1185 taken 1 time.
✓ Branch 1188 taken 1 time.
✓ Branch 1191 taken 1 time.
✓ Branch 1194 taken 1 time.
✓ Branch 1197 taken 1 time.
✓ Branch 1201 taken 59 times.
✓ Branch 1202 taken 1 time.
✗ Branch 1263 not taken.
✗ Branch 1264 not taken.
✗ Branch 1325 not taken.
✗ Branch 1326 not taken.
973 };
660 60 return standard_reports;
661 855 }
662
663 1 const std::vector<std::string>& OutputTableMonthly_Impl::validStandardReportNames() {
664 1 static std::vector<std::string> result = [] {
665 1 std::vector<std::string> result;
666
1/1
✓ Branch 1 taken 1 time.
1 auto const& standard_reports = OutputTableMonthly_Impl::standardReports();
667
1/1
✓ Branch 2 taken 1 time.
1 result.reserve(standard_reports.size());
668
2/2
✓ Branch 2 taken 1 time.
✓ Branch 7 taken 1 time.
60 std::transform(standard_reports.cbegin(), standard_reports.cend(), std::back_inserter(result), [](const auto& x) { return x.first; });
669 1 return result;
670
3/7
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
1 }();
671 1 return result;
672 }
673
674 59 const std::vector<MonthlyVariableGroup>& OutputTableMonthly_Impl::getGroupsForStandardReport(const std::string& standardReportName) {
675
1/1
✓ Branch 1 taken 59 times.
59 auto const& standard_reports = OutputTableMonthly_Impl::standardReports();
676
1/1
✓ Branch 3 taken 59 times.
59 auto it = std::find_if(standard_reports.cbegin(), standard_reports.cend(),
677 1770 [&standardReportName](const auto& x) { return openstudio::istringEqual(standardReportName, x.first); });
678
1/2
✗ Branch 2 not taken.
✓ Branch 3 taken 59 times.
59 if (it == standard_reports.cend()) {
679 ✗ LOG_AND_THROW("Could not find " << standardReportName << ", check OutputTableMonthly::standardReportNames");
680 }
681 118 return it->second;
682 }
683
684 159 OutputTableMonthly_Impl::OutputTableMonthly_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
685 159 : ModelObject_Impl(idfObject, model, keepHandle) {
686
4/6
✓ Branch 1 taken 159 times.
✓ Branch 4 taken 159 times.
✓ Branch 7 taken 159 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 159 times.
✗ Branch 13 not taken.
159 OS_ASSERT(idfObject.iddObject().type() == OutputTableMonthly::iddObjectType());
687 159 }
688
689 ✗ OutputTableMonthly_Impl::OutputTableMonthly_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
690 ✗ : ModelObject_Impl(other, model, keepHandle) {
691 ✗ OS_ASSERT(other.iddObject().type() == OutputTableMonthly::iddObjectType());
692 ✗ }
693
694 27 OutputTableMonthly_Impl::OutputTableMonthly_Impl(const OutputTableMonthly_Impl& other, Model_Impl* model, bool keepHandle)
695 27 : ModelObject_Impl(other, model, keepHandle) {}
696
697 ✗ const std::vector<std::string>& OutputTableMonthly_Impl::outputVariableNames() const {
698 ✗ static std::vector<std::string> result;
699 ✗ if (result.empty()) {
700 }
701 ✗ return result;
702 }
703
704 ✗ IddObjectType OutputTableMonthly_Impl::iddObjectType() const {
705 ✗ return OutputTableMonthly::iddObjectType();
706 }
707
708 30 int OutputTableMonthly_Impl::digitsAfterDecimal() const {
709
1/1
✓ Branch 1 taken 30 times.
30 boost::optional<int> value = getInt(OS_Output_Table_MonthlyFields::DigitsAfterDecimal, true);
710
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 30 times.
✗ Branch 4 not taken.
30 OS_ASSERT(value);
711
1/1
✓ Branch 1 taken 30 times.
60 return value.get();
712 }
713
714 258 bool OutputTableMonthly_Impl::setDigitsAfterDecimal(int digitsAfterDecimal) {
715 258 const bool result = setInt(OS_Output_Table_MonthlyFields::DigitsAfterDecimal, digitsAfterDecimal);
716 258 return result;
717 }
718
719 8056 unsigned int OutputTableMonthly_Impl::numberofMonthlyVariableGroups() const {
720 8056 return numExtensibleGroups();
721 }
722
723 876 std::vector<MonthlyVariableGroup> OutputTableMonthly_Impl::monthlyVariableGroups() const {
724 876 std::vector<MonthlyVariableGroup> result;
725
726
3/3
✓ Branch 1 taken 4441 times.
✓ Branch 3 taken 3565 times.
✓ Branch 4 taken 876 times.
4441 for (unsigned i = 0; i < numberofMonthlyVariableGroups(); ++i) {
727
728
1/1
✓ Branch 1 taken 3565 times.
3565 boost::optional<MonthlyVariableGroup> group_ = getMonthlyVariableGroup(i);
729
730 // getMonthlyVariableGroup is responsible for handling error and issuing Error log messages.
731 // Here we add it to the result array if it worked, and if it didn't, we keep going
732 // We just issue a message about index so user can delete it easily
733
1/2
✓ Branch 0 taken 3565 times.
✗ Branch 1 not taken.
3565 if (group_) {
734
2/2
✓ Branch 1 taken 3565 times.
✓ Branch 5 taken 3565 times.
3565 result.push_back(std::move(*group_));
735 } else {
736 ✗ LOG(Error, briefDescription() << " has an invalid MonthlyVariableGroup group at index " << i);
737 }
738 3565 }
739
740 876 return result;
741 ✗ }
742
743 848 boost::optional<unsigned> OutputTableMonthly_Impl::monthlyVariableGroupIndex(const MonthlyVariableGroup& monthlyVariableGroup) const {
744
1/1
✓ Branch 1 taken 848 times.
848 const std::vector<MonthlyVariableGroup> groups = monthlyVariableGroups();
745
1/1
✓ Branch 3 taken 848 times.
848 auto it = std::find(groups.cbegin(), groups.cend(), monthlyVariableGroup);
746
2/2
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 845 times.
848 if (it != groups.end()) {
747
1/1
✓ Branch 2 taken 3 times.
6 return static_cast<unsigned>(std::distance(groups.cbegin(), it));
748 }
749 845 return boost::none;
750 848 }
751
752 3570 boost::optional<MonthlyVariableGroup> OutputTableMonthly_Impl::getMonthlyVariableGroup(unsigned groupIndex) const {
753
3/3
✓ Branch 1 taken 3570 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3569 times.
3570 if (groupIndex >= numberofMonthlyVariableGroups()) {
754
13/13
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 32 taken 1 time.
✓ Branch 35 taken 1 time.
✓ Branch 38 taken 1 time.
1 LOG(Error, "Asked to get MonthlyVariableGroup with index " << groupIndex << ", but " << briefDescription() << " has just "
755 << numberofMonthlyVariableGroups() << " MonthlyVariableGroups.");
756 1 return boost::none;
757 }
758
2/2
✓ Branch 1 taken 3569 times.
✓ Branch 4 taken 3569 times.
3569 auto group = getExtensibleGroup(groupIndex).cast<ModelExtensibleGroup>();
759
760
1/1
✓ Branch 1 taken 3569 times.
3569 boost::optional<std::string> variableOrMeterName_ = group.getString(OS_Output_Table_MonthlyExtensibleFields::VariableorMeterName);
761
1/1
✓ Branch 1 taken 3569 times.
3569 boost::optional<std::string> aggregationType_ = group.getString(OS_Output_Table_MonthlyExtensibleFields::AggregationTypeforVariableorMeter);
762
763
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3569 times.
3569 if (!variableOrMeterName_) {
764 ✗ LOG(Error, "Could not retrieve VariableorMeterName_ for extensible group " << group.groupIndex() << ".");
765 ✗ return boost::none;
766 }
767
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3569 times.
3569 if (!aggregationType_) {
768 ✗ LOG(Error, "Could not retrieve Aggregation Type for extensible group " << group.groupIndex() << ".");
769 ✗ return boost::none;
770 }
771
772
4/4
✓ Branch 1 taken 3569 times.
✓ Branch 6 taken 3569 times.
✓ Branch 11 taken 3569 times.
✓ Branch 14 taken 3569 times.
3569 return {MonthlyVariableGroup(std::move(*variableOrMeterName_), std::move(*aggregationType_))};
773 3569 }
774
775 1353 bool OutputTableMonthly_Impl::addMonthlyVariableGroup(const MonthlyVariableGroup& monthlyVariableGroup) {
776
3/3
✓ Branch 1 taken 1353 times.
✓ Branch 3 taken 846 times.
✓ Branch 4 taken 507 times.
1353 if (!monthlyVariableGroup.isAggregationTypeAdvanced()) {
777
1/1
✓ Branch 1 taken 846 times.
846 boost::optional<unsigned> existingIndex_ = monthlyVariableGroupIndex(monthlyVariableGroup);
778
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 844 times.
846 if (existingIndex_) {
779
9/9
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✓ Branch 20 taken 2 times.
✓ Branch 23 taken 2 times.
✓ Branch 26 taken 2 times.
2 LOG(Warn, "For " << briefDescription()
780 << ", MonthlyVariableGroup already exists and is not an Advanced Aggregation Type: " << monthlyVariableGroup);
781 2 return false;
782 }
783 }
784
1/1
✓ Branch 2 taken 1351 times.
1351 IdfExtensibleGroup eg = pushExtensibleGroup(StringVector());
785
2/2
✓ Branch 1 taken 1351 times.
✓ Branch 4 taken 1351 times.
1351 eg.setString(OS_Output_Table_MonthlyExtensibleFields::VariableorMeterName, monthlyVariableGroup.variableOrMeterName());
786
2/2
✓ Branch 1 taken 1351 times.
✓ Branch 4 taken 1351 times.
1351 eg.setString(OS_Output_Table_MonthlyExtensibleFields::AggregationTypeforVariableorMeter, monthlyVariableGroup.aggregationType());
787 1351 return true;
788 1351 }
789
790 61 bool OutputTableMonthly_Impl::addMonthlyVariableGroups(const std::vector<MonthlyVariableGroup>& monthlyVariableGroups) {
791 61 bool result = true;
792
793
2/2
✓ Branch 5 taken 401 times.
✓ Branch 6 taken 61 times.
462 for (const auto& monthlyVariableGroup : monthlyVariableGroups) {
794
1/1
✓ Branch 1 taken 401 times.
401 bool thisResult = addMonthlyVariableGroup(monthlyVariableGroup);
795
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 401 times.
401 if (!thisResult) {
796 ✗ LOG(Error, "Could not add MonthlyVariableGroup " << monthlyVariableGroup << " to " << briefDescription() << ". Continuing with others.");
797 // OS_ASSERT(false);
798 // result = false;
799 }
800 }
801
802 61 return result;
803 }
804
805 3 bool OutputTableMonthly_Impl::removeMonthlyVariableGroup(unsigned groupIndex) {
806 3 bool result = false;
807
808 3 unsigned int num = numberofMonthlyVariableGroups();
809
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
3 if (groupIndex < num) {
810
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 getObject<ModelObject>().eraseExtensibleGroup(groupIndex);
811 1 result = true;
812 }
813 3 return result;
814 }
815
816 1 void OutputTableMonthly_Impl::removeAllMonthlyVariableGroups() {
817
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 getObject<ModelObject>().clearExtensibleGroups();
818 1 }
819
820 } // namespace detail
821
822 159 OutputTableMonthly::OutputTableMonthly(const Model& model) : ModelObject(OutputTableMonthly::iddObjectType(), model) {
823
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 159 times.
✗ Branch 5 not taken.
159 OS_ASSERT(getImpl<detail::OutputTableMonthly_Impl>());
824 159 bool ok = true;
825
1/1
✓ Branch 1 taken 159 times.
159 ok = setDigitsAfterDecimal(2);
826
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 159 times.
✗ Branch 3 not taken.
159 OS_ASSERT(ok);
827 159 }
828
829 5869 std::vector<std::string> OutputTableMonthly::aggregationTypeValues() {
830
5/5
✓ Branch 1 taken 5869 times.
✓ Branch 4 taken 5869 times.
✓ Branch 7 taken 5869 times.
✓ Branch 10 taken 5869 times.
✓ Branch 13 taken 5869 times.
5869 IddObject obj = IddFactory::instance().getObject(iddObjectType()).get();
831 // Return IddKeyNames in extensible portion
832
2/2
✓ Branch 1 taken 5869 times.
✓ Branch 4 taken 5869 times.
11738 return getIddKeyNames(obj, obj.numFields() + OS_Output_Table_MonthlyExtensibleFields::AggregationTypeforVariableorMeter);
833 5869 }
834
835 ✗ std::vector<std::string> OutputTableMonthly::validAggregationTypes() {
836 ✗ return aggregationTypeValues();
837 }
838
839 5867 bool OutputTableMonthly::isAggregationTypeValid(const std::string& aggregationType) {
840
1/1
✓ Branch 1 taken 5867 times.
5867 const auto vals = aggregationTypeValues();
841
1/1
✓ Branch 3 taken 5867 times.
5867 return std::find_if(vals.cbegin(), vals.cend(),
842 10865 [&aggregationType](const std::string& choice) { return openstudio::istringEqual(aggregationType, choice); })
843 17601 != vals.cend();
844 5867 }
845
846 1355 bool OutputTableMonthly::isAggregationTypeAdvanced(const std::string& aggregationType) {
847 1355 auto const& vals = advancedAggregationTypes();
848
1/1
✓ Branch 3 taken 1355 times.
1355 return std::find_if(vals.cbegin(), vals.cend(),
849 3943 [&aggregationType](const std::string& choice) { return openstudio::istringEqual(aggregationType, choice); })
850 2710 != vals.cend();
851 }
852
853 1355 const std::vector<std::string>& OutputTableMonthly::advancedAggregationTypes() {
854
3/4
✓ Branch 0 taken 12 times.
✓ Branch 1 taken 1343 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
1355 static std::vector<std::string> result;
855
2/2
✓ Branch 1 taken 12 times.
✓ Branch 2 taken 1343 times.
1355 if (result.empty()) {
856
2/4
✓ Branch 0 taken 48 times.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
60 result = {"ValueWhenMaximumOrMinimum", "SumOrAverageDuringHoursShown", "MaximumDuringHoursShown", "MinimumDuringHoursShown"};
857 }
858 1355 return result;
859 36 }
860
861 13787 IddObjectType OutputTableMonthly::iddObjectType() {
862
1/1
✓ Branch 1 taken 13787 times.
13787 return {IddObjectType::OS_Output_Table_Monthly};
863 }
864
865 30 int OutputTableMonthly::digitsAfterDecimal() const {
866
1/1
✓ Branch 3 taken 30 times.
30 return getImpl<detail::OutputTableMonthly_Impl>()->digitsAfterDecimal();
867 }
868
869 258 bool OutputTableMonthly::setDigitsAfterDecimal(int digitsAfterDecimal) {
870
1/1
✓ Branch 3 taken 258 times.
258 return getImpl<detail::OutputTableMonthly_Impl>()->setDigitsAfterDecimal(digitsAfterDecimal);
871 }
872
873 28 std::vector<MonthlyVariableGroup> OutputTableMonthly::monthlyVariableGroups() const {
874
1/1
✓ Branch 3 taken 28 times.
28 return getImpl<detail::OutputTableMonthly_Impl>()->monthlyVariableGroups();
875 }
876
877 41 unsigned int OutputTableMonthly::numberofMonthlyVariableGroups() const {
878
1/1
✓ Branch 3 taken 41 times.
41 return getImpl<detail::OutputTableMonthly_Impl>()->numberofMonthlyVariableGroups();
879 }
880
881 2 boost::optional<unsigned> OutputTableMonthly::monthlyVariableGroupIndex(const MonthlyVariableGroup& monthlyVariableGroup) const {
882
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::OutputTableMonthly_Impl>()->monthlyVariableGroupIndex(monthlyVariableGroup);
883 }
884
885 5 boost::optional<MonthlyVariableGroup> OutputTableMonthly::getMonthlyVariableGroup(unsigned groupIndex) const {
886
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::OutputTableMonthly_Impl>()->getMonthlyVariableGroup(groupIndex);
887 }
888
889 952 bool OutputTableMonthly::addMonthlyVariableGroup(const MonthlyVariableGroup& monthlyVariableGroup) {
890
1/1
✓ Branch 3 taken 952 times.
952 return getImpl<detail::OutputTableMonthly_Impl>()->addMonthlyVariableGroup(monthlyVariableGroup);
891 }
892
893 945 bool OutputTableMonthly::addMonthlyVariableGroup(std::string variableOrMeterName, std::string aggregationType) {
894
2/2
✓ Branch 5 taken 945 times.
✓ Branch 8 taken 945 times.
945 return addMonthlyVariableGroup(MonthlyVariableGroup(std::move(variableOrMeterName), std::move(aggregationType)));
895 }
896
897 61 bool OutputTableMonthly::addMonthlyVariableGroups(const std::vector<MonthlyVariableGroup>& monthlyVariableGroups) {
898
1/1
✓ Branch 3 taken 61 times.
61 return getImpl<detail::OutputTableMonthly_Impl>()->addMonthlyVariableGroups(monthlyVariableGroups);
899 }
900
901 3 bool OutputTableMonthly::removeMonthlyVariableGroup(unsigned groupIndex) {
902
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::OutputTableMonthly_Impl>()->removeMonthlyVariableGroup(groupIndex);
903 }
904
905 1 void OutputTableMonthly::removeAllMonthlyVariableGroups() {
906
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::OutputTableMonthly_Impl>()->removeAllMonthlyVariableGroups();
907 1 }
908
909 /// @cond
910
1/1
✓ Branch 3 taken 87 times.
87 OutputTableMonthly::OutputTableMonthly(std::shared_ptr<detail::OutputTableMonthly_Impl> impl) : ModelObject(std::move(impl)) {}
911 /// @endcond
912
913 1 const std::vector<std::string>& OutputTableMonthly::validStandardReportNames() {
914 1 return detail::OutputTableMonthly_Impl::validStandardReportNames();
915 }
916 59 OutputTableMonthly OutputTableMonthly::fromStandardReports(const Model& model, const std::string& standardReportName) {
917 59 const auto& groups = detail::OutputTableMonthly_Impl::getGroupsForStandardReport(standardReportName);
918 59 OutputTableMonthly result(model);
919
1/1
✓ Branch 1 taken 59 times.
59 result.setName(standardReportName);
920
1/1
✓ Branch 1 taken 59 times.
59 result.addMonthlyVariableGroups(groups);
921 59 return result;
922 ✗ }
923
924 } // namespace model
925 } // namespace openstudio
926