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

Method daylightingDeviceLightWell

src/model/SubSurface.cpp:1196–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194 }
1195
1196 boost::optional<DaylightingDeviceLightWell> SubSurface_Impl::daylightingDeviceLightWell() const {
1197 boost::optional<DaylightingDeviceLightWell> result;
1198
1199 std::vector<DaylightingDeviceLightWell> lightwells =
1200 getObject<ModelObject>().getModelObjectSources<DaylightingDeviceLightWell>(DaylightingDeviceLightWell::iddObjectType());
1201 if (lightwells.size() == 1) {
1202 result = lightwells[0];
1203 } else if (lightwells.size() > 1) {
1204 result = lightwells[0];
1205 }
1206 return result;
1207 }
1208
1209 boost::optional<DaylightingDeviceLightWell> SubSurface_Impl::addDaylightingDeviceLightWell() const {
1210 boost::optional<DaylightingDeviceLightWell> result = this->daylightingDeviceLightWell();

Callers 6

childrenMethod · 0.95
setSubSurfaceTypeMethod · 0.95
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

iddObjectTypeFunction · 0.70
sizeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64