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

A ProgramRequirement is an OsidRule and represents a requirement based on the completion or enrollment for a Program.

MethodgetAltRequisites
Description

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

Gets the Id of the Program.

Returnosid.id.Idthe program Id
CompliancemandatoryThis method must be implemented.
MethodgetProgram
Description

Gets the Program.

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

Tests if this requirement requires completion of the program.

Returnboolean true if a completion of the program is required, false if enrollment in the program is required
CompliancemandatoryThis method must be implemented.
MethodhasTimeframe
Description

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

Returnboolean true if the program 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 program has to be completed. A negative duration indicates the program had to be completed within the specified amount of time in the past. A posiitive duration indicates the program must be completed within the specified amount of time in the future. A zero duration indicates the program must be completed in the current term.

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

Tests if a minimum GPA above passing is required in the completion of the program or maintained at this level during enrollment.

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

Gets the scoring system Id for the minimum GPA.

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

Gets the scoring system for the minimum GPA.

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

Gets the minimum GPA.

Returndecimalthe minimum gpa
ErrorsILLEGAL_STATE hasMinimumGPA() is false
CompliancemandatoryThis method must be implemented.
MethodhasMinimumEarnedCredits
Description

Tests if a minimum credits earned in the program 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.
MethodgetProgramRequirementRecord
Description

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

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