model
Class EnrolledIn

java.lang.Object
  extended by 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 course
 java.lang.String getGrade()
          Accessor for grade
 Student getStudent()
          Accessor for student
 void setGrade(java.lang.String grade)
          Mutator for 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 course

Returns:
the course this enrollment is for

getStudent

public Student getStudent()
Accessor for student

Returns:
the student this enrollment is for

getGrade

public java.lang.String getGrade()
Accessor for 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 grade

Parameters:
grade - new grade