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)isfalse
-
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)isfalse
-
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 request
-
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 request
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)isfalse
-
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)isfalse
-
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 request
-
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 request
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.IdList
-
learning_objectives¶ Gets the any
Objectivescorresponding to this item.Returns: the learning objectives Return type: osid.learning.ObjectiveListRaise: OperationFailed– unable to complete request
-
question_id¶ Gets the
Idof theQuestion.Returns: the question IdReturn type: osid.id.Id
-
question¶ Gets the question.
Returns: the question Return type: osid.assessment.QuestionRaise: OperationFailed– unable to complete request
-
answer_ids¶ Gets the
Idsof the answers.Questions may have more than one acceptable answer.
Returns: the answer IdsReturn type: osid.id.IdList
-
answers¶ Gets the answers.
Returns: the answers Return type: osid.assessment.AnswerListRaise: OperationFailed– unable to complete request
-
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)isfalse
-
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.Metadata
-
learning_objectives¶ Sets the learning objectives.
Parameters: objective_ids ( osid.id.Id[]) – the learning objectiveIdsRaise: InvalidArgument–objective_idsis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
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)isfalse
-
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 request
-
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 request
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.Id
-
level¶ Gets the
Gradecorresponding to the assessment difficulty.Returns: the level Return type: osid.grading.GradeRaise: OperationFailed– unable to complete request
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: boolean
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalse
-
rubric¶ Gets the rubric.
Returns: the assessment Return type: osid.assessment.AssessmentRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete request
-
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)isfalse
-
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.Metadata
-
level¶ Sets the level of difficulty expressed as a
Grade.Parameters: grade_id ( osid.id.Id) – the grade levelRaise: InvalidArgument–grade_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrueRaise: NullArgument–grade_idisnull
-
rubric_metadata¶ Gets the metadata for a rubric assessment.
Returns: metadata for the assesment Return type: osid.Metadata
-
rubric¶ Sets the rubric expressed as another assessment.
Parameters: assessment_id ( osid.id.Id) – the assessmentIdRaise: InvalidArgument–assessment_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrueRaise: NullArgument–assessment_idisnull
-
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)isfalse
-
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 request
-
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 request
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.Id
-
assessment¶ Gets the assessment corresponding to this assessment offereng.
Returns: the assessment Return type: osid.assessment.AssessmentRaise: OperationFailed– unable to complete request
-
level_id¶ Gets the
Idof aGradecorresponding to the assessment difficulty.Returns: a grade id Return type: osid.id.Id
-
level¶ Gets the
Gradecorresponding to the assessment difficulty.Returns: the level Return type: osid.grading.GradeRaise: OperationFailed– unable to complete request
-
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: boolean
-
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: boolean
-
has_start_time()¶ Tests if there is a fixed start time for this assessment.
Returns: trueif there is a fixed start time,falseotherwiseReturn type: boolean
-
start_time¶ Gets the start time for this assessment.
Returns: the designated start time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_start_time()isfalse
-
has_deadline()¶ Tests if there is a fixed end time for this assessment.
Returns: trueif there is a fixed end time,falseotherwiseReturn type: boolean
-
deadline¶ Gets the end time for this assessment.
Returns: the designated end time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_deadline()isfalse
-
has_duration()¶ Tests if there is a fixed duration for this assessment.
Returns: trueif there is a fixed duration,falseotherwiseReturn type: boolean
-
duration¶ Gets the duration for this assessment.
Returns: the duration Return type: osid.calendaring.DurationRaise: IllegalState–has_duration()isfalse
-
is_scored()¶ Tests if this assessment will be scored.
Returns: trueif this assessment will be scoredfalseotherwiseReturn type: boolean
-
score_system_id¶ Gets the grade system
Idfor the score.Returns: the grade system IdReturn type: osid.id.IdRaise: IllegalState–is_scored()isfalse
-
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 request
-
is_graded()¶ Tests if this assessment will be graded.
Returns: trueif this assessment will be graded,falseotherwiseReturn type: boolean
-
grade_system_id¶ Gets the grade system
Idfor the grade.Returns: the grade system IdReturn type: osid.id.IdRaise: IllegalState–is_graded()isfalse
-
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 request
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: boolean
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment offered IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalse
-
rubric¶ Gets the rubric.
Returns: the assessment offered Return type: osid.assessment.AssessmentOfferedRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete request
-
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)isfalse
-
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.Metadata
-
level¶ Sets the level of difficulty expressed as a
Grade.Parameters: grade_id ( osid.id.Id) – the grade levelRaise: InvalidArgument–grade_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
items_sequential_metadata¶ Gets the metadata for sequential operation.
Returns: metadata for the sequential flag Return type: osid.Metadata
-
items_sequential¶ Sets the items sequential flag.
Parameters: sequential ( boolean) –trueif the items are taken sequentially,falseif the items can be skipped and revisitedRaise: InvalidArgument–sequentialis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
items_shuffled_metadata¶ Gets the metadata for shuffling items.
Returns: metadata for the shuffled flag Return type: osid.Metadata
-
items_shuffled¶ Sets the shuffle flag.
The shuffle flag may be overidden by other assessment sequencing rules.
Parameters: shuffle ( boolean) –trueif the items are shuffled,falseif the items appear in the designated orderRaise: InvalidArgument–shuffleis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
start_time_metadata¶ Gets the metadata for the assessment start time.
Returns: metadata for the start time Return type: osid.Metadata
-
start_time¶ Sets the assessment start time.
Parameters: start ( osid.calendaring.DateTime) – assessment start timeRaise: InvalidArgument–startis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
deadline_metadata¶ Gets the metadata for the assessment deadline.
Returns: metadata for the end time Return type: osid.Metadata
-
deadline¶ Sets the assessment end time.
Parameters: end ( timestamp) – assessment end timeRaise: InvalidArgument–endis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
duration_metadata¶ Gets the metadata for the assessment duration.
Returns: metadata for the duration Return type: osid.Metadata
-
duration¶ Sets the assessment duration.
Parameters: duration ( osid.calendaring.Duration) – assessment durationRaise: InvalidArgument–durationis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
score_system_metadata¶ Gets the metadata for a score system.
Returns: metadata for the grade system Return type: osid.Metadata
-
score_system¶ Sets the scoring system.
Parameters: grade_system_id ( osid.id.Id) – the grade systemRaise: InvalidArgument–grade_system_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
grade_system_metadata¶ Gets the metadata for a grading system.
Returns: metadata for the grade system Return type: osid.Metadata
-
grade_system¶ Sets the grading system.
Parameters: grade_system_id ( osid.id.Id) – the grade systemRaise: InvalidArgument–grade_system_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
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)isfalse
-
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 request
-
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 request
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.Id
-
assessment_offered¶ Gets the
AssessmentOffered.Returns: the assessment offered Return type: osid.assessment.AssessmentOfferedRaise: OperationFailed– unable to complete request
-
taker_id¶ Gets the
Idof the resource who took or is taking this assessment.Returns: the resource IdReturn type: osid.id.Id
-
taker¶ Gets the
Resourcetaking this assessment.Returns: the resource Return type: osid.resource.ResourceRaise: OperationFailed– unable to complete request
-
taking_agent_id¶ Gets the
Idof theAgentwho took or is taking the assessment.Returns: the agent IdReturn type: osid.id.Id
-
taking_agent¶ Gets the
Agent.Returns: the agent Return type: osid.authentication.AgentRaise: OperationFailed– unable to complete request
-
has_started()¶ Tests if this assessment has begun.
Returns: trueif the assessment has begun,falseotherwiseReturn type: boolean
-
actual_start_time¶ Gets the time this assessment was started.
Returns: the start time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_started()isfalse
-
has_ended()¶ Tests if this assessment has ended.
Returns: trueif the assessment has ended,falseotherwiseReturn type: boolean
-
completion_time¶ Gets the time of this assessment was completed.
Returns: the end time Return type: osid.calendaring.DateTimeRaise: IllegalState–has_ended()isfalse
-
time_spent¶ Gets the total time spent taking this assessment.
Returns: the total time spent Return type: osid.calendaring.Duration
-
completion¶ Gets a completion percentage of the assessment.
Returns: the percent complete (0-100) Return type: cardinal
-
is_scored()¶ Tests if a score is available for this assessment.
Returns: trueif a score is available,falseotherwiseReturn type: boolean
-
score_system_id¶ Gets a score system
Idfor the assessment.Returns: the grade system Return type: osid.id.IdRaise: IllegalState–is_score()isfalse
-
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 request
-
score¶ Gets a score for the assessment.
Returns: the score Return type: decimalRaise: IllegalState–is_scored()isfalse
-
is_graded()¶ Tests if a grade is available for this assessment.
Returns: trueif a grade is available,falseotherwiseReturn type: boolean
-
grade_id¶ Gets a grade
Idfor the assessment.Returns: the grade Return type: osid.id.IdRaise: IllegalState–is_graded()isfalse
-
grade¶ Gets a grade for the assessment.
Returns: the grade Return type: osid.grading.GradeRaise: IllegalState–is_graded()isfalseRaise: OperationFailed– unable to complete request
-
feedback¶ Gets any overall comments available for this assessment by the grader.
Returns: comments Return type: osid.locale.DisplayText
-
has_rubric()¶ Tests if a rubric assessment is associated with this assessment.
Returns: trueif a rubric is available,falseotherwiseReturn type: boolean
-
rubric_id¶ Gets the
Idof the rubric.Returns: an assessment taken IdReturn type: osid.id.IdRaise: IllegalState–has_rubric()isfalse
-
rubric¶ Gets the rubric.
Returns: the assessment taken Return type: osid.assessment.AssessmentTakenRaise: IllegalState–has_rubric()isfalseRaise: OperationFailed– unable to complete request
-
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)isfalse
-
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.Metadata
-
taker¶ Sets the resource who will be taking this assessment.
Parameters: resource_id ( osid.id.Id) – the resource IdRaise: InvalidArgument–resource_idis invalidRaise: NoAccess–Metadata.isReadOnly()istrue
-
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)isfalse
-
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 request
-
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 request
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.Id
-
assessment_taken¶ Gets the
AssessmentTakeb.Returns: the assessment taken Return type: osid.assessment.AssessmentTakenRaise: OperationFailed– unable to complete request
-
has_allocated_time()¶ Tests if this section must be completed within an allocated time.
Returns: trueif this section has an allocated time,falseotherwiseReturn type: boolean
-
allocated_time¶ Gets the allocated time for this section.
Returns: allocated time Return type: osid.calendaring.DurationRaise: IllegalState–has_allocated_time()isfalse
-
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: boolean
-
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: boolean
-
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)isfalse
-
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 request
-
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 request
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)isfalse
-
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 request
-
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 request
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 request
-
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 request