|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.junit.Student
public class Student
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 |
|---|
public Student(String id)
Student with a given id
| Method Detail |
|---|
public void setGrade(Section section,
Grade grade)
public Grade getGrade(Section section)
null if the student was never
enrolled in the course or is no grade was assigned.
public Map<Section,Grade> getGrades()
public String getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||