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

Method numberofPeopleSchedule

src/model/People.cpp:255–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 boost::optional<Schedule> People_Impl::numberofPeopleSchedule() const {
256 boost::optional<Schedule> result = getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_PeopleFields::NumberofPeopleScheduleName);
257 if (!result) {
258 // search upwards
259 OptionalSpace space = this->space();
260 OptionalSpaceType spaceType = this->spaceType();
261 if (space) {
262 result = space->getDefaultSchedule(DefaultScheduleType::NumberofPeopleSchedule);
263 } else if (spaceType) {
264 result = spaceType->getDefaultSchedule(DefaultScheduleType::NumberofPeopleSchedule);
265 }
266 }
267 return result;
268 }
269
270 bool People_Impl::isNumberofPeopleScheduleDefaulted() const {
271 return isEmpty(OS_PeopleFields::NumberofPeopleScheduleName);

Callers 9

hardApplySchedulesMethod · 0.95
runMethod · 0.45
osm2iso.rbFile · 0.45
TEST_FFunction · 0.45
translateThermalZoneMethod · 0.45
translatePeopleMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
translateModelMethod · 0.45

Calls 3

spaceMethod · 0.45
spaceTypeMethod · 0.45
getDefaultScheduleMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36