Interface Activity
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
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 .
-
Method Summary
Modifier and TypeMethodDescriptiongetActivityRecord(Type activityRecordType) Gets the activity record corresponding to the givenActivityrecordType.This method is used to retrieve an object implementing the requested record.Gets theIdsof any assessments associated with this activity.Gets any assessments associated with this activity.Gets theIdsof any assets associated with this activity.Gets any assets associated with this activity.Gets theIdsof any courses associated with this activity.Gets any courses associated with this activity.Gets the related objective.Gets theIdof the related objective.booleanTests if this is an assessment based activity.booleanTests if this is an asset based activity.booleanTests if this is a course based activity.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.
-
Method Details
-
getObjectiveId
Id getObjectiveId()Gets theIdof the related objective.- Returns:
- the objective
Id - Compliance:
mandatory- This method must be implemented.
-
getObjective
Gets the related objective.- Returns:
- the related objective
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isAssetBasedActivity
boolean isAssetBasedActivity()Tests if this is an asset based activity.- Returns:
trueif this activity is based on assets,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssetIds
IdList getAssetIds()Gets theIdsof any assets associated with this activity.- Returns:
- list of asset
Ids - Throws:
IllegalStateException-isAssetBasedActivity()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAssets
Gets any assets associated with this activity.- Returns:
- list of assets
- Throws:
IllegalStateException-isAssetBasedActivity()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isCourseBasedActivity
boolean isCourseBasedActivity()Tests if this is a course based activity.- Returns:
trueif this activity is based on courses,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCourseIds
IdList getCourseIds()Gets theIdsof any courses associated with this activity.- Returns:
- list of course
Ids - Throws:
IllegalStateException-isCourseBasedActivity()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCourses
Gets any courses associated with this activity.- Returns:
- list of courses
- Throws:
IllegalStateException-isCourseBasedActivity()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isAssessmentBasedActivity
boolean isAssessmentBasedActivity()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,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentIds
IdList getAssessmentIds()Gets theIdsof any assessments associated with this activity.- Returns:
- list of assessment
Ids - Throws:
IllegalStateException-isAssessmentBasedActivity()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAssessments
Gets any assessments associated with this activity.- Returns:
- list of assessments
- Throws:
IllegalStateException-isAssessmentBasedActivity()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getActivityRecord
Gets the activity record corresponding to the givenActivityrecordType.This method is used to retrieve an object implementing the requested record. TheactivityRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(activityRecordType)istrue.- Parameters:
activityRecordType- the type of the record to retrieve- Returns:
- the activity record
- Throws:
NullArgumentException-activityRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-