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

Method scheduleWeeks

src/model/ScheduleYear.cpp:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 std::vector<ScheduleWeek> ScheduleYear_Impl::scheduleWeeks() const {
96 std::vector<ScheduleWeek> result;
97
98 for (const ModelExtensibleGroup& group : castVector<ModelExtensibleGroup>(this->extensibleGroups())) {
99 OptionalWorkspaceObject object = group.getTarget(2);
100 if (object) {
101 boost::optional<ScheduleWeek> schedule = object->optionalCast<ScheduleWeek>();
102
103 if (schedule) {
104 result.push_back(*schedule);
105 } else {
106 LOG(Error, "Could not read schedule " << group.groupIndex() << " in " << briefDescription() << ".");
107 }
108 }
109 }
110
111 return result;
112 }
113
114 boost::optional<ScheduleWeek> ScheduleYear_Impl::getScheduleWeek(const openstudio::Date& date) const {
115 YearDescription yd = this->model().getUniqueModelObject<YearDescription>();

Callers 8

getScheduleWeekMethod · 0.95
addScheduleWeekMethod · 0.95
adjustScheduleFunction · 0.80
deepScheduleYearCloneFunction · 0.80
TEST_FFunction · 0.80
translateScheduleYearMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 4

extensibleGroupsMethod · 0.80
groupIndexMethod · 0.80
getTargetMethod · 0.45
push_backMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64