registrationsystem.model
Class EnrolledIn

java.lang.Object
  extended by registrationsystem.model.EnrolledIn

public class EnrolledIn
extends java.lang.Object

Representation for information about enrollment of a student in a course


Constructor Summary
EnrolledIn(Course course, Student student)
          Constructor
 
Method Summary
 Course getCourse()
          Accessor for the course
 java.lang.String getGrade()
          Accessor for the grade
 Student getStudent()
          Accessor for tje student
 void setGrade(java.lang.String grade)
          Mutator for the grade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnrolledIn

public EnrolledIn(Course course,
                  Student student)
Constructor

Parameters:
student - the student this enrollment represents
course - the course the student is enrolled in
Method Detail

getCourse

public Course getCourse()
Accessor for the course

Returns:
the course this enrollment is for

getStudent

public Student getStudent()
Accessor for tje student

Returns:
the student this enrollment is for

getGrade

public java.lang.String getGrade()
Accessor for the grade

Returns:
the grade for the student/course this enrollment represents - null if no grade recorded as yet

setGrade

public void setGrade(java.lang.String grade)
Mutator for the grade

Parameters:
grade - new grade