Interface CourseRequirement
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A CourseRequirement is an OsidRule and represents a
requirement based on the completion or a co-requisite of a course.
-
Method Summary
Modifier and TypeMethodDescriptionGets anyRequisitesthat may be substituted in place of thisCourseRequirement.Gets theIdsof theCourses.getCourseRequirementRecord(Type courseRequirementRecordType) Gets the course requirement record corresponding to the givenCourseRequirementrecordType.Gets theCourses.The credit scale of the minimum credits.TheIdof the credit scale of the minimum credits.The minimum number of credits that must be completed from the set ofCoursesto satisfy this requirement.Gets the minimum earned credits.Gets the minimum grade.Gets the minimum gradeId.longThe minimum number of non-transferCoursesrequired from the set.longThe minimum number ofCoursesin thisCourseRequisiteto complete from the set.Gets the minimum score.Gets the scoring system for the minimum score.Gets the scoring systemIdfor the minimum score.The minimum number of non-transfer credits that must be completed from the set ofCoursesto satisfy this requirement.Gets the subject area.Gets the subject areaId.The minimum number ofCoursecredits to be a valid requirement.longThe minimum number of courses in the set to be a valid requirement.Gets the timeframe in which the course has to be completed.booleanTests if a minimum credits earned from the completion of the course, or registered for in a co-requisite is required.booleanTests if a minimum grade above passing is required in the completion of the course or maintained at this level during a co-requisite.booleanTests if a minimum score above passing is required in the completion of the course or maintained at this level during a co-requisite.booleanTests if the set should contain a minimum number ofCoursecredits to be a valid requirement.booleanTests if the set should contain a minimum number ofCoursesto be a valid requirement.booleanTests if the course must be completed within the required duration.booleanTests if equivalentCoursesto the ones specified satisfy this requirement.booleanTests if this requirement requires completion of the course with a passing grade.booleanTests if a minimum number of credits must be completed from the set ofCoursesto satisfy this requirement.booleanTests if a minimum number of non-transfer credits must be completed from the set ofCoursesto satisfy this requirement.booleanTests if there is a minimum number of non-transferCoursesrequired to complete from the set.booleanTests if a minimum number ofCoursesfrom the set must be completed to satisfy thisCourseRequisite.booleanTests if anyCoursetagged in a subject area is required.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getAltRequisites
Requisite[] getAltRequisites()Gets anyRequisitesthat may be substituted in place of thisCourseRequirement. AllRequisitesmust be satisifed to be a substitute for this course requirement. InactiveRequisitesare not evaluated but if no applicable requisite exists, then the alternate requisite is not satisifed.- Returns:
- the alternate requisites
- Compliance:
mandatory- This method must be implemented.
-
getCourseIds
IdList getCourseIds()Gets theIdsof theCourses.- Returns:
- the course
Ids - Compliance:
mandatory- This method must be implemented.
-
getCourses
Gets theCourses. IfrequiresMinimumNumber()andrequiresMinimumCredits()are bothfalse, then allCoursesin this set must be completed for this requirement.- Returns:
- the courses
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
requiresSubjectArea
boolean requiresSubjectArea()Tests if anyCoursetagged in a subject area is required.- Returns:
trueif a subject area is required,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSubjectAreaId
Id getSubjectAreaId()Gets the subject areaId.- Returns:
- the subject area
Id - Throws:
IllegalStateException-requiresSubjectArea()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubjectArea
Gets the subject area.- Returns:
- the subject area
- Throws:
IllegalStateException-requiresSubjectArea()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
includeEquivalentUnits
boolean includeEquivalentUnits()Tests if equivalentCoursesto the ones specified satisfy this requirement.- Returns:
trueif equivalent courses are acceptable,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
requiresMinimumNumber
boolean requiresMinimumNumber()Tests if a minimum number ofCoursesfrom the set must be completed to satisfy thisCourseRequisite.- Returns:
trueif a minimum number of courses is required,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMinimumNumber
long getMinimumNumber()The minimum number ofCoursesin thisCourseRequisiteto complete from the set.- Returns:
- the minimum number of courses
- Throws:
IllegalStateException-requiresMinimumNumber()isfalse- Compliance:
mandatory- This method must be implemented.
-
requiresMinimumNonTransferNumber
boolean requiresMinimumNonTransferNumber()Tests if there is a minimum number of non-transferCoursesrequired to complete from the set.- Returns:
trueif a minimum number of non-transfer courses is required,falseotherwise- Throws:
IllegalStateException-requiresMinimumNumber()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMinimumNonTransferNumber
long getMinimumNonTransferNumber()The minimum number of non-transferCoursesrequired from the set.- Returns:
- the minimum number of non-transfer courses
- Throws:
IllegalStateException-requiresMinimumNonTransferNumber()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasTargetNumberForSet
boolean hasTargetNumberForSet()Tests if the set should contain a minimum number ofCoursesto be a valid requirement.- Returns:
trueif the set has a minimum course count,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTargetSetNumber
long getTargetSetNumber()The minimum number of courses in the set to be a valid requirement.- Returns:
- the minimum number of courses in the set
- Throws:
IllegalStateException-hasTargetNumberForSet()isfalse- Compliance:
mandatory- This method must be implemented.
-
requiresMinimumCredits
boolean requiresMinimumCredits()Tests if a minimum number of credits must be completed from the set ofCoursesto satisfy this requirement.- Returns:
trueif a minimum number of credits is required,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreditScaleId
Id getCreditScaleId()TheIdof the credit scale of the minimum credits.- Returns:
- the credit scale
Id - Throws:
IllegalStateException-requiresMinimumCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCreditScale
The credit scale of the minimum credits.- Returns:
- the credit scale
- Throws:
IllegalStateException-requiresMinimumCredits()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMinimumCredits
BigDecimal getMinimumCredits()The minimum number of credits that must be completed from the set ofCoursesto satisfy this requirement.- Returns:
- the minimum credits
- Throws:
IllegalStateException-requiresMinimumCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
requiresMinimumNonTransferCredits
boolean requiresMinimumNonTransferCredits()Tests if a minimum number of non-transfer credits must be completed from the set ofCoursesto satisfy this requirement.- Returns:
trueif a minimum number of non-transfer credits is required,falseotherwise- Throws:
IllegalStateException-requiresMinimumCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
getNonTransferCredits
BigDecimal getNonTransferCredits()The minimum number of non-transfer credits that must be completed from the set ofCoursesto satisfy this requirement.- Returns:
- the minimum non-transfer credits
- Throws:
IllegalStateException-requiresMinimumNonTransferCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasTargetCreditsForSet
boolean hasTargetCreditsForSet()Tests if the set should contain a minimum number ofCoursecredits to be a valid requirement.- Returns:
trueif the set has a minimum credit count,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTargetSetCredits
BigDecimal getTargetSetCredits()The minimum number ofCoursecredits to be a valid requirement.- Returns:
- the minimum credits in the set
- Throws:
IllegalStateException-hasTargetCreditsForSet()isfalse- Compliance:
mandatory- This method must be implemented.
-
requiresCompletion
boolean requiresCompletion()Tests if this requirement requires completion of the course with a passing grade.- Returns:
trueif a completion of the course is required,falseis the course is a co-requisite- Compliance:
mandatory- This method must be implemented.
-
hasTimeframe
boolean hasTimeframe()Tests if the course must be completed within the required duration.- Returns:
trueif the course must be completed within a required time,falseif it could have been completed at any time in the past- Compliance:
mandatory- This method must be implemented.
-
getTimeframe
Duration getTimeframe()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.- Returns:
- the time frame
- Throws:
IllegalStateException-hasTimeframe()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasMinimumGrade
boolean hasMinimumGrade()Tests if a minimum grade above passing is required in the completion of the course or maintained at this level during a co-requisite.- Returns:
trueif a minimum grade is required,falseif the course just has to be passed- Compliance:
mandatory- This method must be implemented.
-
getMinimumGradeId
Id getMinimumGradeId()Gets the minimum gradeId.- Returns:
- the minimum grade
Id - Throws:
IllegalStateException-hasMinimumGrade()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMinimumGrade
Gets the minimum grade.- Returns:
- the minimum grade
- Throws:
IllegalStateException-hasMinimumGrade()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasMinimumScore
boolean hasMinimumScore()Tests if a minimum score above passing is required in the completion of the course or maintained at this level during a co-requisite.- Returns:
trueif a minimum score is required,falseif the course just has to be passed- Compliance:
mandatory- This method must be implemented.
-
getMinimumScoreSystemId
Id getMinimumScoreSystemId()Gets the scoring systemIdfor the minimum score.- Returns:
- the scoring system
Id - Throws:
IllegalStateException-hasMinimumScore()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMinimumScoreSystem
Gets the scoring system for the minimum score.- Returns:
- the scoring system
- Throws:
IllegalStateException-hasMinimumScore()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMinimumScore
BigDecimal getMinimumScore()Gets the minimum score.- Returns:
- the minimum score
- Throws:
IllegalStateException-hasMinimumScore()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasMinimumEarnedCredits
boolean hasMinimumEarnedCredits()Tests if a minimum credits earned from the completion of the course, or registered for in a co-requisite is required.- Returns:
trueif a minimum credits is required,falseotehrwise- Compliance:
mandatory- This method must be implemented.
-
getMinimumEarnedCredits
BigDecimal getMinimumEarnedCredits()Gets the minimum earned credits.- Returns:
- the minimum credits
- Throws:
IllegalStateException-hasMinimumEarnedCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCourseRequirementRecord
CourseRequirementRecord getCourseRequirementRecord(Type courseRequirementRecordType) throws OperationFailedException Gets the course requirement record corresponding to the givenCourseRequirementrecordType. This method is used to retrieve an object implementing the requested record. ThecourseRequirementRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(courseRequirementRecordType)istrue.- Parameters:
courseRequirementRecordType- the type of course requirement record to retrieve- Returns:
- the course requirement record
- Throws:
NullArgumentException-courseRequirementRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseRequirementRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-