Objects¶
Objective¶
-
class
dlkit.learning.objects.Objective¶ Bases:
dlkit.osid.objects.OsidObject,dlkit.osid.markers.FederateableAn
Objectiveis a statable learning objective.-
has_assessment()¶ Tests if an assessment is associated with this objective.
Returns: trueif an assessment exists,falseotherwiseReturn type: boolean
-
assessment_id¶ Gets the assessment
Idassociated with this learning objective.Returns: the assessment IdReturn type: osid.id.IdRaise: IllegalState–has_assessment()isfalse
-
assessment¶ Gets the assessment associated with this learning objective.
Returns: the assessment Return type: osid.assessment.AssessmentRaise: IllegalState–has_assessment()isfalseRaise: OperationFailed– unable to complete request
-
has_knowledge_category()¶ Tests if this objective has a knowledge dimension.
Returns: trueif a knowledge category exists,falseotherwiseReturn type: boolean
-
knowledge_category_id¶ Gets the grade
Idassociated with the knowledge dimension.Returns: the grade IdReturn type: osid.id.IdRaise: IllegalState–has_knowledge_category()isfalse
-
knowledge_category¶ Gets the grade associated with the knowledge dimension.
Returns: the grade Return type: osid.grading.GradeRaise: IllegalState–has_knowledge_category()isfalseRaise: OperationFailed– unable to complete request
-
has_cognitive_process()¶ Tests if this objective has a cognitive process type.
Returns: trueif a cognitive process exists,falseotherwiseReturn type: boolean
-
cognitive_process_id¶ Gets the grade
Idassociated with the cognitive process.Returns: the grade IdReturn type: osid.id.IdRaise: IllegalState–has_cognitive_process()isfalse
-
cognitive_process¶ Gets the grade associated with the cognitive process.
Returns: the grade Return type: osid.grading.GradeRaise: IllegalState–has_cognitive_process()isfalseRaise: OperationFailed– unable to complete request
-
get_objective_record(objective_record_type)¶ Gets the objective bank record corresponding to the given
ObjectiverecordType.This method is used to retrieve an object implementing the requested record. The
objective_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(objective_record_type)istrue.Parameters: objective_record_type ( osid.type.Type) – an objective record typeReturns: the objective record Return type: osid.learning.records.ObjectiveRecordRaise: NullArgument–objective_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_record_type)isfalse
-
Objective Form¶
-
class
dlkit.learning.objects.ObjectiveForm¶ Bases:
dlkit.osid.objects.OsidObjectForm,dlkit.osid.objects.OsidFederateableFormThis is the form for creating and updating
Objectives.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theObjectiveAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
assessment_metadata¶ Gets the metadata for an assessment.
Returns: metadata for the assessment Return type: osid.Metadata
-
assessment¶ Sets the assessment.
Parameters: assessment_id ( osid.id.Id) – the new assessmentRaise: InvalidArgument–assessment_idis invalidRaise: NoAccess–assessment_idcannot be modifiedRaise: NullArgument–assessment_idisnull
-
knowledge_category_metadata¶ Gets the metadata for a knowledge category.
Returns: metadata for the knowledge category Return type: osid.Metadata
-
knowledge_category¶ Sets the knowledge category.
Parameters: grade_id ( osid.id.Id) – the new knowledge categoryRaise: InvalidArgument–grade_idis invalidRaise: NoAccess–grade_idcannot be modifiedRaise: NullArgument–grade_idisnull
-
cognitive_process_metadata¶ Gets the metadata for a cognitive process.
Returns: metadata for the cognitive process Return type: osid.Metadata
-
cognitive_process¶ Sets the cognitive process.
Parameters: grade_id ( osid.id.Id) – the new cognitive processRaise: InvalidArgument–grade_idis invalidRaise: NoAccess–grade_idcannot be modifiedRaise: NullArgument–grade_idisnull
-
get_objective_form_record(objective_record_type)¶ Gets the
ObjectiveFormRecordcorresponding to the given objective recordType.Parameters: objective_record_type ( osid.type.Type) – the objective record typeReturns: the objective form record Return type: osid.learning.records.ObjectiveFormRecordRaise: NullArgument–objective_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_record_type)isfalse
-
Objective List¶
-
class
dlkit.learning.objects.ObjectiveList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,ObjectiveListprovides a means for accessingObjectiveelements sequentially either one at a time or many at a time.Examples: while (ol.hasNext()) { Objective objective = ol.getNextObjective(); }
- or
- while (ol.hasNext()) {
- Objective[] objectives = ol.getNextObjectives(ol.available());
}
-
next_objective¶ Gets the next
Objectivein this list.Returns: the next Objectivein this list. Thehas_next()method should be used to test that a nextObjectiveis available before calling this method.Return type: osid.learning.ObjectiveRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request
-
get_next_objectives(n)¶ Gets the next set of
Objectiveelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofObjectiveelements requested which should be less than or equal toavailable()Returns: an array of Objectiveelements.The length of the array is less than or equal to the number specified.Return type: osid.learning.ObjectiveRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request
Activity¶
-
class
dlkit.learning.objects.Activity¶ Bases:
dlkit.osid.objects.OsidObject,dlkit.osid.markers.SubjugateableAn
Activityrepresents learning material or other learning activities to meet an objective.An Activity has may relate to a set of
Assstsfor self learning, recommendedCoursesto take, or a learningAssessment. The learningAssessmentdiffers from theObjectiveAssessmentin that the latter used to test for proficiency in theObjective.Generally, an
Activityshould focus on one of assets, courses, assessments, or some other specific activity related to the objective described or related in theActivityRecord.-
objective_id¶ Gets the
Idof the related objective.Returns: the objective IdReturn type: osid.id.Id
-
objective¶ Gets the related objective.
Returns: the related objective Return type: osid.learning.ObjectiveRaise: OperationFailed– unable to complete request
-
is_asset_based_activity()¶ Tests if this is an asset based activity.
Returns: trueif this activity is based on assets,falseotherwiseReturn type: boolean
-
asset_ids¶ Gets the
Idsof any assets associated with this activity.Returns: list of asset IdsReturn type: osid.id.IdListRaise: IllegalState–is_asset_based_activity()isfalse
-
assets¶ Gets any assets associated with this activity.
Returns: list of assets Return type: osid.repository.AssetListRaise: IllegalState–is_asset_based_activity()isfalseRaise: OperationFailed– unable to complete request
-
is_course_based_activity()¶ Tests if this is a course based activity.
Returns: trueif this activity is based on courses,falseotherwiseReturn type: boolean
-
course_ids¶ Gets the
Idsof any courses associated with this activity.Returns: list of course IdsReturn type: osid.id.IdListRaise: IllegalState–is_course_based_activity()isfalse
-
courses¶ Gets any courses associated with this activity.
Returns: list of courses Return type: osid.course.CourseListRaise: IllegalState–is_course_based_activity()isfalseRaise: OperationFailed– unable to complete request
-
is_assessment_based_activity()¶ Tests if this is an assessment based activity.
These assessments are for learning the objective and not for assessing prodiciency in the objective.
Returns: trueif this activity is based on assessments,falseotherwiseReturn type: boolean
-
assessment_ids¶ Gets the
Idsof any assessments associated with this activity.Returns: list of assessment IdsReturn type: osid.id.IdListRaise: IllegalState–is_assessment_based_activity()isfalse
-
assessments¶ Gets any assessments associated with this activity.
Returns: list of assessments Return type: osid.assessment.AssessmentListRaise: IllegalState–is_assessment_based_activity()isfalseRaise: OperationFailed– unable to complete request
-
get_activity_record(activity_record_type)¶ Gets the activity record corresponding to the given
ActivityrecordType.This method is used to retrieve an object implementing the requested record. The
activity_record_typemay be theTypereturned inget_record_types()or any of its parents in aTypehierarchy wherehas_record_type(activity_record_type)istrue.Parameters: activity_record_type ( osid.type.Type) – the type of the record to retrieveReturns: the activity record Return type: osid.learning.records.ActivityRecordRaise: NullArgument–activity_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(activity_record_type)isfalse
-
Activity Form¶
-
class
dlkit.learning.objects.ActivityForm¶ Bases:
dlkit.osid.objects.OsidObjectForm,dlkit.osid.objects.OsidSubjugateableFormThis is the form for creating and updating
Activities.Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theActivityAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
assets_metadata¶ Gets the metadata for the assets.
Returns: metadata for the assets Return type: osid.Metadata
-
assets¶ Sets the assets.
Parameters: asset_ids ( osid.id.Id[]) – the assetIdsRaise: InvalidArgument–asset_idsis invalidRaise: NullArgument–asset_idsisnullRaise: NoAccess–Metadata.isReadOnly()istrue
-
courses_metadata¶ Gets the metadata for the courses.
Returns: metadata for the courses Return type: osid.Metadata
-
courses¶ Sets the courses.
Parameters: course_ids ( osid.id.Id[]) – the courseIdsRaise: InvalidArgument–course_idsis invalidRaise: NullArgument–course_idsisnullRaise: NoAccess–Metadata.isReadOnly()istrue
-
assessments_metadata¶ Gets the metadata for the assessments.
Returns: metadata for the assessments Return type: osid.Metadata
-
assessments¶ Sets the assessments.
Parameters: assessment_ids ( osid.id.Id[]) – the assessmentIdsRaise: InvalidArgument–assessment_idsis invalidRaise: NullArgument–assessment_idsisnullRaise: NoAccess–Metadata.isReadOnly()istrue
-
get_activity_form_record(activity_record_type)¶ Gets the
ActivityFormRecordcorresponding to the given activity recordType.Parameters: activity_record_type ( osid.type.Type) – the activity record typeReturns: the activity form record Return type: osid.learning.records.ActivityFormRecordRaise: NullArgument–activity_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(activity_record_type)isfalse
-
Activity List¶
-
class
dlkit.learning.objects.ActivityList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,ActivityListprovides a means for accessingActivityelements sequentially either one at a time or many at a time.Examples: while (al.hasNext()) { Activity activity = al.getNextActivity(); }
- or
- while (al.hasNext()) {
- Activity[] activities = al.getNextActivities(al.available());
}
-
next_activity¶ Gets the next
Activityin this list.Returns: the next Activityin this list. Thehas_next()method should be used to test that a nextActivityis available before calling this method.Return type: osid.learning.ActivityRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request
-
get_next_activities(n)¶ Gets the next set of
Activityelements in this list which must be less than or equal to the number returned fromavailable().Parameters: n ( cardinal) – the number ofActivityelements requested which should be less than or equal toavailable()Returns: an array of Activityelements.The length of the array is less than or equal to the number specified.Return type: osid.learning.ActivityRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request
Objective Bank Form¶
-
class
dlkit.learning.objects.ObjectiveBankForm¶ Bases:
dlkit.osid.objects.OsidCatalogFormThis is the form for creating and updating objective banks.
Like all
OsidFormobjects, various data elements may be set here for use in the create and update methods in theObjectiveBankAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
get_objective_bank_form_record(objective_bank_record_type)¶ Gets the
ObjectiveBankFormRecordcorresponding to the given objective bank recordType.Parameters: objective_bank_record_type ( osid.type.Type) – an objective bank record typeReturns: the objective bank form record Return type: osid.learning.records.ObjectiveBankFormRecordRaise: NullArgument–objective_bank_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: Unsupported–has_record_type(objective_bank_record_type)isfalse
-
Objective Bank List¶
-
class
dlkit.learning.objects.ObjectiveBankList¶ Bases:
dlkit.osid.objects.OsidListLike all
OsidLists,ObjectiveBankListprovides a means for accessingObjectiveBankelements sequentially either one at a time or many at a time.Examples: while (obl.hasNext()) { ObjectiveBank objectiveBanks = obl.getNextObjectiveBank(); }
- or
- while (obl.hasNext()) {
- ObjectiveBank[] objectivBanks = obl.getNextObjectiveBanks(obl.available());
}
-
next_objective_bank¶ Gets the next
ObjectiveBankin this list.Returns: the next ObjectiveBankin this list. Thehas_next()method should be used to test that a nextObjectiveBankis available before calling this method.Return type: osid.learning.ObjectiveBankRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request
-
get_next_objective_banks(n)¶ Gets the next set of
ObjectiveBankelements in this list which must be less than or equal to the return fromavailable().Parameters: n ( cardinal) – the number ofObjectiveBankelements requested which must be less than or equal toavailable()Returns: an array of ObjectiveBankelements.The length of the array is less than or equal to the number specified.Return type: osid.learning.ObjectiveBankRaise: IllegalState– no more elements available in this listRaise: OperationFailed– unable to complete request