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

Method daylightingDeviceTubular

src/model/SubSurface.cpp:1171–1182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169 }
1170
1171 boost::optional<DaylightingDeviceTubular> SubSurface_Impl::daylightingDeviceTubular() const {
1172 boost::optional<DaylightingDeviceTubular> result;
1173
1174 std::vector<DaylightingDeviceTubular> tubulars =
1175 getObject<ModelObject>().getModelObjectSources<DaylightingDeviceTubular>(DaylightingDeviceTubular::iddObjectType());
1176 if (tubulars.size() == 1) {
1177 result = tubulars[0];
1178 } else if (tubulars.size() > 1) {
1179 result = tubulars[0];
1180 }
1181 return result;
1182 }
1183
1184 bool SubSurface_Impl::allowDaylightingDeviceLightWell() const {
1185 bool result = false;

Callers 5

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