public interface AssessmentPart extends OsidObject, Containable, Operable
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.
Modifier and Type | Method and Description |
---|---|
Duration |
getAllocatedTime()
Gets the allocated time for this part.
|
Assessment |
getAssessment()
Gets the assessment to which this rule belongs.
|
Id |
getAssessmentId()
Gets the assessment
Id to which this rule belongs. |
AssessmentPart |
getAssessmentPart()
Gets the parent assessment.
|
Id |
getAssessmentPartId()
Gets the parent assessment
Id. |
AssessmentPartRecord |
getAssessmentPartRecord(Type assessmentPartRecordType)
Gets the assessment part record corresponding to the given
AssessmentPart record Type. |
IdList |
getChildAssessmentPartIds()
Gets any child assessment part
Ids. |
AssessmentPartList |
getChildAssessmentParts()
Gets any child assessment parts.
|
long |
getWeight()
Gets an integral weight factor for this assessment part used for
scoring.
|
boolean |
hasParentPart()
Tests if this assessment part belongs to a parent assessment part.
|
boolean |
isSection()
Tests if this part should be visible as a section in an assessment.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isSequestered
isActive, isDisabled, isEnabled, isOperational
Id getAssessmentId()
Id
to which this rule belongs. Id
of an assessmentmandatory
- This method must be implemented. Assessment getAssessment() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasParentPart()
true
if this part has a parent, false
if a rootmandatory
- This method must be implemented. Id getAssessmentPartId()
Id.
Id
of an assessmentIllegalStateException
- hasParentPart()
is false
mandatory
- This method must be implemented. AssessmentPart getAssessmentPart() throws OperationFailedException
IllegalStateException
- hasParentPart()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isSection()
true
if this part is a section, false
otherwisemandatory
- This method must be implemented. long getWeight()
mandatory
- This method must be implemented. Duration getAllocatedTime()
mandatory
- This method must be implemented. IdList getChildAssessmentPartIds()
Ids.
Ids
of the child assessment partsmandatory
- This method must be implemented. AssessmentPartList getChildAssessmentParts() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. AssessmentPartRecord getAssessmentPartRecord(Type assessmentPartRecordType) throws OperationFailedException
AssessmentPart
record Type.
This method is used
to retrieve an object implementing the requested record. The
assessmentPartRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(assessmentPartRecordType)
is true
.assessmentPartRecordType
- the type of the record to retrieveNullArgumentException
- assessmentPartRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentPartRecordType)
is
false
mandatory
- This method must be implemented.