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

A CourseRequirement is an OsidRule and represents a requirement based on the completion or a co-requsite of a course.

MethodgetAltRequisites
Description

Gets any Requisites that may be substituted in place of this CourseRequirement. All Requisites must be satisifed to be a substitute for this course 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.
MethodgetCourseId
Description

Gets the Id of the Course.

Returnosid.id.Idthe course Id
CompliancemandatoryThis method must be implemented.
MethodgetCourse
Description

Gets the Course.

Returnosid.course.Coursethe course
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodrequiresCompletion
Description

Tests if this requirement requires completion of the course with a passing grade.

Returnboolean true if a completion of the course is required, false is the course is a co-requisite
CompliancemandatoryThis method must be implemented.
MethodhasTimeframe
Description

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

Returnboolean true if the course must 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 course has to be completed. A negative duration indicates the course had to be completed within the specified amount of time in the past. A posiitive duration indicates the course must be completed within the specified amount of time in the future. A zero duration indicates the course 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 course or maintained at this level during a co-requisite.

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 course or maintained at this level during a co-requisite.

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.
MethodhasMinimumEarnedCredits
Description

Tests if a minimum credits earned from the completion of the course, or registered for in a co-requisite is required.

Returnboolean true if a minimum credits is required, false otehrwise
CompliancemandatoryThis method must be implemented.
MethodgetMinimumEarnedCredits
Description

Gets the minimum earned credits.

Returndecimalthe minimum credits
ErrorsILLEGAL_STATE hasMinimumEarnedCredits() is false
CompliancemandatoryThis method must be implemented.
MethodgetCourseRequirementRecord
Description

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

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