|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.grader.GradeBook
public class GradeBook
This class represents a grade book that contains information about a CS399J class: the assignments, the students and their grades.
| Constructor Summary | |
|---|---|
GradeBook(String className)
Creates a new GradeBook for a given class |
|
| Method Summary | |
|---|---|
void |
addAssignment(Assignment assign)
Adds an Assignment to this class |
void |
addStudent(Student student)
Adds a Student to this GradeBook |
boolean |
containsStudent(String id)
Returns whether or not this grade book contains a student with the given id. |
Assignment |
getAssignment(String name)
Returns the Assignment of a given name |
Set<String> |
getAssignmentNames()
Returns the names of the assignments for this class |
String |
getClassName()
Returns the name of the class represented by this GradeBook |
int |
getCRN()
Returns the Course Request Number (CRN) for this grade book. |
Student |
getStudent(String id)
Returns the Student with the given id. |
Set<String> |
getStudentIds()
Returns the ids of all of the students in this class |
boolean |
isDirty()
Returns true if this GradeBook has been
modified. |
static void |
main(String[] args)
Main program that is used to create a GradeBook |
void |
makeClean()
Marks this GradeBook as being clean |
void |
removeStudent(Student student)
Removes a Student from this GradeBook |
void |
setCRN(int crn)
Sets the Course Request Number (CRN) for this grade book. |
void |
setDirty(boolean dirty)
Sets the dirtiness of this GradeBook |
String |
toString()
Returns a brief textual description of this GradeBook. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GradeBook(String className)
GradeBook for a given class
| Method Detail |
|---|
public String getClassName()
GradeBook
public Set<String> getAssignmentNames()
public void setCRN(int crn)
public int getCRN()
public Assignment getAssignment(String name)
Assignment of a given name
public void addAssignment(Assignment assign)
Assignment to this class
public Set<String> getStudentIds()
public Student getStudent(String id)
Student with the given id. If a student
with that name does not exist, a new Student is
created.
public void addStudent(Student student)
Student to this GradeBook
containsStudent(java.lang.String)public void removeStudent(Student student)
Student from this GradeBook
public boolean containsStudent(String id)
public void setDirty(boolean dirty)
GradeBook
public void makeClean()
GradeBook as being clean
public boolean isDirty()
true if this GradeBook has been
modified.
public String toString()
GradeBook.
toString in class Objectpublic static void main(String[] args)
GradeBook
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||