Class Course

java.lang.Object
  |
  +--Course

public class Course
extends java.lang.Object

Holds data obtained from Banner about a particular course a student has taken. When initially returned from the transcript parser, the courseId will hold the typical Dowling course format (for example, "CSC175"). This must subsequently be translated before it is passed into the processor system.


Constructor Summary
Course()
          Constructs a Course object.
 
Method Summary
 java.lang.String getCourseId()
          Retrieves the associated course id as stored in the local database.
 char getCourseLetter()
          Retrieves the associated course letter.
 java.lang.String getCourseNumber()
          Retrieves the associated course number.
 int getCreditHours()
          Retrieves the associated credits hours earned.
 java.lang.String getDiscipline()
          Retrieves the associated discipline.
 java.lang.String getDowlingCourseCode()
          Retrieves the associated dowling course code.
 java.lang.String getGrade()
          Retrieves the associated grade.
 void setCourseId(java.lang.String courseId)
          Sets the courseId for this course.
 void setCourseNumber(java.lang.String cn)
          Sets the course number porition of the courseId and splits off the course letter.
 void setCreditHours(java.lang.String creditHours)
          Sets the credit hours (credits) obtained in taking the course.
 void setDiscipline(java.lang.String subject)
          Sets the discipline portion of the courseId.
 void setGrade(java.lang.String grd)
          Sets the grade obtained in taking the course.
 java.lang.String toString()
          Prints out a string representation of the class fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Course

public Course()
Constructs a Course object.

Method Detail

getCourseId

public java.lang.String getCourseId()
Retrieves the associated course id as stored in the local database.

Returns:
A String representing the course id. -1 if unrecognized course.

getDiscipline

public java.lang.String getDiscipline()
Retrieves the associated discipline.

Returns:
A String representing the discipline.

getCourseNumber

public java.lang.String getCourseNumber()
Retrieves the associated course number.

Returns:
A String representing the course number.

getDowlingCourseCode

public java.lang.String getDowlingCourseCode()
Retrieves the associated dowling course code.

Returns:
A String representing the dowling course code.

getCreditHours

public int getCreditHours()
Retrieves the associated credits hours earned.

Returns:
An int representing the number of credits hours earned.

getCourseLetter

public char getCourseLetter()
Retrieves the associated course letter.

Returns:
A char representing the course letter.

getGrade

public java.lang.String getGrade()
Retrieves the associated grade.

Returns:
A String representing the grade. It will be that parsed directly from the transcript, for example A+, W, F, T, and so on.

setCourseId

public void setCourseId(java.lang.String courseId)
Sets the courseId for this course. Used to set the translated courseId.

Parameters:
courseId - The string to store as the courseId.

setDiscipline

public void setDiscipline(java.lang.String subject)
Sets the discipline portion of the courseId. Used prior to translating the courseId.

Parameters:
subject - The subject of the course.

setCourseNumber

public void setCourseNumber(java.lang.String cn)
Sets the course number porition of the courseId and splits off the course letter. Used to set the course number prior to translating the courseId.

Parameters:
cn - The course code of the course.

setCreditHours

public void setCreditHours(java.lang.String creditHours)
Sets the credit hours (credits) obtained in taking the course.

Parameters:
creditHours - Number of credit hours for this course.

setGrade

public void setGrade(java.lang.String grd)
Sets the grade obtained in taking the course.

Parameters:
grd - The letter grade earned in the particular course.

toString

public java.lang.String toString()
Prints out a string representation of the class fields.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of the instance.