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

Method getScheduleTypeKeys

src/model/FanSystemModel.cpp:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 std::vector<ScheduleTypeKey> FanSystemModel_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
147 std::vector<ScheduleTypeKey> result;
148 UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
149 UnsignedVector::const_iterator b(fieldIndices.begin());
150 UnsignedVector::const_iterator e(fieldIndices.end());
151 if (std::find(b, e, OS_Fan_SystemModelFields::AvailabilityScheduleName) != e) {
152 result.push_back(ScheduleTypeKey("FanSystemModel", "Availability"));
153 }
154 return result;
155 }
156
157 std::vector<ModelObject> FanSystemModel_Impl::children() const {
158 std::vector<ModelObject> result;

Callers

nothing calls this directly

Calls 5

beginMethod · 0.80
ScheduleTypeKeyClass · 0.70
handleMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected