예제 #1
0
        // Constructor that uses a course id
        public Course(int courseID)
        {
            CourseInfo DB = CourseInfo.Create();

            this.courseID  = courseID;
            this.professor = DB.getProf(courseID);

            this.time = DB.getTime(courseID);
            this.day  = DB.getDay(courseID);

            this.building = DB.getBuilding(courseID);
            this.room     = DB.getRoom(courseID);

            this.courseDept = DB.getCourseDept(courseID);
            this.courseNum  = DB.getCourseNum(courseID);
            this.courseSect = DB.getCourseSect(courseID);
            this.courseCode = DB.getCourseCode(courseID);

            this.shortName = DB.getShortName(courseID);
            this.longName  = DB.getLongName(courseID);

            this.enrollment = DB.getEnrollment(courseID);
            this.capacity   = DB.getCapacity(courseID);

            this.credits = DB.getCredits(courseID);

            this.allInfo = DB.getAllInfo(courseID);
        }