Interface Activity
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Subjugateable, Temporal
An Activity represents a recurring activity of a course
offering.
-
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 the activity unit associated with this activity.Gets the activity unitIdassociated with this activity.Gets the blackout dates for this activity.Gets the course offering associated with this activity.Gets the course offeringIdassociated with this activity.Gets the instructorIds.Gets the instructors.longGets the maximum number of students this activity can accommodate.longGets the minimum number of students this activity can have.Gets the scheduleIdsassociated with this activity.Gets the schedules associated with this activity.Gets the specific meeting times added to this activity.Gets the superseding activities whose sessions that override sessions of this activity.Gets the superseding activityIdswhose sessions override sessions of this activity.getTerm()Gets theTermof this offering.Gets theIdof theTermof this offering.Gets the total contact time for this activity.Gets the total time required for this activity.Gets the total individual 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 is a contact activity.booleanTests if this is an implicit or explicit activity.booleanTests if this activity is recurring.booleanTests if seating is limited.booleanTests if registration is required.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
-
getActivityUnitId
Id getActivityUnitId()Gets the activity unitIdassociated with this activity.- Returns:
- the activity unit
Id - Compliance:
mandatory- This method must be implemented.
-
getActivityUnit
Gets the activity unit associated with this activity.- Returns:
- the activity unit
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCourseOfferingId
Id getCourseOfferingId()Gets the course offeringIdassociated with this activity.- Returns:
- the course offering
Id - Compliance:
mandatory- This method must be implemented.
-
getCourseOffering
Gets the course offering associated with this activity.- Returns:
- the course offering
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTermId
Id getTermId()Gets theIdof theTermof this offering.- Returns:
- the
TermId - Compliance:
mandatory- This method must be implemented.
-
getTerm
Gets theTermof this offering.- Returns:
- the term
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isImplicit
boolean isImplicit()Tests if this is an implicit or explicit activity.- Returns:
trueif this is an implicit activity,falseif an explicit activity- Compliance:
mandatory- This method must be implemented.
-
getScheduleIds
IdList getScheduleIds()Gets the scheduleIdsassociated with this activity.- Returns:
- the schedule
Ids - Compliance:
mandatory- This method must be implemented.
-
getSchedules
Gets the schedules associated with this activity.- Returns:
- the schedules
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSupersedingActivityIds
IdList getSupersedingActivityIds()Gets the superseding activityIdswhose sessions override sessions of this activity.- Returns:
- the superseding activity
Ids - Compliance:
mandatory- This method must be implemented.
-
getSupersedingActivities
Gets the superseding activities whose sessions that override sessions of this activity.- Returns:
- the superseding activities
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSpecificMeetingTimes
MeetingTimeList getSpecificMeetingTimes()Gets the specific meeting times added to this activity.- Returns:
- a list of specific meeting times
- Compliance:
mandatory- This method must be implemented.
-
getBlackouts
DateTimeIntervalList getBlackouts()Gets the blackout dates for this activity. Activitiy sessions overlapping with the time intervals do not appear in the series.- Returns:
- the exceptions to the scheduled activity
- Compliance:
mandatory- This method must be implemented.
-
getInstructorIds
IdList getInstructorIds()Gets the instructorIds. If each activity has its own instructor, the headlining instructors may be returned.- Returns:
- the instructor
Ids - Compliance:
mandatory- This method must be implemented.
-
getInstructors
Gets the instructors. If each activity has its own instructor, the headlining instructors may be returned.- Returns:
- the sponsors
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
requiresRegistration
boolean requiresRegistration()Tests if registration is required.- Returns:
trueif this is a registration is required,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMinimumSeats
long getMinimumSeats()Gets the minimum number of students this activity can have.- Returns:
- the minimum seats
- Compliance:
mandatory- This method must be implemented.
-
isSeatingLimited
boolean isSeatingLimited()Tests if seating is limited.- Returns:
trueif this is a seating is limited,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMaximumSeats
long getMaximumSeats()Gets the maximum number of students this activity can accommodate.- Returns:
- the maximum seats
- Throws:
IllegalStateException-isSeatingLimited()isfalse- 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 individual 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.
-
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 activity record to retrieve- Returns:
- the activity record
- Throws:
NullArgumentException-activityRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-