kkevlar / section-searcher

Project for CSC 308 and 309
1 stars 0 forks source link

classDB method required for loading a plan #103

Closed SamuelEllertson closed 5 years ago

SamuelEllertson commented 5 years ago

Need ClassDB method that can take a course object with a null sections list and return a list of sections for that course

kkevlar commented 5 years ago

@SamuelEllertson

It might be a better decision for this method to take a string of a course name and for the ClassDB method to construct / return a constructed class with full sections.

This may be able to implement a factory pattern if we call ClassDB a ClassFactory or have a class factory use a method with this functionality. #67 #80

Course courseInflate(String name)

The plan loader can then use a method with this footprint.

bwlyday commented 5 years ago

Method signature is "public Course getCourse(String courseName)" It searches through the a ClassDB object's list of courses for a course with a matching name and returns it.