public Schedule(Section sec, Classroom clas, int start, int end, int day) { section = sec; classroom = clas; startHour = start; endHour = end; whichDay = day; }
public Schedule(Section sec, Classroom clas, int start, int end, int day) { section = sec; classroom = clas; startHour = start; endHour = end; whichDay = day; sec.hourList.Add(this); //need to sync across the classes. clas.scheduleList.Add(this); }
public Section(int id, int prefday, int prefhour, Course course, Classroom classRoom, Professor sectionProfessor,String name) { this.ID = id; this.Name=name; this.prefferedDay = prefday; this.prefferedHour = prefhour; this.SectionCourse = course; this.PrefferedClassroom = classRoom; this.SectionProfessor = sectionProfessor; }
private Schedule chooseRandomSection(Classroom clas) { Random rndElement = new Random(); int index; if (clas.scheduleList.Count > 1) { index = rndElement.Next(0, clas.scheduleList.Count - 1); return clas.scheduleList[index]; } else return null; }