|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sakaiproject.tool.gradebook.AbstractGradeRecord
org.sakaiproject.tool.gradebook.CourseGradeRecord
public class CourseGradeRecord
A CourseGradeRecord is a grade record that can be associated with a CourseGrade.
| Field Summary | |
|---|---|
static Comparator<CourseGradeRecord> |
calcComparator
|
| Fields inherited from class org.sakaiproject.tool.gradebook.AbstractGradeRecord |
|---|
dateRecorded, gradableObject, graderId, id, studentId, version |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
boolean |
isCourseGradeRecord()
|
void |
setAutoCalculatedGrade(Double autoCalculatedGrade)
|
void |
setEnteredGrade(String enteredGrade)
|
void |
setTotalPointsPossible(Double totalPointsPossible)
|
| Methods inherited from class org.sakaiproject.tool.gradebook.AbstractGradeRecord |
|---|
getDateRecorded, getGradableObject, getGraderId, getId, getStudentId, getVersion, setDateRecorded, setGradableObject, setGraderId, setId, setStudentId, setVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Comparator<CourseGradeRecord> calcComparator
| Constructor Detail |
|---|
public CourseGradeRecord(CourseGrade courseGrade,
String studentId)
courseGrade - studentId - public CourseGradeRecord()
| Method Detail |
|---|
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 String getDisplayGrade()
public boolean isCourseGradeRecord()
isCourseGradeRecord in class AbstractGradeRecordAbstractGradeRecord.isCourseGradeRecord()public Double getNonNullAutoCalculatedGrade()
public void initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned)
public void initNonpersistentFields(double totalPointsPossible,
double totalPointsEarned,
double literalTotalPointsEarned)
public Double getCalculatedPointsEarned()
public void setAutoCalculatedGrade(Double autoCalculatedGrade)
public Double getTotalPointsPossible()
public void setTotalPointsPossible(Double totalPointsPossible)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||