public abstract class RawScore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Assignment |
assignment
The assignment for which the student got the raw score.
|
double |
score
The actual raw score for the gradable item.
|
(package private) Student |
student
The student to whom the score belongs.
|
Constructor and Description |
---|
RawScore() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract Assignment |
getAssignment()
Gets the gradable item associated with this score.
|
(package private) abstract double |
getScore()
Gets the raw numerical score.
|
(package private) abstract Student |
getStudent()
Gets the student associated with this score.
|
(package private) abstract void |
setScore(double score)
Sets the raw numerical score.
|
Student student
Assignment assignment
public double score
abstract Student getStudent()
post: // // The returned student must be this raw score's student. // return.equals(this.student);
abstract Assignment getAssignment()
post: // // The returned assignment must be this raw score's assignment. // return.equals(this.assignment);
abstract double getScore()
post: // // The returned score must be equal to this raw score's score. // return == this.score;
abstract void setScore(double score)
score
- new numerical score.
post: // // This raw score's score must equal the parameter. // this.score' == score;