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