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.
-
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, 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 Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods 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
-
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 is 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.
-