| java.lang.Object org.sakaiproject.tool.gradebook.GradeMapping
All known Subclasses: org.sakaiproject.tool.gradebook.LetterGradeMapping, org.sakaiproject.tool.gradebook.LetterGradePlusMinusMapping, org.sakaiproject.tool.gradebook.PassNotPassMapping,
GradeMapping | public class GradeMapping implements Serializable,Comparable(Code) | | A GradeMapping provides a means to convert between an arbitrary set of grades
(letter grades, pass / not pass, 4,0 scale) and numeric percentages.
|
version | protected int version(Code) | | |
GradeMapping | public GradeMapping()(Code) | | |
getDefaultBottomPercents | public Map<String, Double> getDefaultBottomPercents()(Code) | | Backwards-compatible wrapper to get to grading scale.
|
getDefaultValues | public List<Double> getDefaultValues()(Code) | | A List of the default grade values. Only used for backwardcompatibility to pre-grading-scale mappings. |
getGradingScale | public GradingScale getGradingScale()(Code) | | the GradingScale used to define this mapping, or null ifthis is an old Gradebook which uses hard-coded scales |
getValue | public Double getValue(String grade)(Code) | | Gets the percentage mapped to a particular grade.
|
getVersion | public int getVersion()(Code) | | Returns the version. |
setDefaultValues | public void setDefaultValues()(Code) | | Sets the percentage values for this GradeMapping to their default values.
|
setGradeMap | public void setGradeMap(Map<String, Double> gradeMap)(Code) | | Parameters: gradeMap - The gradeMap to set. |
setGradebook | public void setGradebook(Gradebook gradebook)(Code) | | Parameters: gradebook - The gradebook to set. |
setId | public void setId(Long id)(Code) | | Parameters: id - The id to set. |
setVersion | public void setVersion(int version)(Code) | | Parameters: version - The version to set. |
standardizeInputGrade | public String standardizeInputGrade(String inputGrade)(Code) | | Enable any-case input of grades (typically lowercase input
for uppercase grades). Look for a case-insensitive match
to the input text and if it's found, return the official
version.
The normalized version of the grade, or null if not found. |
|
|