Class CourseGrade

    • 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

      • 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)