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

Method setLightingPowerPerFloorArea

src/model/SpaceType.cpp:747–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745 }
746
747 bool SpaceType_Impl::setLightingPowerPerFloorArea(boost::optional<double> lightingPowerPerFloorArea) {
748 if (!lightingPowerPerFloorArea) {
749 return false;
750 }
751 OptionalLights templateLights;
752 LightsVector myLights = lights();
753 if (!myLights.empty()) {
754 templateLights = myLights[0];
755 }
756 return setLightingPowerPerFloorArea(*lightingPowerPerFloorArea, templateLights);
757 }
758
759 bool SpaceType_Impl::setLightingPowerPerFloorArea(double lightingPowerPerFloorArea, const boost::optional<Lights>& templateLights) {
760 if (lightingPowerPerFloorArea < 0.0) {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected