| 1507 | } |
| 1508 | |
| 1509 | double Space_Impl::lightingPowerPerPerson() const { |
| 1510 | double result(0.0); |
| 1511 | double area = floorArea(); |
| 1512 | double numPeople = numberOfPeople(); |
| 1513 | |
| 1514 | for (const Lights& light : lights()) { |
| 1515 | result += light.getPowerPerPerson(area, numPeople); |
| 1516 | } |
| 1517 | for (const Luminaire& luminaire : luminaires()) { |
| 1518 | result += luminaire.getPowerPerPerson(numPeople); |
| 1519 | } |
| 1520 | |
| 1521 | if (OptionalSpaceType spaceType = this->spaceType()) { |
| 1522 | for (const Lights& light : spaceType->lights()) { |
| 1523 | result += light.getPowerPerPerson(area, numPeople); |
| 1524 | } |
| 1525 | for (const Luminaire& luminaire : spaceType->luminaires()) { |
| 1526 | result += luminaire.getPowerPerPerson(numPeople); |
| 1527 | } |
| 1528 | } |
| 1529 | |
| 1530 | return result; |
| 1531 | } |
| 1532 | |
| 1533 | bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson) { |
| 1534 | OptionalLights templateLights; |
nothing calls this directly
no test coverage detected