Ejemplo n.º 1
0
        public Scheduler(Student Student, ProgramSequence MasterSequence)
        {
            this.Student            = Student;
            this.MasterSequence     = MasterSequence;
            LocalSequence           = ProgramSequence.DeepClone(MasterSequence);
            CoursesTaken            = new List <Course>();
            CoursesToTake           = new List <string>();
            PrereqsMissing          = new List <Course>();
            ScheduledSectionsFall   = new List <Section>();
            ScheduledSectionsWinter = new List <Section>();

            foreach (CourseTaken s in db.Students.Find(Student.StudentId).CourseTakens.ToList())
            {
                CoursesTaken.Add(s.Section.Course);
            }
        }
Ejemplo n.º 2
0
        public Programs()
        {
            SOEN_General = new ProgramSequence("SOEN", "General");

            /*
             * Program: Software Engineering
             * Option: General
             */
            SOEN_General.Year(1)
            //Fall
            .AddCourse("COMP 232", Semester.Fall)
            .AddCourse("COMP 248", Semester.Fall)
            .AddCourse("ENGR 201", Semester.Fall)
            .AddCourse("ENGR 213", Semester.Fall)
            .AddCourse("GENERAL", Semester.Fall)

            //Winter
            .AddCourse("COMP 249", Semester.Winter)
            .AddCourse("ENGR 233", Semester.Winter)
            .AddCourse("SOEN 228", Semester.Winter)
            .AddCourse("SOEN 287", Semester.Winter)
            .AddCourse("SCIENCE1", Semester.Winter);

            SOEN_General.Year(2)
            //Fall
            .AddCourse("COMP 348", Semester.Fall)
            .AddCourse("COMP 352", Semester.Fall)
            .AddCourse("ENCS 282", Semester.Fall)
            .AddCourse("ENGR 202", Semester.Fall)
            .AddCourse("SCIENCE2", Semester.Fall)

            //Winter
            .AddCourse("COMP 346", Semester.Winter)
            .AddCourse("ELEC 275", Semester.Winter)
            .AddCourse("ENGR 371", Semester.Winter)
            .AddCourse("SOEN 331", Semester.Winter)
            .AddCourse("SOEN 341", Semester.Winter);

            SOEN_General.Year(3)
            //Fall
            .AddCourse("COMP 335", Semester.Fall)
            .AddCourse("SOEN 342", Semester.Fall)
            .AddCourse("SOEN 343", Semester.Fall)
            .AddCourse("SOEN 384", Semester.Fall)
            .AddCourse("ENGR 391", Semester.Fall)

            //Winter
            .AddCourse("SOEN 344", Semester.Winter)
            .AddCourse("SOEN 345", Semester.Winter)
            .AddCourse("SOEN 357", Semester.Winter)
            .AddCourse("SOEN 390", Semester.Winter)
            .AddCourse("ELECTIVE1", Semester.Winter);

            SOEN_General.Year(4)
            //Fall
            .AddCourse("SOEN 490_1", Semester.Fall)
            .AddCourse("ENGR 301", Semester.Fall)
            .AddCourse("SOEN 321", Semester.Fall)
            .AddCourse("ELECTIVE2", Semester.Fall)
            .AddCourse("ELECTIVE3", Semester.Fall)
            //Winter
            .AddCourse("SOEN 385", Semester.Winter)
            .AddCourse("ENGR 392", Semester.Winter)
            .AddCourse("SOEN 490_2", Semester.Winter)
            .AddCourse("ELECTIVE4", Semester.Winter)
            .AddCourse("ELECTIVE5", Semester.Winter);
        }