Interface AssessmentPart
- All Superinterfaces:
Browsable, Containable, Extensible, Identifiable, Operable, OsidObject
An AssessmentPart represents a section of an assessment.
AssessmentParts may be visible as sections of an assessment or just used
to clump together a set of items on which to hang sequence rules.
-
Method Summary
Modifier and TypeMethodDescriptionGets the allocated time for this part.Gets the assessment to which this rule belongs.Gets the assessmentIdto which this rule belongs.Gets the parent assessment.Gets the parent assessmentId.getAssessmentPartRecord(Type assessmentPartRecordType) Gets the assessment part record corresponding to the givenAssessmentPartrecordType.Gets any child assessment partIds.Gets any child assessment parts.longGets an integral weight factor for this assessment part used for scoring.booleanTests if this assessment part belongs to a parent assessment part.booleanTests if this part should be visible as a section in an assessment.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 Containable
isSequesteredModifier and TypeMethodDescriptionbooleanTests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.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.
-
Method Details
-
getAssessmentId
Id getAssessmentId()Gets the assessmentIdto which this rule belongs.- Returns:
Idof an assessment- Compliance:
mandatory- This method must be implemented.
-
getAssessment
Gets the assessment to which this rule belongs.- Returns:
- an assessment
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasParentPart
boolean hasParentPart()Tests if this assessment part belongs to a parent assessment part.- Returns:
trueif this part has a parent,falseif a root- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartId
Id getAssessmentPartId()Gets the parent assessmentId.- Returns:
Idof an assessment- Throws:
IllegalStateException-hasParentPart()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPart
Gets the parent assessment.- Returns:
- the parent assessment part
- Throws:
IllegalStateException-hasParentPart()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isSection
boolean isSection()Tests if this part should be visible as a section in an assessment. If visible, this part will appear to the user as a separate section of the assessment. Typically, a section may not be under a non-sectioned part.- Returns:
trueif this part is a section,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getWeight
long getWeight()Gets an integral weight factor for this assessment part used for scoring. The percentage weight for this part is this weight divided by the sum total of all the weights in the assessment.- Returns:
- the weight
- Compliance:
mandatory- This method must be implemented.
-
getAllocatedTime
Duration getAllocatedTime()Gets the allocated time for this part. The allocated time may be used to assign fixed time limits to each item or can be used to estimate the total assessment time.- Returns:
- allocated time
- Compliance:
mandatory- This method must be implemented.
-
getChildAssessmentPartIds
IdList getChildAssessmentPartIds()Gets any child assessment partIds.- Returns:
Idsof the child assessment parts- Compliance:
mandatory- This method must be implemented.
-
getChildAssessmentParts
Gets any child assessment parts.- Returns:
- the child assessment parts
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartRecord
AssessmentPartRecord getAssessmentPartRecord(Type assessmentPartRecordType) throws OperationFailedException Gets the assessment part record corresponding to the givenAssessmentPartrecordType. This method is used to retrieve an object implementing the requested record. TheassessmentPartRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(assessmentPartRecordType)istrue.- Parameters:
assessmentPartRecordType- the type of the record to retrieve- Returns:
- the assessment part record
- Throws:
NullArgumentException-assessmentPartRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assessmentPartRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-