Exemple #1
0
 public Schedule(Section sec, Classroom clas, int start, int end, int day)
 {
     section = sec;
     classroom = clas;
     startHour = start;
     endHour = end;
     whichDay = day;
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }