MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / electricalStorage

Method electricalStorage

src/model/GeneratorFuelCell.cpp:306–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305
306 GeneratorFuelCellElectricalStorage GeneratorFuelCell_Impl::electricalStorage() const {
307 boost::optional<GeneratorFuelCellElectricalStorage> value = optionalElectricalStorage();
308 if (!value) {
309 LOG_AND_THROW(" does not have an Electrical Storage attached.");
310 }
311 return value.get();
312 }
313
314 GeneratorFuelCellInverter GeneratorFuelCell_Impl::inverter() const {
315 boost::optional<GeneratorFuelCellInverter> value = optionalInverter();

Callers 5

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36