org.sakaiproject.tool.gradebook
Class CourseGrade

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.GradableObject
      extended by org.sakaiproject.tool.gradebook.CourseGrade
All Implemented Interfaces:
Serializable

public class CourseGrade
extends GradableObject

A CourseGrade is a GradableObject that represents the overall course grade in a gradebook.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
static String SORT_BY_CALCULATED_GRADE
           
static String SORT_BY_OVERRIDE_GRADE
           
static String SORT_BY_POINTS_EARNED
           
 
Fields inherited from class org.sakaiproject.tool.gradebook.GradableObject
categoryComparator, dateComparator, defaultComparator, gradebook, id, idComparator, log, mean, meanComparator, name, nameComparator, removed, sortingComparator, sortOrder, version
 
Constructor Summary
CourseGrade()
           
 
Method Summary
 void calculateStatistics(Collection<CourseGradeRecord> gradeRecords, int numEnrollments)
          Calculate the mean course grade (whether entered or calulated) as a percentage for all enrollments, leaving students who've explicitly been given non-percentage-valued manual-only course grades (such as "I" for incomplete) or null scores out of the calculation.
 Double getAverageScore()
           
 boolean getIsCategory()
           
 boolean isAssignment()
           
 boolean isCourseGrade()
           
 void setAverageScore(Double averageScore)
           
 
Methods inherited from class org.sakaiproject.tool.gradebook.GradableObject
assignSorting, equals, getFormattedMean, getGradebook, getId, getMean, getName, getSortOrder, getSortPosition, getVersion, hashCode, isFirst, isLast, isRemoved, setGradebook, setId, setMean, setName, setRemoved, setSortOrder, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SORT_BY_OVERRIDE_GRADE

public static String SORT_BY_OVERRIDE_GRADE

SORT_BY_CALCULATED_GRADE

public static String SORT_BY_CALCULATED_GRADE

SORT_BY_POINTS_EARNED

public static String SORT_BY_POINTS_EARNED
Constructor Detail

CourseGrade

public CourseGrade()
Method Detail

isCourseGrade

public boolean isCourseGrade()
Specified by:
isCourseGrade in class GradableObject
Returns:
Whether this gradable object is a course grade
See Also:
GradableObject.isCourseGrade()

isAssignment

public boolean isAssignment()
Specified by:
isAssignment in class GradableObject
Returns:
Whether this gradable object is an assignment
See Also:
GradableObject.isAssignment()

getIsCategory

public boolean getIsCategory()
Specified by:
getIsCategory in class GradableObject
Returns:
Whether this gradable object is a category
See Also:
org.sakaiproject.tool.gradebook.GradableObject#isCategory()

calculateStatistics

public void calculateStatistics(Collection<CourseGradeRecord> gradeRecords,
                                int numEnrollments)
Calculate the mean course grade (whether entered or calulated) as a percentage for all enrollments, leaving students who've explicitly been given non-percentage-valued manual-only course grades (such as "I" for incomplete) or null scores out of the calculation.


getAverageScore

public Double getAverageScore()

setAverageScore

public void setAverageScore(Double averageScore)


Copyright © 2011 Sakai Project. All Rights Reserved.