Interface AssessmentRequirement
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A AssessmentRequirement is an OsidRule and represents a
requirement based on an Assessment .
-
Method Summary
Modifier and TypeMethodDescriptionGets anyRequisitesthat may be substituted in place of thisAssessmentRequirement.Gets theAssessment.Gets theIdof theAssessment.getAssessmentRequirementRecord(Type assessmentRequirementRecordType) Gets the assessment requirement record corresponding to the givenAssessmentRequirementrecordType.Gets the minimum grade.Gets the minimum gradeId.Gets the minimum score.Gets the scoring system for the minimum score.Gets the scoring systemIdfor the minimum score.Gets the timeframe in which the assessment has to be completed.booleanTests if a minimum grade above passing is required in the completion of the assessment.booleanTests if a minimum score above passing is required in the completion of the assessment.booleanTests if the assessment must be completed within the required duration.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 thisAssessmentRequirement. AllRequisitesmust be satisifed to be a substitute for this assessment 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.
-
getAssessmentId
Id getAssessmentId()Gets theIdof theAssessment.- Returns:
- the assessment
Id - Compliance:
mandatory- This method must be implemented.
-
getAssessment
Gets theAssessment.- Returns:
- the assessment
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasTimeframe
boolean hasTimeframe()Tests if the assessment must be completed within the required duration.- Returns:
trueif the assessment 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 assessment has to be completed. A negative duration indicates the assessment had to be completed within the specified amount of time in the past. A posiitive duration indicates the assessment must be completed within the specified amount of time in the future. A zero duration indicates the assessment 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 assessment.- 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 assessment.- 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.
-
getAssessmentRequirementRecord
AssessmentRequirementRecord getAssessmentRequirementRecord(Type assessmentRequirementRecordType) throws OperationFailedException Gets the assessment requirement record corresponding to the givenAssessmentRequirementrecordType. This method is used to retrieve an object implementing the requested record. TheassessmentRequirementRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(assessmentRequirementRecordType)istrue.- Parameters:
assessmentRequirementRecordType- the type of assessment requirement record to retrieve- Returns:
- the assessment requirement record
- Throws:
NullArgumentException-assessmentRequirementRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assessmentRequirementRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-