Class CourseGradeRecord

    • Constructor Detail

      • CourseGradeRecord

        public CourseGradeRecord​(CourseGrade courseGrade,
                                 String studentId)
        The graderId and dateRecorded properties will be set explicitly by the grade manager before the database is updated.
        Parameters:
        courseGrade -
        studentId -
      • CourseGradeRecord

        public CourseGradeRecord()
        Default no-arg constructor
    • Method Detail

      • getCourseGrade

        public CourseGrade getCourseGrade()
        Convenience method to get the correctly cast CourseGrade that this CourseGradeRecord references.
        Returns:
        CourseGrade referenced by this GradableObject
      • getEnteredGrade

        public String getEnteredGrade()
        Returns:
        Returns the enteredGrade.
      • setEnteredGrade

        public void setEnteredGrade​(String enteredGrade)
        Parameters:
        enteredGrade - The enteredGrade to set.
      • getEnteredPoints

        public Double getEnteredPoints()
        Returns:
        Returns the enteredPoints.
      • setEnteredPoints

        public void setEnteredPoints​(Double enteredPoints)
        Parameters:
        enteredPoints - The enteredPoints to set.
      • getAutoCalculatedGrade

        public Double getAutoCalculatedGrade()
        Returns:
        Returns the autoCalculatedGrade.
      • getDisplayGrade

        public String getDisplayGrade()
        Returns:
        Returns the displayGrade.
      • getNonNullAutoCalculatedGrade

        public Double getNonNullAutoCalculatedGrade()
        For use by the Course Grade UI.
      • initNonpersistentFields

        public void initNonpersistentFields​(double totalPointsPossible,
                                            double totalPointsEarned)
      • setCalculatedPointsEarned

        public void setCalculatedPointsEarned​(double literalTotalPointsEarned)
      • initNonpersistentFields

        public void initNonpersistentFields​(double totalPointsPossible,
                                            double totalPointsEarned,
                                            double literalTotalPointsEarned)
      • initNonpersistentFields

        public void initNonpersistentFields​(double totalPointsPossible,
                                            double totalPointsEarned,
                                            double literalTotalPointsEarned,
                                            double totalPointsExtra)
      • getCalculatedPointsEarned

        public Double getCalculatedPointsEarned()
      • setAutoCalculatedGrade

        public void setAutoCalculatedGrade​(Double autoCalculatedGrade)
      • getTotalPointsPossible

        public Double getTotalPointsPossible()
      • setTotalPointsPossible

        public void setTotalPointsPossible​(Double totalPointsPossible)