OSID Logo
OSID Specifications
course requisite package
Version 3.1.0
Interfaceosid.course.requisite.RequisiteRequirement
Implementsosid.OsidRule
osid.Aggregateable
Used Byosid.course.requisite.Requisite
osid.course.requisite.RequisiteAdminSession
osid.course.requisite.RequisiteLookupSession
osid.course.requisite.RequisiteRequirementList
Description

A RequisiteRequirement is an OsidRule and represents a requirement based on a Requisite.

MethodgetAltRequisites
Description

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

Gets the Ids of the Requisites.

Returnosid.id.IdList the requisite Ids
Compliancemandatory This method must be implemented.
MethodgetRequisites
Description

Gets the Requisites. If requiresMinimumNumber() is false , then all Requisites in this set must be completed for this requirement.

Returnosid.course.requisite.RequisiteList the requisites
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodrequiresMinimumNumber
Description

Tests if a minimum number of Requisites from the set must be completed to satisfy this RequisiteRequirement.

Returnboolean true if a minimum number of requisites is required, false otherwise
Compliancemandatory This method must be implemented.
MethodgetMinimumNumber
Description

The minimum number of Requisites in this RequisiteRequirement to complete from the set.

Returncardinal the minimum number of requisites
ErrorsILLEGAL_STATE requiresMinimumNumber() is false
Compliancemandatory This method must be implemented.
MethodhasTargetNumberForSet
Description

Tests if the set should contain a minimum number of Requisites to be a valid requirement.

Returnboolean true if the set has a minimum requisite count, false otherwise
Compliancemandatory This method must be implemented.
MethodgetTargetSetNumber
Description

The minimum number of requisites in the set to be a valid requirement.

Returncardinal the minimum number of requisites in the set
ErrorsILLEGAL_STATE hasTargetNumberForSet() is false
Compliancemandatory This method must be implemented.
MethodhasTimeframe
Description

Tests if the requisite has to be earned within the required duration.

Returnboolean true if the requisite must be earned within a required time, false if it could have been earned at any time in the past
Compliancemandatory This method must be implemented.
MethodgetTimeframe
Description

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

Returnosid.calendaring.Duration the time frame
ErrorsILLEGAL_STATE hasTimeframe() is false
Compliancemandatory This method must be implemented.
MethodgetRequisiteRequirementRecord
Description

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

Parametersosid.type.TyperequisiteRequirementRecordType the type of requisite requirement record to retrieve
Returnosid.course.requisite.records.RequisiteRequirementRecord the requisite requirement record
ErrorsNULL_ARGUMENT requisiteRequirementRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(requisiteRequirementRecordType) is false
Compliancemandatory This method must be implemented.