|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.grader.NotableImpl
edu.pdx.cs399J.grader.Grade
public class Grade
This class represent the grade a student got on an assignment.
| Field Summary | |
|---|---|
static double |
INCOMPLETE
The assignment is not complete |
static double |
NO_GRADE
Some work has been submitted, but no grade has been assigned |
| Constructor Summary | |
|---|---|
Grade(String assignmentName,
double score)
Creates a Grade for a given assignment |
|
| Method Summary | |
|---|---|
String |
getAssignmentName()
Returns the name of the assignment that this Grade
is for. |
double |
getScore()
Returns the score the student received on the assignment. |
static void |
main(String[] args)
A main program that creates/edits a student's grade. |
void |
setScore(double score)
Sets the score the student received on the assignment. |
String |
toString()
Returns a brief textual description of this Grade |
| Methods inherited from class edu.pdx.cs399J.grader.NotableImpl |
|---|
addNote, getNotes, isDirty, makeClean, removeNote, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double INCOMPLETE
public static final double NO_GRADE
| Constructor Detail |
|---|
public Grade(String assignmentName,
double score)
Grade for a given assignment
| Method Detail |
|---|
public String getAssignmentName()
Grade
is for.
public double getScore()
public void setScore(double score)
public String toString()
Grade
toString in class Objectpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||