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

Method setLightingPowerPerPerson

src/model/SpaceType.cpp:813–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 }
812
813 bool SpaceType_Impl::setLightingPowerPerPerson(boost::optional<double> lightingPowerPerPerson) {
814 if (!lightingPowerPerPerson) {
815 return false;
816 }
817 OptionalLights templateLights;
818 LightsVector myLights = lights();
819 if (!myLights.empty()) {
820 templateLights = myLights[0];
821 }
822 return setLightingPowerPerPerson(*lightingPowerPerPerson, templateLights);
823 }
824
825 bool SpaceType_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson, const boost::optional<Lights>& templateLights) {
826 if (lightingPowerPerPerson < 0.0) {

Callers

nothing calls this directly

Calls 7

lightsDefinitionMethod · 0.80
emptyMethod · 0.45
makeUniqueMethod · 0.45
setSpaceTypeMethod · 0.45
setWattsperPersonMethod · 0.45
setMultiplierMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected