Interface Lesson
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets the activities to which this lesson applies.Gets theIdsof the activities to which this lesson applies.Gets the activity when this lesson was completed or skipped.Gets theIdof the activity when this lesson was completed or skipped.Gets the actual completion time.Gets the activity when this lesson actually began.Gets theIdof the activity when this lesson actually began.Gets the actual start time.Gets the actual duration of this lesson if it has completed, in progress, or skipped.getDocet()Gets the docet.Gets theIdof the docet.getLessonRecord(Type lessonRecordType) Gets the lesson record corresponding to the givenLessonrecordType.This method must be used to retrieve an object implementing the requested record.getPlan()Gets the plan.Gets theIdof the plan.Gets the planned start time within the first activity as determined by theLessonscheduling.booleanhasBegun()Tests if this lesson has begun.booleanTests if this lesson has been marked as completed.booleanTests if this lesson has been marked as skipped.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getPlanId
Id getPlanId()Gets theIdof the plan.- Returns:
- the plan
Id - Compliance:
mandatory- This method must be implemented.
-
getPlan
Gets the plan.- Returns:
- the plan
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDocetId
Id getDocetId()Gets theIdof the docet.- Returns:
- the lesson
Id - Compliance:
mandatory- This method must be implemented.
-
getDocet
Gets the docet.- Returns:
- the docet
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getActivityIds
IdList getActivityIds()Gets theIdsof the activities to which this lesson applies.- Returns:
- the activity
Ids - Compliance:
mandatory- This method must be implemented.
-
getActivities
Gets the activities to which this lesson applies. A Lesson may span multiple scheduled activities.- Returns:
- the activities
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPlannedStartTime
Duration getPlannedStartTime()Gets the planned start time within the first activity as determined by theLessonscheduling. The time expressed as a duration relative to the starting time of the first activity.- Returns:
- the starting time
- Compliance:
mandatory- This method must be implemented.
-
hasBegun
boolean hasBegun()Tests if this lesson has begun.hasBegun()istruefor completed lessons. A lesson in progress is one wherehasBegun()istrueandisComplete()orisSkipped()isfalse.- Returns:
trueif this lesson has begun,falseif not yet begun- Compliance:
mandatory- This method must be implemented.
-
getActualStartTime
Duration getActualStartTime()Gets the actual start time. The time expressed as a duration relative to the starting time of the actual starting activity.- Returns:
- the actual starting time
- Throws:
IllegalStateException-hasBegun()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActualStartingActivityId
Id getActualStartingActivityId()Gets theIdof the activity when this lesson actually began.- Returns:
- the starting activity
Id - Throws:
IllegalStateException-hasBegun()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActualStartingActivity
Gets the activity when this lesson actually began.- Returns:
- the starting activity
- Throws:
OperationFailedException- unable to complete requestIllegalStateException-hasBegun()isfalse- Compliance:
mandatory- This method must be implemented.
-
isComplete
boolean isComplete()Tests if this lesson has been marked as completed.- Returns:
trueif this lesson is complete,falseif not completed- Throws:
IllegalStateException-hasBegun()isfalse- Compliance:
mandatory- This method must be implemented.
-
isSkipped
boolean isSkipped()Tests if this lesson has been marked as skipped. A skipped lesson may have been partially undertaken butisComplete()remainsfalse.- Returns:
trueif this lesson is skipped,falseif not completed- Compliance:
mandatory- This method must be implemented.
-
getActualEndTime
Duration getActualEndTime()Gets the actual completion time. The time expressed as a duration relative to the starting time of the ending activity.- Returns:
- the actual end time
- Throws:
IllegalStateException-isComplete()andisSkipped()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActualEndingActivityId
Id getActualEndingActivityId()Gets theIdof the activity when this lesson was completed or skipped.- Returns:
- the ending activity
Id - Throws:
IllegalStateException-isComplete()andisSkipped()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActualEndingActivity
Gets the activity when this lesson was completed or skipped.- Returns:
- the ending activity
- Throws:
OperationFailedException- unable to complete requestIllegalStateException-isComplete()andisSkipped()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActualTimeSpent
Duration getActualTimeSpent()Gets the actual duration of this lesson if it has completed, in progress, or skipped.- Returns:
- the actual time spent
- Throws:
IllegalStateException-hasBegun()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLessonRecord
Gets the lesson record corresponding to the givenLessonrecordType.This method must be used to retrieve an object implementing the requested record. ThelessonRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(lessonRecordType)istrue.- Parameters:
lessonRecordType- the type of lesson record to retrieve- Returns:
- the lesson record
- Throws:
NullArgumentException-lessonRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(planRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-