Objects¶
Assessment Part¶
Bases:
dlkit.osid.objects.OsidObject,dlkit.osid.markers.Containable,dlkit.osid.markers.OperableAn
AssessmentPartrepresents a section of an assessment.AssessmentPartsmay 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
Idto which this rule belongs.Returns: Idof an assessmentReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Gets the assessment to which this rule belongs.
Returns: an assessment Return type: osid.assessment.AssessmentRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Tests if this assessment part belongs to a parent assessment part.
Returns: trueif this part has a parent,falseif a rootReturn type: booleancompliance: mandatory – This method must be implemented.
Gets the parent assessment
Id.Returns: Idof an assessmentReturn type: osid.id.IdRaise: IllegalState–has_parent_part()isfalsecompliance: mandatory – This method must be implemented.
Gets the parent assessment.
Returns: the parent assessment part Return type: osid.assessment.authoring.AssessmentPartRaise: IllegalState–has_parent_part()isfalseRaise: 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: trueif this part is a section,falseotherwiseReturn type: booleancompliance: 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: cardinalcompliance: 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.Durationcompliance: mandatory – This method must be implemented.
Gets any child assessment part
Ids.Returns: Idsof the child assessment partsReturn type: osid.id.IdListcompliance: mandatory – This method must be implemented.
Gets any child assessment parts.
Returns: the child assessment parts Return type: osid.assessment.authoring.AssessmentPartListRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the assessment part record corresponding to the given
AssessmentPartrecordType.This method is used to retrieve an object implementing the requested record. The
assessment_part_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy 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.AssessmentPartRecordRaise: NullArgument–assessment_part_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_part_record_type)isfalsecompliance: mandatory – This method must be implemented.
Assessment Part Form¶
Bases:
dlkit.osid.objects.OsidObjectForm,dlkit.osid.objects.OsidContainableForm,dlkit.osid.objects.OsidOperableFormThis is the form for creating and updating
AssessmentParts.Like all
OsidFormobjects, 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.Metadatacompliance: mandatory – This method must be implemented.
Gets the metadata for the allocated time.
Returns: metadata for the allocated time Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
Gets the
AssessmentPartFormRecordcorresponding 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.AssessmentPartFormRecordRaise: NullArgument–assessment_part_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_part_record_type)isfalsecompliance: mandatory – This method must be implemented.
Assessment Part List¶
Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AssessmentPartListprovides a means for accessingAssessmentPartelements 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
AssessmentPartin this list.Returns: the next AssessmentPartin this list. Thehas_next()method should be used to test that a nextAssessmentPartis available before calling this method.Return type: osid.assessment.authoring.AssessmentPartRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next set of
AssessmentPartelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAssessmentPartelements requested which should be less than or equal toavailable()Returns: an array of AssessmentPartelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.authoring.AssessmentPartRaise: 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.OsidRuleA
SequenceRuledefines the ordering ofAssessmentParts.Gets the assessment part
Idto which this rule belongs.Returns: Idof an assessment partReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
Gets the assessment part to which this rule belongs.
Returns: an assessment part Return type: osid.assessment.authoring.AssessmentPartRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next assessment part
Idfor success of this rule.Returns: Idof an assessment partReturn type: osid.id.Idcompliance: 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.AssessmentPartRaise: 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: cardinalcompliance: mandatory – This method must be implemented.
Gets the maximum score expressed as an integer (0-100) for this rule.
Returns: maximum score Return type: cardinalcompliance: mandatory – This method must be implemented.
Tests if the score is applied to all previous assessment parts.
Returns: trueif the score is applied to all previous assessment parts,falseotherwiseReturn type: booleancompliance: 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.IdListRaise: IllegalState–is_cumulative()isfalsecompliance: 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.AssessmentPartListRaise: IllegalState–is_cumulative()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the assessment sequence rule record corresponding to the given
SequenceRulerecordType.This method is used to retrieve an object implementing the requested record. The
sequence_rule_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy 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.SequenceRuleRecordRaise: NullArgument–sequence_rule_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(sequence_rule_record_type)isfalsecompliance: mandatory – This method must be implemented.
Sequence Rule Form¶
Bases:
dlkit.osid.objects.OsidRuleFormThis is the form for creating and updating sequence rules.
Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theSequenceSessionFor 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.Metadatacompliance: mandatory – This method must be implemented.
Gets the metadata for the maximum score.
Returns: metadata for the maximum score Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
Gets the metadata for the cumulative flag.
Returns: metadata for the cumulative flag Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
Gets the metadata for the applied assessment parts.
Returns: metadata for the applied assessment parts Return type: osid.Metadatacompliance: 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_idsis invalidRaise: NoAccess–Metadata.isReadOnly()istrueRaise: NullArgument–assessment_part_idsisnullcompliance: mandatory – This method must be implemented.
Gets the
SequenceRuleFormRecordcorresponding 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.SequenceRuleFormRecordRaise: NullArgument–sequence_rule_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(asequence_rule_record_type)isfalsecompliance: mandatory – This method must be implemented.
Sequence Rule List¶
Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,SequenceRuleListprovides a means for accessingSequenceRuleelements 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
SequenceRulein this list.Returns: the next SequenceRulein this list. Thehas_next()method should be used to test that a nextSequenceRuleis available before calling this method.Return type: osid.assessment.authoring.SequenceRuleRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Gets the next set of
SequenceRuleelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofSequenceRuleelements requested which should be less than or equal toavailable()Returns: an array of SequenceRuleelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.authoring.SequenceRuleRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.