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

Method electricEquipmentPowerPerPerson

src/model/SpaceType.cpp:965–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963 }
964
965 boost::optional<double> SpaceType_Impl::electricEquipmentPowerPerPerson() const {
966 double result(0.0);
967 for (const ElectricEquipment& equipment : electricEquipment()) {
968 OptionalDouble temp = equipment.powerPerPerson();
969 if (temp) {
970 result += temp.get();
971 } else {
972 return boost::none;
973 }
974 }
975 return result;
976 }
977
978 bool SpaceType_Impl::setElectricEquipmentPowerPerPerson(boost::optional<double> electricEquipmentPowerPerPerson) {
979 if (!electricEquipmentPowerPerPerson) {

Callers

nothing calls this directly

Calls 2

powerPerPersonMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected