Objects¶
Assessment Part¶
Bases:
dlkit.osid.objects.OsidObject
,dlkit.osid.markers.Containable
,dlkit.osid.markers.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.Gets the assessment
Id
to which this rule belongs.Returns: Id
of an assessmentReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
Gets the assessment to which this rule belongs.
Returns: an assessment Return type: osid.assessment.Assessment
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Tests if this assessment part belongs to a parent assessment part.
Returns: true
if this part has a parent,false
if a rootReturn type: boolean
compliance: mandatory – This method must be implemented.
Gets the parent assessment
Id
.Returns: Id
of an assessmentReturn type: osid.id.Id
Raise: IllegalState
–has_parent_part()
isfalse
compliance: mandatory – This method must be implemented.
Gets the parent assessment.
Returns: the parent assessment part Return type: osid.assessment.authoring.AssessmentPart
Raise: IllegalState
–has_parent_part()
isfalse
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
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: true
if this part is a section,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
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 Return type: cardinal
compliance: mandatory – This method must be implemented.
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 Return type: osid.calendaring.Duration
compliance: mandatory – This method must be implemented.
Gets any child assessment part
Ids
.Returns: Ids
of the child assessment partsReturn type: osid.id.IdList
compliance: mandatory – This method must be implemented.
Gets any child assessment parts.
Returns: the child assessment parts Return type: osid.assessment.authoring.AssessmentPartList
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the assessment part record corresponding to the given
AssessmentPart
recordType
.This method is used to retrieve an object implementing the requested record. The
assessment_part_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(assessment_part_record_type)
istrue
.Parameters: assessment_part_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the assessment part record Return type: osid.assessment.authoring.records.AssessmentPartRecord
Raise: NullArgument
–assessment_part_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_part_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Assessment Part Form¶
Bases:
dlkit.osid.objects.OsidObjectForm
,dlkit.osid.objects.OsidContainableForm
,dlkit.osid.objects.OsidOperableForm
This is the form for creating and updating
AssessmentParts
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theAssessmentAuthoringSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.Gets the metadata for the weight.
Returns: metadata for the weight Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Gets the metadata for the allocated time.
Returns: metadata for the allocated time Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Gets the
AssessmentPartFormRecord
corresponding to the given assessment recordType
.Parameters: assessment_part_record_type ( osid.type.Type
) – the assessment part record typeReturns: the assessment part record Return type: osid.assessment.authoring.records.AssessmentPartFormRecord
Raise: NullArgument
–assessment_part_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(assessment_part_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Assessment Part List¶
Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
AssessmentPartList
provides a means for accessingAssessmentPart
elements sequentially either one at a time or many at a time.Examples: while (apl.hasNext()) { AssessmentPart assessmentPart = apl.getNextAssessmentPart(); }
- or
- while (apl.hasNext()) {
- AssessmentPart[] assessmentParts = apl.hetNextAssessmentParts(apl.available());
}
Gets the next
AssessmentPart
in this list.Returns: the next AssessmentPart
in this list. Thehas_next()
method should be used to test that a nextAssessmentPart
is available before calling this method.Return type: osid.assessment.authoring.AssessmentPart
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next set of
AssessmentPart
elements in this list which must be less than or equal to the number returned fromavailable()
.Parameters: n ( cardinal
) – the number ofAssessmentPart
elements requested which should be less than or equal toavailable()
Returns: an array of AssessmentPart
elements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.authoring.AssessmentPart
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Sequence Rule¶
Bases:
dlkit.osid.objects.OsidRule
A
SequenceRule
defines the ordering ofAssessmentParts
.Gets the assessment part
Id
to which this rule belongs.Returns: Id
of an assessment partReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
Gets the assessment part to which this rule belongs.
Returns: an assessment part Return type: osid.assessment.authoring.AssessmentPart
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next assessment part
Id
for success of this rule.Returns: Id
of an assessment partReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
Gets the next assessment part for success of this rule.
Returns: an assessment part Return type: osid.assessment.authoring.AssessmentPart
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the minimum score expressed as an integer (0-100) for this rule.
Returns: minimum score Return type: cardinal
compliance: mandatory – This method must be implemented.
Gets the maximum score expressed as an integer (0-100) for this rule.
Returns: maximum score Return type: cardinal
compliance: mandatory – This method must be implemented.
Tests if the score is applied to all previous assessment parts.
Returns: true
if the score is applied to all previous assessment parts,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
Qualifies
is_cumulative()
to apply to a specific list of assessment parts.If
is_cumulative()
istrue,
this method may return an empty list to mean all previous assessment parts.Returns: list of assessment parts Return type: osid.id.IdList
Raise: IllegalState
–is_cumulative()
isfalse
compliance: mandatory – This method must be implemented.
Qualifies
is_cumulative()
to apply to a specific list of assessment parts.If
is_cumulative()
istrue,
this method may return an empty list to mean all previous assessment parts.Returns: list of assessment parts Return type: osid.assessment.authoring.AssessmentPartList
Raise: IllegalState
–is_cumulative()
isfalse
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the assessment sequence rule record corresponding to the given
SequenceRule
recordType
.This method is used to retrieve an object implementing the requested record. The
sequence_rule_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(sequence_rule_record_type)
istrue
.Parameters: sequence_rule_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the assessment sequence rule record Return type: osid.assessment.authoring.records.SequenceRuleRecord
Raise: NullArgument
–sequence_rule_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(sequence_rule_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Sequence Rule Form¶
Bases:
dlkit.osid.objects.OsidRuleForm
This is the form for creating and updating sequence rules.
Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theSequenceSession
For each data element that may be set, metadata may be examined to provide display hints or data constraints.Gets the metadata for the minimum score.
Returns: metadata for the minimum score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Gets the metadata for the maximum score.
Returns: metadata for the maximum score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Gets the metadata for the cumulative flag.
Returns: metadata for the cumulative flag Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Gets the metadata for the applied assessment parts.
Returns: metadata for the applied assessment parts Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
Designates assessment parts to which the rule applies.
Parameters: assessment_part_ids ( osid.id.Id[]
) – the parts to which this rule should applyRaise: InvalidArgument
–assessment_part_ids
is invalidRaise: NoAccess
–Metadata.isReadOnly()
istrue
Raise: NullArgument
–assessment_part_ids
isnull
compliance: mandatory – This method must be implemented.
Gets the
SequenceRuleFormRecord
corresponding to the given sequence rule recordType
.Parameters: sequence_rule_record ( osid.type.Type
) – a sequence rule record typeReturns: the sequence rule record Return type: osid.assessment.authoring.records.SequenceRuleFormRecord
Raise: NullArgument
–sequence_rule_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(asequence_rule_record_type)
isfalse
compliance: mandatory – This method must be implemented.
Sequence Rule List¶
Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
SequenceRuleList
provides a means for accessingSequenceRule
elements sequentially either one at a time or many at a time.Examples: while (srl.hasNext()) { AssessmentSequenceRule rule = srl.getNextAssessmentSequenceRule(); }
- or
- while (srl.hasNext()) {
- AssessmentSequenceRule[] rules = srl.getNextAssessmentSequenceRules(srl.available());
}
Gets the next
SequenceRule
in this list.Returns: the next SequenceRule
in this list. Thehas_next()
method should be used to test that a nextSequenceRule
is available before calling this method.Return type: osid.assessment.authoring.SequenceRule
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next set of
SequenceRule
elements in this list which must be less than or equal to the number returned fromavailable()
.Parameters: n ( cardinal
) – the number ofSequenceRule
elements requested which should be less than or equal toavailable()
Returns: an array of SequenceRule
elements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.authoring.SequenceRule
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.