OSID Logo
OSID Specifications
learning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.learning.Activity
Implementsosid.OsidObject
osid.Subjugateable
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.Idthe objective Id
CompliancemandatoryThis method must be implemented.
MethodgetObjective
Description

Gets the related objective.

Returnosid.learning.Objectivethe related objective
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetAssetIds
Description

Gets the Ids of any assets associated with this activity.

Returnosid.id.IdListlist of asset Ids
ErrorsILLEGAL_STATE isAssetBasedActivity() is false
CompliancemandatoryThis method must be implemented.
MethodgetAssets
Description

Gets any assets associated with this activity.

Returnosid.repository.AssetListlist of assets
ErrorsILLEGAL_STATE isAssetBasedActivity() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetCourseIds
Description

Gets the Ids of any courses associated with this activity.

Returnosid.id.IdListlist of course Ids
ErrorsILLEGAL_STATE isCourseBasedActivity() is false
CompliancemandatoryThis method must be implemented.
MethodgetCourses
Description

Gets any courses associated with this activity.

Returnosid.course.CourseListlist of courses
ErrorsILLEGAL_STATE isCourseBasedActivity() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentIds
Description

Gets the Ids of any assessments associated with this activity.

Returnosid.id.IdListlist of assessment Ids
ErrorsILLEGAL_STATE isAssessmentBasedActivity() is false
CompliancemandatoryThis method must be implemented.
MethodgetAssessments
Description

Gets any assessments associated with this activity.

Returnosid.assessment.AssessmentListlist of assessments
ErrorsILLEGAL_STATE isAssessmentBasedActivity() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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.TypeactivityRecordTypethe type of the record to retrieve
Returnosid.learning.records.ActivityRecordthe activity record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
CompliancemandatoryThis method must be implemented.