Interface ProgramRequirement
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A ProgramRequirement is an OsidRule and represents a
requirement based on the completion or enrollment for a Program .
-
Method Summary
Modifier and TypeMethodDescriptionGets anyRequisitesthat may be substituted in place of thisProgramRequirement.Gets the minimum earned credits.Gets the minimum GPA.Gets the scoring system for the minimum GPA.Gets the scoring systemIdfor the minimum GPA.Gets theProgram.Gets theIdof theProgram.getProgramRequirementRecord(Type programRequirementRecordType) Gets the program requirement record corresponding to the givenProgramRequirementrecordType.Gets the timeframe in which the program has to be completed.booleanTests if a minimum credits earned in the program is required.booleanTests if a minimum GPA above passing is required in the completion of the program or maintained at this level during enrollment.booleanTests if the program must be completed within the required duration.booleanTests if this requirement requires completion of the program.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 thisProgramRequirement. AllRequisitesmust be satisifed to be a substitute for this program 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.
-
getProgramId
Id getProgramId()Gets theIdof theProgram.- Returns:
- the program
Id - Compliance:
mandatory- This method must be implemented.
-
getProgram
Gets theProgram.- Returns:
- the program
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
requiresCompletion
boolean requiresCompletion()Tests if this requirement requires completion of the program.- Returns:
trueif a completion of the program is required,falseif enrollment in the program is required- Compliance:
mandatory- This method must be implemented.
-
hasTimeframe
boolean hasTimeframe()Tests if the program must be completed within the required duration.- Returns:
trueif the program has to 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 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.- Returns:
- the time frame
- Throws:
IllegalStateException-hasTimeframe()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasMinimumGPA
boolean hasMinimumGPA()Tests if a minimum GPA above passing is required in the completion of the program or maintained at this level during enrollment.- Returns:
trueif a minimum gpa is required,falseif the course just has to be passed- Compliance:
mandatory- This method must be implemented.
-
getMinimumGPASystemId
Id getMinimumGPASystemId()Gets the scoring systemIdfor the minimum GPA.- Returns:
- the scoring system
Id - Throws:
IllegalStateException-hasMinimumGPA()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMinimumGPASystem
Gets the scoring system for the minimum GPA.- Returns:
- the scoring system
- Throws:
IllegalStateException-hasMinimumGPA()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMinimumGPA
BigDecimal getMinimumGPA()Gets the minimum GPA.- Returns:
- the minimum gpa
- Throws:
IllegalStateException-hasMinimumGPA()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasMinimumEarnedCredits
boolean hasMinimumEarnedCredits()Tests if a minimum credits earned in the program 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.
-
getProgramRequirementRecord
ProgramRequirementRecord getProgramRequirementRecord(Type programRequirementRecordType) throws OperationFailedException Gets the program requirement record corresponding to the givenProgramRequirementrecordType. This method is used to retrieve an object implementing the requested record. TheprogramRequirementRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(programRequirementRecordType)istrue.- Parameters:
programRequirementRecordType- the type of program requirement record to retrieve- Returns:
- the program requirement record
- Throws:
NullArgumentException-programRequirementRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(programRequirementRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-