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

Method gasEquipmentPowerPerPerson

src/model/SpaceType.cpp:1103–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1101 }
1102
1103 boost::optional<double> SpaceType_Impl::gasEquipmentPowerPerPerson() const {
1104 double result(0.0);
1105 for (const GasEquipment& equipment : gasEquipment()) {
1106 OptionalDouble temp = equipment.powerPerPerson();
1107 if (temp) {
1108 result += temp.get();
1109 } else {
1110 return boost::none;
1111 }
1112 }
1113 return result;
1114 }
1115
1116 bool SpaceType_Impl::setGasEquipmentPowerPerPerson(boost::optional<double> gasEquipmentPowerPerPerson) {
1117 if (!gasEquipmentPowerPerPerson) {

Callers

nothing calls this directly

Calls 2

powerPerPersonMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected