OSID Logo
OSID Specifications
course requisite package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.requisite.AssessmentRequirement
Implementsosid.OsidRule
osid.Aggregateable
Description

A AssessmentRequirement is an OsidRule and represents a requirement based on an Assessment.

MethodgetAltRequisites
Description

Gets any Requisites that may be substituted in place of this AssessmentRequirement. All Requisites must be satisifed to be a substitute for this assessment requirement. Inactive Requisites are not evaluated but if no applicable requisite exists, then the alternate requisite is not satisifed.

Returnosid.course.requisite.Requisite[]the alternate requisites
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentId
Description

Gets the Id of the Assessment.

Returnosid.id.Idthe assessment Id
CompliancemandatoryThis method must be implemented.
MethodgetAssessment
Description

Gets the Assessment.

Returnosid.assessment.Assessmentthe assessment
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasTimeframe
Description

Tests if the assessment must be completed within the required duration.

Returnboolean true if the assessment has to be completed within a required time, false if it could have been completed at any time in the past
CompliancemandatoryThis method must be implemented.
MethodgetTimeframe
Description

Gets the timeframe in which the assessment has to be completed. A negative duration indicates the assessment had to be completed within the specified amount of time in the past. A posiitive duration indicates the assessment must be completed within the specified amount of time in the future. A zero duration indicates the assessment must be completed in the current term.

Returnosid.calendaring.Durationthe time frame
ErrorsILLEGAL_STATE hasTimeframe() is false
CompliancemandatoryThis method must be implemented.
MethodhasMinimumGrade
Description

Tests if a minimum grade above passing is required in the completion of the assessment.

Returnboolean true if a minimum grade is required, false if the course just has to be passed
CompliancemandatoryThis method must be implemented.
MethodgetMinimumGradeId
Description

Gets the minimum grade Id.

Returnosid.id.Idthe minimum grade Id
ErrorsILLEGAL_STATE hasMinimumGrade() is false
CompliancemandatoryThis method must be implemented.
MethodgetMinimumGrade
Description

Gets the minimum grade.

Returnosid.grading.Gradethe minimum grade
ErrorsILLEGAL_STATE hasMinimumGrade() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasMinimumScore
Description

Tests if a minimum score above passing is required in the completion of the assessment.

Returnboolean true if a minimum score is required, false if the course just has to be passed
CompliancemandatoryThis method must be implemented.
MethodgetMinimumScoreSystemId
Description

Gets the scoring system Id for the minimum score.

Returnosid.id.Idthe scoring system Id
ErrorsILLEGAL_STATE hasMinimumScore() is false
CompliancemandatoryThis method must be implemented.
MethodgetMinimumScoreSystem
Description

Gets the scoring system for the minimum score.

Returnosid.grading.GradeSystemthe scoring system
ErrorsILLEGAL_STATE hasMinimumScore() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetMinimumScore
Description

Gets the minimum score.

Returndecimalthe minimum score
ErrorsILLEGAL_STATE hasMinimumScore() is false
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentRequirementRecord
Description

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

Parametersosid.type.TypeassessmentRequirementRecordTypethe type of assessment requirement record to retrieve
Returnosid.course.requisite.records.AssessmentRequirementRecordthe assessment requirement record
ErrorsNULL_ARGUMENT assessmentRequirementRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assessmentRequirementRecordType) is false
CompliancemandatoryThis method must be implemented.