Objects¶
Question¶
-
class
dlkit.assessment.objects.Question¶ Bases:
dlkit.osid.objects.OsidObjectA
Questionrepresents the question portion of an assessment item.Like all OSID objects, a
Questionis identified by itsIdand any persisted references should use theId.-
get_question_record(question_record_type)¶ Gets the item record corresponding to the given
QuestionrecordType.This method is used to retrieve an object implementing the requested record. The
question_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(question_record_type)istrue.Parameters: question_record_type ( osid.type.Type) – the type of the record to retrieveReturns: the question record Return type: osid.assessment.records.QuestionRecordRaise: NullArgument–question_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(question_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Question Form¶
-
class
dlkit.assessment.objects.QuestionForm¶ Bases:
dlkit.osid.objects.OsidObjectFormThis is the form for creating and updating
Questions.-
get_question_form_record(question_record_type)¶ Gets the
QuestionFormRecordcorresponding to the given question recordType.Parameters: question_record_type ( osid.type.Type) – the question record typeReturns: the question record Return type: osid.assessment.records.QuestionFormRecordRaise: NullArgument–question_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(question_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Question List¶
-
class
dlkit.assessment.objects.QuestionList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,QuestionListprovides a means for accessingQuestionelements sequentially either one at a time or many at a time.Examples: while (ql.hasNext()) { Question question = ql.getNextQuestion(); }
- or
- while (ql.hasNext()) {
- Question[] question = al.getNextQuestions(ql.available());
}
-
next_question¶ Gets the next
Questionin this list.Returns: the next Questionin this list. Thehas_next()method should be used to test that a nextQuestionis available before calling this method.Return type: osid.assessment.QuestionRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_questions(n)¶ Gets the next set of
Questionelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofQuestionelements requested which should be less than or equal toavailable()Returns: an array of Questionelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.QuestionRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Answer¶
-
class
dlkit.assessment.objects.Answer¶ Bases:
dlkit.osid.objects.OsidObjectAn
Answerrepresents the question portion of an assessment item.Like all OSID objects, an
Answeris identified by itsIdand any persisted references should use theId.-
get_answer_record(answer_record_type)¶ Gets the answer record corresponding to the given
AnswerrecordType.This method is used to retrieve an object implementing the requested records. The
answer_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(answer_record_type)istrue.Parameters: answer_record_type ( osid.type.Type) – the type of the record to retrieveReturns: the answer record Return type: osid.assessment.records.AnswerRecordRaise: NullArgument–answer_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(answer_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Answer Form¶
-
class
dlkit.assessment.objects.AnswerForm¶ Bases:
dlkit.osid.objects.OsidObjectFormThis is the form for creating and updating
Answers.-
get_answer_form_record(answer_record_type)¶ Gets the
AnswerFormRecordcorresponding to the given answer recordType.Parameters: answer_record_type ( osid.type.Type) – the answer record typeReturns: the answer record Return type: osid.assessment.records.AnswerFormRecordRaise: NullArgument–answer_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(answer_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Answer List¶
-
class
dlkit.assessment.objects.AnswerList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AnswerListprovides a means for accessingAnswerelements sequentially either one at a time or many at a time.Examples: while (al.hasNext()) { Answer answer = al.getNextAnswer(); }
- or
- while (al.hasNext()) {
- Answer[] answer = al.getNextAnswers(al.available());
}
-
next_answer¶ Gets the next
Answerin this list.Returns: the next Answerin this list. Thehas_next()method should be used to test that a nextAnsweris available before calling this method.Return type: osid.assessment.AnswerRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_answers(n)¶ Gets the next set of
Answerelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAnswerelements requested which should be less than or equal toavailable()Returns: an array of Answerelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.AnswerRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Item¶
-
class
dlkit.assessment.objects.Item¶ Bases:
dlkit.osid.objects.OsidObject,dlkit.osid.markers.AggregateableAn
Itemrepresents an individual assessment item such as a question.Like all OSID objects, a
Itemis identified by itsIdand any persisted references should use theId.An
Itemis composed of aQuestionand anAnswer.-
learning_objective_ids¶ Gets the
Idsof anyObjectivescorresponding to this item.Returns: the learning objective IdsReturn type: osid.id.IdListcompliance: mandatory – This method must be implemented.
-
learning_objectives¶ Gets the any
Objectivescorresponding to this item.Returns: the learning objectives Return type: osid.learning.ObjectiveListRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
question_id¶ Gets the
Idof theQuestion.Returns: the question IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
question¶ Gets the question.
Returns: the question Return type: osid.assessment.QuestionRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
answer_ids¶ Gets the
Idsof the answers.Questions may have more than one acceptable answer.
Returns: the answer IdsReturn type: osid.id.IdListcompliance: mandatory – This method must be implemented.
-
answers¶ Gets the answers.
Returns: the answers Return type: osid.assessment.AnswerListRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_item_record(item_record_type)¶ Gets the item record corresponding to the given
ItemrecordType.This method is used to retrieve an object implementing the requested records. The
item_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(item_record_type)istrue.Parameters: item_record_type ( osid.type.Type) – the type of the record to retrieveReturns: the item record Return type: osid.assessment.records.ItemRecordRaise: NullArgument–item_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(item_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Item Form¶
-
class
dlkit.assessment.objects.ItemForm¶ Bases:
dlkit.osid.objects.OsidObjectForm,dlkit.osid.objects.OsidAggregateableFormThis is the form for creating and updating
Items.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theItemAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
learning_objectives_metadata¶ Gets the metadata for learning objectives.
Returns: metadata for the learning objectives Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
learning_objectives¶
-
get_item_form_record(item_record_type)¶ Gets the
ItemnFormRecordcorresponding to the given item recordType.Parameters: item_record_type ( osid.type.Type) – the item record typeReturns: the item record Return type: osid.assessment.records.ItemFormRecordRaise: NullArgument–item_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(item_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Item List¶
-
class
dlkit.assessment.objects.ItemList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,ItemListprovides a means for accessingItemelements sequentially either one at a time or many at a time.Examples: while (il.hasNext()) { Item item = il.getNextItem(); }
- or
- while (il.hasNext()) {
- Item[] items = il.getNextItems(il.available());
}
-
next_item¶ Gets the next
Itemin this list.Returns: the next Itemin this list. Thehas_next()method should be used to test that a nextItemis available before calling this method.Return type: osid.assessment.ItemRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_items(n)¶ Gets the next set of
Itemelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofItemelements requested which should be less than or equal toavailable()Returns: an array of Itemelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.ItemRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Assessment¶
-
class
dlkit.assessment.objects.Assessment¶ Bases:
dlkit.osid.objects.OsidObjectAn
Assessmentrepresents a sequence of assessment items.Like all OSID objects, an
Assessmentis identified by itsIdand any persisted references should use theId.An
Assessmentmay have an accompanying rubric used for assessing performance. The rubric assessment is established canonically in thisAssessment.-
level_id¶ Gets the
Idof aGradecorresponding to the assessment difficulty.Returns: a grade IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
level¶ Gets the
Gradecorresponding to the assessment difficulty.Returns: the level Return type: osid.grading.GradeRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalsecompliance: mandatory – This method must be implemented.
-
rubric¶ Gets the rubric.
Returns: the assessment Return type: osid.assessment.AssessmentRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_assessment_record(assessment_record_type)¶ Gets the assessment record corresponding to the given
AssessmentrecordType.This method is used to retrieve an object implementing the requested record. The
assessment_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(assessment_record_type)istrue.Parameters: assessment_record_type ( osid.type.Type) – the type of the record to retrieveReturns: the assessment record Return type: osid.assessment.records.AssessmentRecordRaise: NullArgument–assessment_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Form¶
-
class
dlkit.assessment.objects.AssessmentForm¶ Bases:
dlkit.osid.objects.OsidObjectFormThis is the form for creating and updating
Assessments.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theAssessmentAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
level_metadata¶ Gets the metadata for a grade level.
Returns: metadata for the grade level Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
level¶
-
rubric_metadata¶ Gets the metadata for a rubric assessment.
Returns: metadata for the assesment Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
rubric¶
-
get_assessment_form_record(assessment_record_type)¶ Gets the
AssessmentFormRecordcorresponding to the given assessment recordType.Parameters: assessment_record_type ( osid.type.Type) – the assessment record typeReturns: the assessment record Return type: osid.assessment.records.AssessmentFormRecordRaise: NullArgument–assessment_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment List¶
-
class
dlkit.assessment.objects.AssessmentList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AssessmentListprovides a means for accessingAssessmentelements sequentially either one at a time or many at a time.Examples: while (al.hasNext()) { Assessment assessment = al.getNextAssessment(); }
- or
- while (al.hasNext()) {
- Assessment[] assessments = al.hetNextAssessments(al.available());
}
-
next_assessment¶ Gets the next
Assessmentin this list.Returns: the next Assessmentin this list. Thehas_next()method should be used to test that a nextAssessmentis available before calling this method.Return type: osid.assessment.AssessmentRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_assessments(n)¶ Gets the next set of
Assessmentelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAssessmentelements requested which should be less than or equal toavailable()Returns: an array of Assessmentelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.AssessmentRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Assessment Offered¶
-
class
dlkit.assessment.objects.AssessmentOffered¶ Bases:
dlkit.osid.objects.OsidObject,dlkit.osid.markers.SubjugateableAn
AssessmentOfferedrepresents a sequence of assessment items.Like all OSID objects, an
AssessmentOfferedis identified by itsIdand any persisted references should use theId.-
assessment_id¶ Gets the assessment
Idcorresponding to this assessment offering.Returns: the assessment id Return type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
assessment¶ Gets the assessment corresponding to this assessment offereng.
Returns: the assessment Return type: osid.assessment.AssessmentRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
level_id¶ Gets the
Idof aGradecorresponding to the assessment difficulty.Returns: a grade id Return type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
level¶ Gets the
Gradecorresponding to the assessment difficulty.Returns: the level Return type: osid.grading.GradeRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
are_items_sequential()¶ 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 revisitedReturn type: booleancompliance: mandatory – This method must be implemented.
-
are_items_shuffled()¶ Tests if the items or parts appear in a random order.
Returns: trueif the items appear in a random order,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
has_start_time()¶ Tests if there is a fixed start time for this assessment.
Returns: trueif there is a fixed start time,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
start_time¶ Gets the start time for this assessment.
Returns: the designated start time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_start_time()isfalsecompliance: mandatory – This method must be implemented.
-
has_deadline()¶ Tests if there is a fixed end time for this assessment.
Returns: trueif there is a fixed end time,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
deadline¶ Gets the end time for this assessment.
Returns: the designated end time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_deadline()isfalsecompliance: mandatory – This method must be implemented.
-
has_duration()¶ Tests if there is a fixed duration for this assessment.
Returns: trueif there is a fixed duration,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
duration¶ Gets the duration for this assessment.
Returns: the duration Return type: osid.calendaring.DurationRaise: IllegalState–has_duration()isfalsecompliance: mandatory – This method must be implemented.
-
is_scored()¶ Tests if this assessment will be scored.
Returns: trueif this assessment will be scoredfalseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
score_system_id¶ Gets the grade system
Idfor the score.Returns: the grade system IdReturn type: osid.id.IdRaise: IllegalState–is_scored()isfalsecompliance: mandatory – This method must be implemented.
-
score_system¶ Gets the grade system for the score.
Returns: the grade system Return type: osid.grading.GradeSystemRaise: IllegalState–is_scored()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
is_graded()¶ Tests if this assessment will be graded.
Returns: trueif this assessment will be graded,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
grade_system_id¶ Gets the grade system
Idfor the grade.Returns: the grade system IdReturn type: osid.id.IdRaise: IllegalState–is_graded()isfalsecompliance: mandatory – This method must be implemented.
-
grade_system¶ Gets the grade system for the grade.
Returns: the grade system Return type: osid.grading.GradeSystemRaise: IllegalState–is_graded()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment offered IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalsecompliance: mandatory – This method must be implemented.
-
rubric¶ Gets the rubric.
Returns: the assessment offered Return type: osid.assessment.AssessmentOfferedRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_assessment_offered_record(assessment_taken_record_type)¶ Gets the assessment offered record corresponding to the given
AssessmentOfferedrecordType.This method is used to retrieve an object implementing the requested record. The
assessment_offered_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(assessment_offered_record_type)istrue.Parameters: assessment_taken_record_type ( osid.type.Type) – an assessment offered record typeReturns: the assessment offered record Return type: osid.assessment.records.AssessmentOfferedRecordRaise: NullArgument–assessment_offered_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_offered_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Offered Form¶
-
class
dlkit.assessment.objects.AssessmentOfferedForm¶ Bases:
dlkit.osid.objects.OsidObjectForm,dlkit.osid.objects.OsidSubjugateableFormThis is the form for creating and updating an
AssessmentOffered.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theAssessmentOfferedAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
level_metadata¶ Gets the metadata for a grade level.
Returns: metadata for the grade level Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
level¶
-
items_sequential_metadata¶ Gets the metadata for sequential operation.
Returns: metadata for the sequential flag Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
items_sequential¶
-
items_shuffled_metadata¶ Gets the metadata for shuffling items.
Returns: metadata for the shuffled flag Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
items_shuffled¶
-
start_time_metadata¶ Gets the metadata for the assessment start time.
Returns: metadata for the start time Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
start_time¶
-
deadline_metadata¶ Gets the metadata for the assessment deadline.
Returns: metadata for the end time Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
deadline¶
-
duration_metadata¶ Gets the metadata for the assessment duration.
Returns: metadata for the duration Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
duration¶
-
score_system_metadata¶ Gets the metadata for a score system.
Returns: metadata for the grade system Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
score_system¶
-
grade_system_metadata¶ Gets the metadata for a grading system.
Returns: metadata for the grade system Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
grade_system¶
-
get_assessment_offered_form_record(assessment_offered_record_type)¶ Gets the
AssessmentOfferedFormRecordcorresponding to the given assessment recordType.Parameters: assessment_offered_record_type ( osid.type.Type) – the assessment offered record typeReturns: the assessment offered record Return type: osid.assessment.records.AssessmentOfferedFormRecordRaise: NullArgument–assessment_offered_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_offered_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Offered List¶
-
class
dlkit.assessment.objects.AssessmentOfferedList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AssessmentOfferedListprovides a means for accessingAssessmentTakenelements sequentially either one at a time or many at a time.Examples: while (aol.hasNext()) { AssessmentOffered assessment = aol.getNextAssessmentOffered();
- or
- while (aol.hasNext()) {
- AssessmentOffered[] assessments = aol.hetNextAssessmentsOffered(aol.available());
}
-
next_assessment_offered¶ Gets the next
AssessmentOfferedin this list.Returns: the next AssessmentOfferedin this list. Thehas_next()method should be used to test that a nextAssessmentOfferedis available before calling this method.Return type: osid.assessment.AssessmentOfferedRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_assessments_offered(n)¶ Gets the next set of
AssessmentOfferedelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAssessmentOfferedelements requested which should be less than or equal toavailable()Returns: an array of AssessmentOfferedelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.AssessmentOfferedRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Assessment Taken¶
-
class
dlkit.assessment.objects.AssessmentTaken¶ Bases:
dlkit.osid.objects.OsidObjectRepresents a taken assessment or an assessment in progress.
-
assessment_offered_id¶ Gets the
Idof theAssessmentOffered.Returns: the assessment offered IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
assessment_offered¶ Gets the
AssessmentOffered.Returns: the assessment offered Return type: osid.assessment.AssessmentOfferedRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
taker_id¶ Gets the
Idof the resource who took or is taking this assessment.Returns: the resource IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
taker¶ Gets the
Resourcetaking this assessment.Returns: the resource Return type: osid.resource.ResourceRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
taking_agent_id¶ Gets the
Idof theAgentwho took or is taking the assessment.Returns: the agent IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
taking_agent¶ Gets the
Agent.Returns: the agent Return type: osid.authentication.AgentRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
has_started()¶ Tests if this assessment has begun.
Returns: trueif the assessment has begun,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
actual_start_time¶ Gets the time this assessment was started.
Returns: the start time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_started()isfalsecompliance: mandatory – This method must be implemented.
-
has_ended()¶ Tests if this assessment has ended.
Returns: trueif the assessment has ended,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
completion_time¶ Gets the time of this assessment was completed.
Returns: the end time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_ended()isfalsecompliance: mandatory – This method must be implemented.
-
time_spent¶ Gets the total time spent taking this assessment.
Returns: the total time spent Return type: osid.calendaring.Durationcompliance: mandatory – This method must be implemented.
-
completion¶ Gets a completion percentage of the assessment.
Returns: the percent complete (0-100) Return type: cardinalcompliance: mandatory – This method must be implemented.
-
is_scored()¶ Tests if a score is available for this assessment.
Returns: trueif a score is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
score_system_id¶ Gets a score system
Idfor the assessment.Returns: the grade system Return type: osid.id.IdRaise: IllegalState–is_score()isfalsecompliance: mandatory – This method must be implemented.
-
score_system¶ Gets a grade system for the score.
Returns: the grade system Return type: osid.grading.GradeSystemRaise: IllegalState–is_scored()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
score¶ Gets a score for the assessment.
Returns: the score Return type: decimalRaise: IllegalState–is_scored()isfalsecompliance: mandatory – This method must be implemented.
-
is_graded()¶ Tests if a grade is available for this assessment.
Returns: trueif a grade is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
grade_id¶ Gets a grade
Idfor the assessment.Returns: the grade Return type: osid.id.IdRaise: IllegalState–is_graded()isfalsecompliance: mandatory – This method must be implemented.
-
grade¶ Gets a grade for the assessment.
Returns: the grade Return type: osid.grading.GradeRaise: IllegalState–is_graded()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
feedback¶ Gets any overall comments available for this assessment by the grader.
Returns: comments Return type: osid.locale.DisplayTextcompliance: mandatory – This method must be implemented.
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment taken IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalsecompliance: mandatory – This method must be implemented.
-
rubric¶ Gets the rubric.
Returns: the assessment taken Return type: osid.assessment.AssessmentTakenRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_assessment_taken_record(assessment_taken_record_type)¶ Gets the assessment taken record corresponding to the given
AssessmentTakenrecordType.This method is used to retrieve an object implementing the requested record. The
assessment_taken_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(assessment_taken_record_type)istrue.Parameters: assessment_taken_record_type ( osid.type.Type) – an assessment taken record typeReturns: the assessment taken record Return type: osid.assessment.records.AssessmentTakenRecordRaise: NullArgument–assessment_taken_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_taken_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Taken Form¶
-
class
dlkit.assessment.objects.AssessmentTakenForm¶ Bases:
dlkit.osid.objects.OsidObjectFormThis is the form for creating and updating an
AssessmentTaken.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theAssessmentTakenAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
taker_metadata¶ Gets the metadata for a resource to manually set which resource will be taking the assessment.
Returns: metadata for the resource Return type: osid.Metadatacompliance: mandatory – This method must be implemented.
-
taker¶
-
get_assessment_taken_form_record(assessment_taken_record_type)¶ Gets the
AssessmentTakenFormRecordcorresponding to the given assessment taken recordType.Parameters: assessment_taken_record_type ( osid.type.Type) – the assessment taken record typeReturns: the assessment taken record Return type: osid.assessment.records.AssessmentTakenFormRecordRaise: NullArgument–assessment_taken_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_taken_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Taken List¶
-
class
dlkit.assessment.objects.AssessmentTakenList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AssessmentTakenListprovides a means for accessingAssessmentTakenelements sequentially either one at a time or many at a time.Examples: while (atl.hasNext()) { AssessmentTaken assessment = atl.getNextAssessmentTaken();
- or
- while (atl.hasNext()) {
- AssessmentTaken[] assessments = atl.hetNextAssessmentsTaken(atl.available());
}
-
next_assessment_taken¶ Gets the next
AssessmentTakenin this list.Returns: the next AssessmentTakenin this list. Thehas_next()method should be used to test that a nextAssessmentTakenis available before calling this method.Return type: osid.assessment.AssessmentTakenRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_assessments_taken(n)¶ Gets the next set of
AssessmentTakenelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAssessmentTakenelements requested which should be less than or equal toavailable()Returns: an array of AssessmentTakenelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.AssessmentTakenRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Assessment Section¶
-
class
dlkit.assessment.objects.AssessmentSection¶ Bases:
dlkit.osid.objects.OsidObjectRepresents an assessment section.
An assessment section represents a cluster of questions used to organize the execution of an assessment. The section is the student aspect of an assessment part.
-
assessment_taken_id¶ Gets the
Idof theAssessmentTaken.Returns: the assessment taken IdReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
-
assessment_taken¶ Gets the
AssessmentTakeb.Returns: the assessment taken Return type: osid.assessment.AssessmentTakenRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
has_allocated_time()¶ Tests if this section must be completed within an allocated time.
Returns: trueif this section has an allocated time,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
allocated_time¶ Gets the allocated time for this section.
Returns: allocated time Return type: osid.calendaring.DurationRaise: IllegalState–has_allocated_time()isfalsecompliance: mandatory – This method must be implemented.
-
are_items_sequential()¶ Tests if the items or parts in this section are taken sequentially.
Returns: trueif the items are taken sequentially,falseif the items can be skipped and revisitedReturn type: booleancompliance: mandatory – This method must be implemented.
-
are_items_shuffled()¶ Tests if the items or parts appear in a random order.
Returns: trueif the items appear in a random order,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
get_assessment_section_record(assessment_section_record_type)¶ Gets the assessment section record corresponding to the given
AssessmentSectionrecordType.This method is used to retrieve an object implementing the requested record. The
assessment_section_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(assessment_section_record_type)istrue.Parameters: assessment_section_record_type ( osid.type.Type) – an assessment section record typeReturns: the assessment section record Return type: osid.assessment.records.AssessmentSectionRecordRaise: NullArgument–assessment_section_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(assessment_section_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Assessment Section List¶
-
class
dlkit.assessment.objects.AssessmentSectionList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,AssessmentSectionListprovides a means for accessingAssessmentSectionelements sequentially either one at a time or many at a time.Examples: while (asl.hasNext()) { AssessmentSection section = asl.getNextAssessmentSection();
- or
- while (asl.hasNext()) {
- AssessmentSection[] sections = asl.hetNextAssessmentSections(asl.available());
}
-
next_assessment_section¶ Gets the next
AssessmentSectionin this list.Returns: the next AssessmentSectionin this list. Thehas_next()method should be used to test that a nextAssessmentSectionis available before calling this method.Return type: osid.assessment.AssessmentSectionRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_assessment_sections(n)¶ Gets the next set of
AssessmentSectionelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofAssessmentSectionelements requested which should be less than or equal toavailable()Returns: an array of AssessmentSectionelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.AssessmentSectionRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Bank¶
-
class
dlkit.assessment.objects.Bank(abc_assessment_objects.Bank, osid_objects.OsidCatalog)¶ -
:noindex: -
get_bank_record(bank_record_type)¶ Gets the bank record corresponding to the given
BankrecordType.This method is used to retrieve an object implementing the requested record. The
bank_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(bank_record_type)istrue.Parameters: bank_record_type ( osid.type.Type) – a bank record typeReturns: the bank record Return type: osid.assessment.records.BankRecordRaise: NullArgument–bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(bank_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Bank Form¶
-
class
dlkit.assessment.objects.BankForm¶ Bases:
dlkit.osid.objects.OsidCatalogFormThis is the form for creating and updating banks.
Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theBankAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
get_bank_form_record(bank_record_type)¶ Gets the
BankFormRecordcorresponding to the given bank recordType.Parameters: bank_record_type ( osid.type.Type) – a bank record typeReturns: the bank record Return type: osid.assessment.records.BankFormRecordRaise: NullArgument–bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(bank_record_type)isfalsecompliance: mandatory – This method must be implemented.
-
Bank List¶
-
class
dlkit.assessment.objects.BankList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,BankListprovides a means for accessingBankelements sequentially either one at a time or many at a time.Examples: while (bl.hasNext()) { Bank bank = bl.getNextBank(); }
- or
- while (bl.hasNext()) {
- Bank[] banks = bl.getNextBanks(bl.available());
}
-
next_bank¶ Gets the next
Bankin this list.Returns: the next Bankin this list. Thehas_next()method should be used to test that a nextBankis available before calling this method.Return type: osid.assessment.BankRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_banks(n)¶ Gets the next set of
Bankelements in this list which must be less than or equal to the return fromavailable().Parameters: n ( cardinal) – the number ofBankelements requested which must be less than or equal toavailable()Returns: an array of Bankelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.BankRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Bank Node¶
-
class
dlkit.assessment.objects.BankNode¶ Bases:
dlkit.osid.objects.OsidNodeThis interface is a container for a partial hierarchy retrieval.
The number of hierarchy levels traversable through this interface depend on the number of levels requested in the
BankHierarchySession.-
bank¶ Gets the
Bankat this node.Returns: the bank represented by this node Return type: osid.assessment.Bankcompliance: mandatory – This method must be implemented.
-
parent_bank_nodes¶ Gets the parents of this bank.
Returns: the parents of this node Return type: osid.assessment.BankNodeListcompliance: mandatory – This method must be implemented.
-
child_bank_nodes¶ Gets the children of this bank.
Returns: the children of this node Return type: osid.assessment.BankNodeListcompliance: mandatory – This method must be implemented.
-
Bank Node List¶
-
class
dlkit.assessment.objects.BankNodeList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,BankNodeListprovides a means for accessingBankNodeelements sequentially either one at a time or many at a time.Examples: while (bnl.hasNext()) { BankNode node = bnl.getNextBankNode(); }
- or
- while (bnl.hasNext()) {
- BankNode[] nodes = bnl.getNextBankNodes(bnl.available());
}
-
next_bank_node¶ Gets the next
BankNodein this list.Returns: the next BankNodein this list. Thehas_next()method should be used to test that a nextBankNodeis available before calling this method.Return type: osid.assessment.BankNodeRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_bank_nodes(n)¶ Gets the next set of
BankNodeelements in this list which must be less than or equal to the return fromavailable().Parameters: n ( cardinal) – the number ofBankNodeelements requested which must be less than or equal toavailable()Returns: an array of BanklNodeelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.BankNodeRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
Response List¶
-
class
dlkit.assessment.objects.ResponseList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,ResponseListprovides a means for accessingResponseelements sequentially either one at a time or many at a time.Examples: while (rl.hasNext()) { Response response = rl.getNextResponse(); }
- or
- while (rl.hasNext()) {
- Response[] responses = rl.getNextResponses(rl.available());
}
-
next_response¶ Gets the next
Responsein this list.Returns: the next Responsein this list. Thehas_next()method should be used to test that a nextResponseis available before calling this method.Return type: osid.assessment.ResponseRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_responses(n)¶ Gets the next set of
Responseelements in this list which must be less than or equal to the return fromavailable().Parameters: n ( cardinal) – the number ofResponseelements requested which must be less than or equal toavailable()Returns: an array of Responseelements.The length of the array is less than or equal to the number specified.Return type: osid.assessment.ResponseRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete requestcompliance: mandatory – This method must be implemented.