Interface ActivityUnit
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, Subjugateable
An ActivityUnit represents a canonical learning unit. A
canonical learning unit describes a kind of activity that will be offered
and is used for curriculum planning.
Like all OsidObjects, ActivityUnit is managed by its
OsidSessions and may not be accessed by concurrent processing
threads.
-
Method Summary
Modifier and TypeMethodDescriptiongetActivityUnitRecord(Type activityUnitRecordType) Gets the activity unit record corresponding to the givenActivityUnitrecordType.Gets the canonical course associated with this activity.Gets the canonical courseIdassociated with this activity.Gets the overall learning objectiveIdsfor this activity unit.Gets the overall learning objectives for this activity unit.Gets the total contact time for this activity.Gets the total time required for this activity.Gets the total indivudal time required for this activity.Gets the weekly contact time for ths activity.Gets the time required for this recurring effort on a weekly basis.Gets the weekly individual time for ths activity.booleanTests if this activity unit has associated learning objectives.booleanTests if this is a contact activity.booleanTests if this activity is recurring.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeMethods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusType
-
Method Details
-
getCourseId
Id getCourseId()Gets the canonical courseIdassociated with this activity.- Returns:
- the course
Id - Compliance:
mandatory- This method must be implemented.
-
getCourse
Gets the canonical course associated with this activity.- Returns:
- the course
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTotalTargetEffort
Duration getTotalTargetEffort()Gets the total time required for this activity.- Returns:
- the total effort
- Compliance:
mandatory- This method must be implemented.
-
isContact
boolean isContact()Tests if this is a contact activity.- Returns:
trueif this is a contact activity,falseif an independent activity- Compliance:
mandatory- This method must be implemented.
-
getTotalTargetContactTime
Duration getTotalTargetContactTime()Gets the total contact time for this activity.- Returns:
- the total effort
- Compliance:
mandatory- This method must be implemented.
-
getTotalTargetIndividualEffort
Duration getTotalTargetIndividualEffort()Gets the total indivudal time required for this activity.- Returns:
- the total individual effort
- Compliance:
mandatory- This method must be implemented.
-
isRecurringWeekly
boolean isRecurringWeekly()Tests if this activity is recurring.- Returns:
trueif this activity is recurring,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getWeeklyEffort
Duration getWeeklyEffort()Gets the time required for this recurring effort on a weekly basis.- Returns:
- the weekly time
- Throws:
IllegalStateException-isRecurringWeekly()isfalse- Compliance:
mandatory- This method must be implemented.
-
getWeeklyContactTime
Duration getWeeklyContactTime()Gets the weekly contact time for ths activity.- Returns:
- the weekly time
- Throws:
IllegalStateException-isRecurringWeekly()isfalse- Compliance:
mandatory- This method must be implemented.
-
getWeeklyIndividualEffort
Duration getWeeklyIndividualEffort()Gets the weekly individual time for ths activity.- Returns:
- the weekly time
- Throws:
IllegalStateException-isRecurringWeekly()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasLearningObjectives
boolean hasLearningObjectives()Tests if this activity unit has associated learning objectives.- Returns:
trueif this activity unit has a learning objective,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLearningObjectiveIds
IdList getLearningObjectiveIds()Gets the overall learning objectiveIdsfor this activity unit.- Returns:
Idsof thelearning objectives- Throws:
IllegalStateException-hasLearningObjectives()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLearningObjectives
Gets the overall learning objectives for this activity unit.- Returns:
- the learning objectives
- Throws:
IllegalStateException-hasLearningObjectives()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getActivityUnitRecord
ActivityUnitRecord getActivityUnitRecord(Type activityUnitRecordType) throws OperationFailedException Gets the activity unit record corresponding to the givenActivityUnitrecordType. This method is used to retrieve an object implementing the requested record. TheactivityUnitRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(activityUnitRecordType)istrue.- Parameters:
activityUnitRecordType- the type of activity unit record to retrieve- Returns:
- the activity unit record
- Throws:
NullArgumentException-activityUnitRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityUnitRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-