Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void createTerm() {
- Random random = new Random();
- List<Course> courses = this.catalog.getCourse();
- List<Instructor> instructors = this.faculty.getInstructors();
- for(int i = 0; i < 21; i++) {
- Course course = courses.get(random.nextInt(courses.size()));
- Instructor instructor = instructors.get(random.nextInt(instructors.size()));
- List<Timeslot> timeslots = new ArrayList<>();
- timeslots.add(timeslotsLists.get(random.nextInt(timeslotsLists.size())));
- term.addSection(new Traditional(course, instructor, timeslots));
- term.addSection(new Hybrid(course, instructor, timeslotsLists.get(random.nextInt(timeslotsLists.size()))));
- term.addSection(new Online(course, instructor));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement