OSID Logo
OSID Specifications
course requisite package
Version 3.1.0
Interfaceosid.course.requisite.ProgramRequirement
Implementsosid.OsidRule
osid.Aggregateable
Used Byosid.course.requisite.ProgramRequirementList
osid.course.requisite.Requisite
osid.course.requisite.RequisiteAdminSession
osid.course.requisite.RequisiteLookupSession
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
Compliancemandatory This method must be implemented.
MethodgetProgramId
Description

Gets the Id of the Program.

Returnosid.id.Id the program Id
Compliancemandatory This method must be implemented.
MethodgetProgram
Description

Gets the Program.

Returnosid.course.program.Program the program
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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.Duration the time frame
ErrorsILLEGAL_STATE hasTimeframe() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetMinimumGPASystemId
Description

Gets the scoring system Id for the minimum GPA.

Returnosid.id.Id the scoring system Id
ErrorsILLEGAL_STATE hasMinimumGPA() is false
Compliancemandatory This method must be implemented.
MethodgetMinimumGPASystem
Description

Gets the scoring system for the minimum GPA.

Returnosid.grading.GradeSystem the scoring system
ErrorsILLEGAL_STATE hasMinimumGPA() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetMinimumGPA
Description

Gets the minimum GPA.

Returndecimal the minimum gpa
ErrorsILLEGAL_STATE hasMinimumGPA() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetMinimumEarnedCredits
Description

Gets the minimum earned credits.

Returndecimal the minimum credits
ErrorsILLEGAL_STATE hasMinimumEarnedCredits() is false
Compliancemandatory This 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.TypeprogramRequirementRecordType the type of program requirement record to retrieve
Returnosid.course.requisite.records.ProgramRequirementRecord the program requirement record
ErrorsNULL_ARGUMENT programRequirementRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(programRequirementRecordType) is false
Compliancemandatory This method must be implemented.