Package edu.pdx.cs410J.grader.gradebook
Class Grade
java.lang.Object
edu.pdx.cs410J.grader.gradebook.NotableImpl
edu.pdx.cs410J.grader.gradebook.Grade
- All Implemented Interfaces:
Notable
This class represent the grade a student got on an assignment.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The assignment is not completestatic final double
Some work has been submitted, but no grade has been assigned -
Constructor Summary
ConstructorDescriptionGrade
(Assignment project, double score) Creates aGrade
for a given assignment -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the assignment that thisGrade
is for.double
getScore()
Returns the score the student received on the assignment.boolean
boolean
static void
A main program that creates/edits a student's grade.noteSubmission
(LocalDateTime submissionTime) void
setScore
(double score) Sets the score the student received on the assignment.toString()
Returns a brief textual description of thisGrade
Methods inherited from class edu.pdx.cs410J.grader.gradebook.NotableImpl
addNote, getNotes, isDirty, makeClean, removeNote, setDirty
-
Field Details
-
INCOMPLETE
The assignment is not complete- See Also:
-
NO_GRADE
Some work has been submitted, but no grade has been assigned- See Also:
-
-
Constructor Details
-
Grade
Creates aGrade
for a given assignment -
Grade
-
-
Method Details
-
getAssignmentName
Returns the name of the assignment that thisGrade
is for. -
getScore
Returns the score the student received on the assignment. -
isIncomplete
-
setScore
Sets the score the student received on the assignment. -
toString
Returns a brief textual description of thisGrade
-
main
A main program that creates/edits a student's grade. -
isNotGraded
-
getSubmissionTimes
-
noteSubmission
-
noteSubmission
-
getSubmissionInfos
-