OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeEntry
Implementsosid.OsidRelationship
Description

A GradeEntry represents an entry in a Gradebook.

MethodgetGradebookColumnId
Description

Gets the Id of the GradebookColumn.

Returnosid.id.Idthe Id of the GradebookColumn
CompliancemandatoryThis method must be implemented.
MethodgetGradebookColumn
Description

Gets the GradebookColumn.

Returnosid.grading.GradebookColumnthe GradebookColumn
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetKeyResourceId
Description

Gets the Id of the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries.

Returnosid.id.Id Id of the key resource
CompliancemandatoryThis method must be implemented.
MethodgetKeyResource
Description

Gets the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries.

Returnosid.resource.Resourcethe key resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisDerived
Description

Tests if this is a calculated entry.

Returnboolean true if this entry is a calculated entry, false otherwise. If true, then overridesCalculatedEntry() must be false.
CompliancemandatoryThis method must be implemented.
MethodoverridesCalculatedEntry
Description

Tests if this is a manual entry that overrides a calculated entry.

Returnboolean true if this entry overrides a calculated entry, false otherwise. If true, then isDerived() must be false.
CompliancemandatoryThis method must be implemented.
MethodgetOverriddenCalculatedEntryId
Description

Gets the calculated entry Id this entry overrides.

Returnosid.id.Idthe calculated entry Id
ErrorsILLEGAL_STATE overridesDerivedEntry() is false
CompliancemandatoryThis method must be implemented.
MethodgetOverriddenCalculatedEntry
Description

Gets the calculated entry this entry overrides.

Returnosid.grading.GradeEntrythe calculated entry
ErrorsILLEGAL_STATE overridesCalculatedEntry() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisIgnoredForCalculations
Description

Tests if this is entry should be ignored in any averaging, scaling or curve calculation.

Returnboolean true if this entry is ignored, false otherwise
CompliancemandatoryThis method must be implemented.
MethodisGraded
Description

Tests if a grade or score has been assigned to this entry. Generally, an entry is created with a grade or score.

Returnboolean true if a grade has been assigned, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradeId
Description

Gets the grade Id in this entry if the grading system is based on grades.

Returnosid.id.Idthe grade Id
ErrorsILLEGAL_STATE isGraded() is false or GradeSystem.isBasedOnGrades() is false
CompliancemandatoryThis method must be implemented.
MethodgetGrade
Description

Gets the grade in this entry if the grading system is based on grades.

Returnosid.grading.Gradethe grade
ErrorsILLEGAL_STATE isGraded() is false or GradeSystem.isBasedOnGrades() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetScore
Description

Gets the score in this entry if the grading system is not based on grades.

Returndecimalthe score
ErrorsILLEGAL_STATE isGraded() is false or GradeSystem.isBasedOnGrades() is true
CompliancemandatoryThis method must be implemented.
MethodgetTimeGraded
Description

Gets the time the gradeable object was graded.

Returnosid.calendaring.DateTimethe timestamp of the grading entry
ErrorsILLEGAL_STATE isGraded() is false or isDerived() is true
CompliancemandatoryThis method must be implemented.
MethodgetGraderId
Description

Gets the Id of the Resource that created this entry.

Returnosid.id.Idthe Id of the Resource
ErrorsILLEGAL_STATE isGraded() is false or isDerived() is true
CompliancemandatoryThis method must be implemented.
MethodgetGrader
Description

Gets the Resource that created this entry.

Returnosid.resource.Resourcethe Resource
ErrorsILLEGAL_STATE isGraded() is false or isDerived() is true
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetGradingAgentId
Description

Gets the Id of the Agent that created this entry.

Returnosid.id.Idthe Id of the Agent
ErrorsILLEGAL_STATE isGraded() is false or isDerived() is true
CompliancemandatoryThis method must be implemented.
MethodgetGradingAgent
Description

Gets the Agent that created this entry.

Returnosid.authentication.Agentthe Agent
ErrorsILLEGAL_STATE isGraded() is false or isDerived() is true
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetGradeEntryRecord
Description

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

Parametersosid.type.TypegradeEntryRecordTypethe type of the record to retrieve
Returnosid.grading.records.GradeEntryRecordthe grade entry record
ErrorsNULL_ARGUMENT gradeEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(gradeEntryRecordType) is false
CompliancemandatoryThis method must be implemented.