OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.ScheduleSlot
Implementsosid.OsidObject
osid.Containable
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.IdListthe schedules slot Ids
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlots
Description

Gets the schedule slots included inside this one.

Returnosid.calendaring.ScheduleSlotListthe schedule slots
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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
CompliancemandatoryThis 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
CompliancemandatoryThis 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
CompliancemandatoryThis 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
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetWeekdayTime
Description

Gets the time of this recurring schedule.

Returnosid.calendaring.Timethe time
ErrorsILLEGAL_STATE hasWeeklyInterval() is false
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetFixedInterval
Description

Gets the repeating interval.

Returnosid.calendaring.Durationthe interval
ErrorsILLEGAL_STATE hasFixedInterval() is false
CompliancemandatoryThis method must be implemented.
MethodgetDuration
Description

Gets the duration of the schedule slot.

Returnosid.calendaring.Durationthe duration
CompliancemandatoryThis 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.TypescheduleSlotRecordTypethe type of the record to retrieve
Returnosid.calendaring.records.ScheduleSlotRecordthe schedule slot record
ErrorsNULL_ARGUMENT scheduleSlotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(scheduleSlotRecordType) is false
CompliancemandatoryThis method must be implemented.