OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.ScheduleSlot
Implementsosid.OsidObject
osid.Containable
Used Byosid.calendaring.Schedule
osid.calendaring.ScheduleSlotAdminSession
osid.calendaring.ScheduleSlotList
osid.calendaring.ScheduleSlotLookupSession
Description

A ScheduleSlot describes a repeating time slot. The time slot can be defined as a fixed time interval or be defined on a weekly interval specifying the days of the week.

MethodgetScheduleSlotIds
Description

Gets the Ids of the schedule slots included inside this one.

Returnosid.id.IdList the schedules slot Ids
Compliancemandatory This method must be implemented.
MethodgetScheduleSlots
Description

Gets the schedule slots included inside this one.

Returnosid.calendaring.ScheduleSlotList the schedule slots
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasWeeklyInterval
Description

Tests if this schedule has a weekly interval. If true, hasFixedInterval() must be false.

Returnboolean true if there is a weekly interval, false otherwise
Compliancemandatory This method must be implemented.
MethodgetWeekdays
Description

Gets the weekdays of the schedule. On a Gregorian calendar, Sunday is zero.

Returncardinal[] the weekdays
ErrorsILLEGAL_STATE hasWeeklyInterval() is false
Compliancemandatory This method must be implemented.
MethodhasWeekOfMonthInterval
Description

Tests if this schedule has a weekly interval based on the week of the month. This method must be false if hasWeeklyInterval() is false.

Returnboolean true if there is a week of month specified, false otherwise
Compliancemandatory This method must be implemented.
MethodgetWeeklyInterval
Description

Gets the number of weeks of the interval. 1 is every week. 2 is every other week. -1 is every week back in time.

Returninteger the week interval
ErrorsILLEGAL_STATE hasWeekdlyInterval() is false or hasWeekofMonthInterval() is true
Compliancemandatory This method must be implemented.
MethodgetWeekOfMonth
Description

Gets the week of the month for the interval. 1 is the first week of the month. -1 is the last week of the month. 0 is invalid.

Returninteger the week interval
ErrorsILLEGAL_STATE hasWeeklyInterval() is false or hasWeekofMonthInterval() is false
Compliancemandatory This method must be implemented.
MethodgetWeekdayTime
Description

Gets the time of this recurring schedule.

Returnosid.calendaring.Time the time
ErrorsILLEGAL_STATE hasWeeklyInterval() is false
Compliancemandatory This method must be implemented.
MethodhasFixedInterval
Description

Tests if this schedule has a fixed time interval.

Returnboolean true if there is a fixed time interval, false otherwise
Compliancemandatory This method must be implemented.
MethodgetFixedInterval
Description

Gets the repeating interval.

Returnosid.calendaring.Duration the interval
ErrorsILLEGAL_STATE hasFixedInterval() is false
Compliancemandatory This method must be implemented.
MethodgetDuration
Description

Gets the duration of the schedule slot.

Returnosid.calendaring.Duration the duration
Compliancemandatory This method must be implemented.
MethodgetScheduleSlotRecord
Description

Gets the schedule slot record corresponding to the given ScheduleSlot record Type. This method is used to retrieve an object implementing the requested record. The scheduleSlotRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(scheduleSlotRecordType) is true.

Parametersosid.type.TypescheduleSlotRecordType the type of the record to retrieve
Returnosid.calendaring.records.ScheduleSlotRecord the schedule slot record
ErrorsNULL_ARGUMENT scheduleSlotRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(scheduleSlotRecordType) is false
Compliancemandatory This method must be implemented.