public class CourseGradeRecord extends AbstractGradeRecord
| Modifier and Type | Field and Description |
|---|---|
static Comparator<CourseGradeRecord> |
calcComparator |
dateRecorded, gradableObject, graderId, id, studentId, version| Constructor and Description |
|---|
CourseGradeRecord()
Default no-arg constructor
|
CourseGradeRecord(CourseGrade courseGrade,
String studentId)
The graderId and dateRecorded properties will be set explicitly by the grade manager before the database is updated.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getAutoCalculatedGrade() |
Double |
getCalculatedPointsEarned() |
CourseGrade |
getCourseGrade()
Convenience method to get the correctly cast CourseGrade that this CourseGradeRecord references.
|
String |
getDisplayGrade() |
String |
getEnteredGrade() |
Double |
getGradeAsPercentage()
This method will fail unless this course grade was fetched "with statistics", since it relies on having the total number of points
possible available to calculate the percentage.
|
Double |
getNonNullAutoCalculatedGrade()
For use by the Course Grade UI.
|
static Comparator<CourseGradeRecord> |
getOverrideComparator(GradeMapping mapping) |
Double |
getPointsEarned() |
Double |
getTotalPointsPossible() |
void |
initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned) |
void |
initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned,
double literalTotalPointsEarned) |
void |
initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned,
double literalTotalPointsEarned,
double totalPointsExtra) |
boolean |
isCourseGradeRecord() |
void |
setAutoCalculatedGrade(Double autoCalculatedGrade) |
void |
setCalculatedPointsEarned(double literalTotalPointsEarned) |
void |
setEnteredGrade(String enteredGrade) |
void |
setPointsEarned(Double pointsEarned) |
void |
setTotalPointsPossible(Double totalPointsPossible) |
getDateRecorded, getGradableObject, getGraderId, getId, getStudentId, getVersion, setDateRecorded, setGradableObject, setGraderId, setId, setStudentId, setVersion, toStringpublic static Comparator<CourseGradeRecord> calcComparator
public CourseGradeRecord(CourseGrade courseGrade, String studentId)
courseGrade - studentId - public CourseGradeRecord()
public static Comparator<CourseGradeRecord> getOverrideComparator(GradeMapping mapping)
public Double getGradeAsPercentage()
getGradeAsPercentage in class AbstractGradeRecordAbstractGradeRecord.getGradeAsPercentage()public CourseGrade getCourseGrade()
public String getEnteredGrade()
public void setEnteredGrade(String enteredGrade)
enteredGrade - The enteredGrade to set.public Double getAutoCalculatedGrade()
public Double getPointsEarned()
getPointsEarned in class AbstractGradeRecordpublic void setPointsEarned(Double pointsEarned)
pointsEarned - The pointsEarned to set.public String getDisplayGrade()
public boolean isCourseGradeRecord()
isCourseGradeRecord in class AbstractGradeRecordAbstractGradeRecord.isCourseGradeRecord()public Double getNonNullAutoCalculatedGrade()
public void initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned)
public void setCalculatedPointsEarned(double literalTotalPointsEarned)
public void initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned,
double literalTotalPointsEarned)
public void initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned,
double literalTotalPointsEarned,
double totalPointsExtra)
public Double getCalculatedPointsEarned()
public void setAutoCalculatedGrade(Double autoCalculatedGrade)
public Double getTotalPointsPossible()
public void setTotalPointsPossible(Double totalPointsPossible)
Copyright © 2003–2021 Sakai Project. All rights reserved.