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

Method getScheduleTypeKeys

src/model/AvailabilityManagerOptimumStart.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 std::vector<ScheduleTypeKey> AvailabilityManagerOptimumStart_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
52 std::vector<ScheduleTypeKey> result;
53 UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
54 UnsignedVector::const_iterator b(fieldIndices.begin());
55 UnsignedVector::const_iterator e(fieldIndices.end());
56 if (std::find(b, e, OS_AvailabilityManager_OptimumStartFields::ApplicabilitySchedule) != e) {
57 result.push_back(ScheduleTypeKey("AvailabilityManagerOptimumStart", "Applicability Schedule"));
58 }
59 if (std::find(b, e, OS_AvailabilityManager_OptimumStartFields::FanSchedule) != e) {
60 result.push_back(ScheduleTypeKey("AvailabilityManagerOptimumStart", "Fan Schedule"));
61 }
62 return result;
63 }
64
65 Schedule AvailabilityManagerOptimumStart_Impl::applicabilitySchedule() const {
66 boost::optional<Schedule> value = optionalApplicabilitySchedule();

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