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

A AwardRequirement is an OsidRule and represents a requirement based on a set of Awards.

Like all OsidObjects, AwardRequirement is managed by its OsidSessions and may not be accessed by concurrent processing threads.

MethodgetAltRequisites
Description

Gets any Requisites that may be substituted in place of this AwardRequirement . All Requisites must be satisifed to be a substitute for this award requirement. Inactive Requisites are not evaluated but if no active requisite exists, then this term is ignored.

Returnosid.course.requisite.Requisite[] the alternate requisites
Compliancemandatory This method must be implemented.
MethodgetAwardIds
Description

Gets the Ids of the Awards.

Returnosid.id.IdList the award Ids
Compliancemandatory This method must be implemented.
MethodgetAwards
Description

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

Returnosid.recognition.AwardList the awards
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodrequiresMinimumNumber
Description

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

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

The minimum number of Awards in this AwardRequirement to complete from the set.

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

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

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

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

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

Tests if the award must have been earned within the required duration.

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

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

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

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