Interface AssessmentOffered
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
An AssessmentOffered represents a sequence of assessment items.
Like all OSID objects, an AssessmentOffered is identified by its
Id and any persisted references should use the Id .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the items or parts in this assessment are taken sequentially.booleanTests if the items or parts appear in a random order.Gets the assessment corresponding to this assessment offereng.Gets the assessmentIdcorresponding to this assessment offering.getAssessmentOfferedRecord(Type assessmentTakenRecordType) Gets the assessment offered record corresponding to the givenAssessmentOfferedrecordType.Gets the end time for this assessment.Gets the duration for this assessment.Gets the grade system for the grade.Gets the grade systemIdfor the grade.getLevel()Gets theGradecorresponding to the assessment difficulty.Gets theIdof aGradecorresponding to the assessment difficulty.Gets the rubric.Gets theIdof the rubric.Gets the grade system for the score.Gets the grade systemIdfor the score.Gets the start time for this assessment.booleanTests if there is a fixed end time for this assessment.booleanTests if there is a fixed duration for this assessment.booleanTests if a rubric assessment is associated with this assessment.booleanTests if there is a fixed start time for this assessment.booleanisGraded()Tests if this assessment will be graded.booleanisScored()Tests if this assessment will be scored.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 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.
-
Method Details
-
getAssessmentId
Id getAssessmentId()Gets the assessmentIdcorresponding to this assessment offering.- Returns:
- the assessment id
- Compliance:
mandatory- This method must be implemented.
-
getAssessment
Gets the assessment corresponding to this assessment offereng.- Returns:
- the assessment
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getLevelId
Id getLevelId()Gets theIdof aGradecorresponding to the assessment difficulty.- Returns:
- a grade id
- Compliance:
mandatory- This method must be implemented.
-
getLevel
Gets theGradecorresponding to the assessment difficulty.- Returns:
- the level
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
areItemsSequential
boolean areItemsSequential()Tests if the items or parts in this assessment are taken sequentially.- Returns:
trueif the items are taken sequentially,falseif the items can be skipped and revisited- Compliance:
mandatory- This method must be implemented.
-
areItemsShuffled
boolean areItemsShuffled()Tests if the items or parts appear in a random order.- Returns:
trueif the items appear in a random order,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
hasStartTime
boolean hasStartTime()Tests if there is a fixed start time for this assessment.- Returns:
trueif there is a fixed start time,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getStartTime
DateTime getStartTime()Gets the start time for this assessment.- Returns:
- the designated start time
- Throws:
IllegalStateException-hasStartTime()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasDeadline
boolean hasDeadline()Tests if there is a fixed end time for this assessment.- Returns:
trueif there is a fixed end time,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDeadline
DateTime getDeadline()Gets the end time for this assessment.- Returns:
- the designated end time
- Throws:
IllegalStateException-hasDeadline()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasDuration
boolean hasDuration()Tests if there is a fixed duration for this assessment.- Returns:
trueif there is a fixed duration,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDuration
Duration getDuration()Gets the duration for this assessment.- Returns:
- the duration
- Throws:
IllegalStateException-hasDuration()isfalse- Compliance:
mandatory- This method must be implemented.
-
isScored
boolean isScored()Tests if this assessment will be scored.- Returns:
trueif this assessment will be scoredfalseotherwise- Compliance:
mandatory- This method must be implemented.
-
getScoreSystemId
Id getScoreSystemId()Gets the grade systemIdfor the score.- Returns:
- the grade system
Id - Throws:
IllegalStateException-isScored()isfalse- Compliance:
mandatory- This method must be implemented.
-
getScoreSystem
Gets the grade system for the score.- Returns:
- the grade system
- Throws:
IllegalStateException-isScored()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isGraded
boolean isGraded()Tests if this assessment will be graded.- Returns:
trueif this assessment will be graded,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeSystemId
Id getGradeSystemId()Gets the grade systemIdfor the grade.- Returns:
- the grade system
Id - Throws:
IllegalStateException-isGraded()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGradeSystem
Gets the grade system for the grade.- Returns:
- the grade system
- Throws:
IllegalStateException-isGraded()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasRubric
boolean hasRubric()Tests if a rubric assessment is associated with this assessment.- Returns:
trueif a rubric is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRubricId
Id getRubricId()Gets theIdof the rubric.- Returns:
- an assessment offered
Id - Throws:
IllegalStateException-hasRubric()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRubric
Gets the rubric.- Returns:
- the assessment offered
- Throws:
IllegalStateException-hasRubric()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssessmentOfferedRecord
AssessmentOfferedRecord getAssessmentOfferedRecord(Type assessmentTakenRecordType) throws OperationFailedException Gets the assessment offered record corresponding to the givenAssessmentOfferedrecordType. This method is used to retrieve an object implementing the requested record. TheassessmentOfferedRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(assessmentOfferedRecordType)istrue.- Parameters:
assessmentTakenRecordType- an assessment offered record type- Returns:
- the assessment offered record
- Throws:
NullArgumentException-assessmentOfferedRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assessmentOfferedRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-