OSID Logo
OSID Specifications
offering package
Version 3.1.0
Interfaceosid.offering.Result
Implementsosid.OsidObject
osid.Temporal
osid.Subjugateable
Used Byosid.offering.ResultAdminSession
osid.offering.ResultList
osid.offering.ResultLookupSession
Description

A Result is an outcome from a Participation.

MethodgetParticipantId
Description

Gets the Id of the participant in this result.

Returnosid.id.Id the Participant Id
Compliancemandatory This method must be implemented.
MethodgetParticipant
Description

Gets the participant in this result.

Returnosid.offering.Participant the Participant
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetGradeId
Description

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

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

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

Returnosid.grading.Grade the grade
ErrorsILLEGAL_STATE isGraded() is false or GradeSystem.isBasedOnGrades() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetValue
Description

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

Returndecimal the value
ErrorsILLEGAL_STATE isGraded() is false or GradeSystem.isBasedOnGrades() is true
Compliancemandatory This method must be implemented.
MethodgetResultRecord
Description

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

Parametersosid.type.TyperesultRecordType the type of result record to retrieve
Returnosid.offering.records.ResultRecord the result record
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resultRecordType) is false
Compliancemandatory This method must be implemented.