OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeSystem
Implementsosid.OsidObject
osid.Aggregateable
Description

A GradeSystem represents a grading system. The system can be based on assigned Grades or based on a numeric scale.

MethodisBasedOnGrades
Description

Tests if the grading system is based on grades.

Returnbooleantrue if the grading system is based on grades, false if the system is a numeric score
CompliancemandatoryThis method must be implemented.
MethodgetGradeIds
Description

Gets the grade Ids in this system ranked from highest to lowest.

Returnosid.id.IdListthe list of grades Ids
ErrorsILLEGAL_STATE isBasedOnGrades() is false
CompliancemandatoryThis method must be implemented.
MethodgetGrades
Description

Gets the grades in this system ranked from highest to lowest.

Returnosid.grading.GradeListthe list of grades
ErrorsILLEGAL_STATE isBasedOnGrades() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetLowestNumericScore
Description

Gets the lowest number in a numeric grading system.

Returndecimalthe lowest number
ErrorsILLEGAL_STATE isBasedOnGrades() is true
CompliancemandatoryThis method must be implemented.
MethodgetNumericScoreIncrement
Description

Gets the incremental step.

Returndecimalthe increment
ErrorsILLEGAL_STATE isBasedOnGrades() is true
CompliancemandatoryThis method must be implemented.
MethodgetHighestNumericScore
Description

Gets the highest number in a numeric grading system.

Returndecimalthe highest number
ErrorsILLEGAL_STATE isBasedOnGrades() is true
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemRecord
Description

Gets the grade system record corresponding to the given GradeSystem record Type. This method is used to retrieve an object implementing the requested record. The gradeSystemRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(gradeSystemRecordType) is true .

Parametersosid.type.TypegradeSystemRecordTypethe type of the record to retrieve
Returnosid.grading.records.GradeSystemRecordthe grade system record
ErrorsNULL_ARGUMENT gradeSystemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(gradeSystemRecordType) is false
CompliancemandatoryThis method must be implemented.