OSID Logo
OSID Specifications
learning package
Version 3.1.0
Interfaceosid.learning.Activity
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.learning.ActivityAdminSession
osid.learning.ActivityList
osid.learning.ActivityLookupSession
Description

An Activity represents learning material or other learning activities to meet an objective. An Activity has may relate to a set of Asssts for self learning, recommended Courses to take, or a learning Assessment. The learning Assessment differs from the Objective Assessment in that the latter used to test for proficiency in the Objective.

Generally, an Activity should focus on one of assets, courses, assessments, or some other specific activity related to the objective described or related in the ActivityRecord.

MethodgetObjectiveId
Description

Gets the Id of the related objective.

Returnosid.id.Id the objective Id
Compliancemandatory This method must be implemented.
MethodgetObjective
Description

Gets the related objective.

Returnosid.learning.Objective the related objective
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisAssetBasedActivity
Description

Tests if this is an asset based activity.

Returnboolean true if this activity is based on assets, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAssetIds
Description

Gets the Ids of any assets associated with this activity.

Returnosid.id.IdList list of asset Ids
ErrorsILLEGAL_STATE isAssetBasedActivity() is false
Compliancemandatory This method must be implemented.
MethodgetAssets
Description

Gets any assets associated with this activity.

Returnosid.repository.AssetList list of assets
ErrorsILLEGAL_STATE isAssetBasedActivity() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisCourseBasedActivity
Description

Tests if this is a course based activity.

Returnboolean true if this activity is based on courses, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCourseIds
Description

Gets the Ids of any courses associated with this activity.

Returnosid.id.IdList list of course Ids
ErrorsILLEGAL_STATE isCourseBasedActivity() is false
Compliancemandatory This method must be implemented.
MethodgetCourses
Description

Gets any courses associated with this activity.

Returnosid.course.CourseList list of courses
ErrorsILLEGAL_STATE isCourseBasedActivity() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisAssessmentBasedActivity
Description

Tests if this is an assessment based activity. These assessments are for learning the objective and not for assessing prodiciency in the objective.

Returnboolean true if this activity is based on assessments, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAssessmentIds
Description

Gets the Ids of any assessments associated with this activity.

Returnosid.id.IdList list of assessment Ids
ErrorsILLEGAL_STATE isAssessmentBasedActivity() is false
Compliancemandatory This method must be implemented.
MethodgetAssessments
Description

Gets any assessments associated with this activity.

Returnosid.assessment.AssessmentList list of assessments
ErrorsILLEGAL_STATE isAssessmentBasedActivity() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetActivityRecord
Description

Gets the activity record corresponding to the given Activity record Type.This method is used to retrieve an object implementing the requested record. The activityRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(activityRecordType) is true.

Parametersosid.type.TypeactivityRecordType the type of the record to retrieve
Returnosid.learning.records.ActivityRecord the activity record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
Compliancemandatory This method must be implemented.