scheduler.db.components
Class Course

java.lang.Object
  extended by scheduler.db.components.Course

public class Course
extends java.lang.Object


Constructor Summary
Course()
           
 
Method Summary
 void addCourse(Course newCourse)
          This method adds a course to the database.
 void editCourse(Course oldCourse, Course newCourse)
          This method edits a course alread in the database.
 boolean isValidCourse(Course course)
          Returns whether this is a valid course.
 boolean isValidCourseDB()
          Returns whether the current database is valid.
 void removeCourse(Course course)
          This method removes an alread-existing course from the database.
 int sumOfSections()
          Returns how many sections are available for this course.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Course

public Course()
Method Detail

addCourse

public void addCourse(Course newCourse)
This method adds a course to the database.


editCourse

public void editCourse(Course oldCourse,
                       Course newCourse)
This method edits a course alread in the database.


removeCourse

public void removeCourse(Course course)
This method removes an alread-existing course from the database.


isValidCourse

public boolean isValidCourse(Course course)
Returns whether this is a valid course.


isValidCourseDB

public boolean isValidCourseDB()
Returns whether the current database is valid. '


sumOfSections

public int sumOfSections()
Returns how many sections are available for this course. '