OSID Logo
OSID Specifications
course plan package
Version 3.1.0
Interfaceosid.course.plan.Lesson
Implementsosid.OsidRelationship
Used Byosid.course.plan.LessonAdminSession
osid.course.plan.LessonAnchor
osid.course.plan.LessonList
osid.course.plan.LessonLookupSession
Description

A Lesson is the application of a Docet to a Plan. The effectiveness of the lesson determines the applicability of the lesson. The lesson includes additional times for the starting and completion of the lesson.

MethodgetPlanId
Description

Gets the Id of the plan.

Returnosid.id.Id the plan Id
Compliancemandatory This method must be implemented.
MethodgetPlan
Description

Gets the plan.

Returnosid.course.plan.Plan the plan
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetDocetId
Description

Gets the Id of the docet.

Returnosid.id.Id the lesson Id
Compliancemandatory This method must be implemented.
MethodgetDocet
Description

Gets the docet.

Returnosid.course.syllabus.Docet the docet
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetActivityIds
Description

Gets the Ids of the activities to which this lesson applies.

Returnosid.id.IdList the activity Ids
Compliancemandatory This method must be implemented.
MethodgetActivities
Description

Gets the activities to which this lesson applies. A Lesson may span multiple scheduled activities.

Returnosid.course.ActivityList the activities
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPlannedStartTime
Description

Gets the planned start time within the first activity as determined by the Lesson scheduling. The time expressed as a duration relative to the starting time of the first activity.

Returnosid.calendaring.Duration the starting time
Compliancemandatory This method must be implemented.
MethodhasBegun
Description

Tests if this lesson has begun. hasBegun() is true for completed lessons. A lesson in progress is one where hasBegun() is true and isComplete() or isSkipped() is false.

Returnboolean true if this lesson has begun, false if not yet begun
Compliancemandatory This method must be implemented.
MethodgetActualStartTime
Description

Gets the actual start time. The time expressed as a duration relative to the starting time of the actual starting activity.

Returnosid.calendaring.Duration the actual starting time
ErrorsILLEGAL_STATE hasBegun() is false
Compliancemandatory This method must be implemented.
MethodgetActualStartingActivityId
Description

Gets the Id of the activity when this lesson actually began.

Returnosid.id.Id the starting activity Id
ErrorsILLEGAL_STATE hasBegun() is false
Compliancemandatory This method must be implemented.
MethodgetActualStartingActivity
Description

Gets the activity when this lesson actually began.

Returnosid.course.Activity the starting activity
ErrorsOPERATION_FAILED unable to complete request
ILLEGAL_STATE hasBegun() is false
Compliancemandatory This method must be implemented.
MethodisComplete
Description

Tests if this lesson has been marked as completed.

Returnboolean true if this lesson is complete, false if not completed
ErrorsILLEGAL_STATE hasBegun() is false
Compliancemandatory This method must be implemented.
MethodisSkipped
Description

Tests if this lesson has been marked as skipped. A skipped lesson may have been partially undertaken but isComplete() remains false.

Returnboolean true if this lesson is skipped, false if not completed
Compliancemandatory This method must be implemented.
MethodgetActualEndTime
Description

Gets the actual completion time. The time expressed as a duration relative to the starting time of the ending activity.

Returnosid.calendaring.Duration the actual end time
ErrorsILLEGAL_STATE isComplete() and isSkipped() is false
Compliancemandatory This method must be implemented.
MethodgetActualEndingActivityId
Description

Gets the Id of the activity when this lesson was completed or skipped.

Returnosid.id.Id the ending activity Id
ErrorsILLEGAL_STATE isComplete() and isSkipped() is false
Compliancemandatory This method must be implemented.
MethodgetActualEndingActivity
Description

Gets the activity when this lesson was completed or skipped.

Returnosid.course.Activity the ending activity
ErrorsOPERATION_FAILED unable to complete request
ILLEGAL_STATE isComplete() and isSkipped() is false
Compliancemandatory This method must be implemented.
MethodgetActualTimeSpent
Description

Gets the actual duration of this lesson if it has completed, in progress, or skipped.

Returnosid.calendaring.Duration the actual time spent
ErrorsILLEGAL_STATE hasBegun() is false
Compliancemandatory This method must be implemented.
MethodgetLessonRecord
Description

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

Parametersosid.type.TypelessonRecordType the type of lesson record to retrieve
Returnosid.course.plan.records.LessonRecord the lesson record
ErrorsNULL_ARGUMENT lessonRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(planRecordType) is false
Compliancemandatory This method must be implemented.