edu.pdx.cs399J.junit
Class Student

java.lang.Object
  extended by edu.pdx.cs399J.junit.Student

public class Student
extends Object

This class represents a student that may enroll in a section of a course.


Constructor Summary
Student(String id)
          Creates a new Student with a given id
 
Method Summary
 Grade getGrade(Section section)
          Returns the grade this student received in a given sesion of a course.
 Map<Section,Grade> getGrades()
          Returns the grades that this student received
 String getId()
          Returns the id of this student
 void setGrade(Section section, Grade grade)
          Sets the grade this student got in a given section of a course
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Student

public Student(String id)
Creates a new Student with a given id

Method Detail

setGrade

public void setGrade(Section section,
                     Grade grade)
Sets the grade this student got in a given section of a course


getGrade

public Grade getGrade(Section section)
Returns the grade this student received in a given sesion of a course. Returns null if the student was never enrolled in the course or is no grade was assigned.


getGrades

public Map<Section,Grade> getGrades()
Returns the grades that this student received


getId

public String getId()
Returns the id of this student



Copyright © 2000-2009 Portland State University. All Rights Reserved.