Interface ScheduleSlot
- All Superinterfaces:
Browsable, Containable, Extensible, Identifiable, OsidObject
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets the duration of the schedule slot.Gets the repeating interval.Gets theIdsof the schedule slots included inside this one.getScheduleSlotRecord(Type scheduleSlotRecordType) Gets the schedule slot record corresponding to the givenScheduleSlotrecordType.Gets the schedule slots included inside this one.long[]Gets the weekdays of the schedule.Gets the time of this recurring schedule.longGets the number of weeks of the interval.longGets the week of the month for the interval.booleanTests if this schedule has a fixed time interval.booleanTests if this schedule has a weekly interval.booleanTests if this schedule has a weekly interval based on the week of the month.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 Containable
isSequesteredModifier and TypeMethodDescriptionbooleanTests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.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.
-
Method Details
-
getScheduleSlotIds
IdList getScheduleSlotIds()Gets theIdsof the schedule slots included inside this one.- Returns:
- the schedules slot
Ids - Compliance:
mandatory- This method must be implemented.
-
getScheduleSlots
Gets the schedule slots included inside this one.- Returns:
- the schedule slots
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasWeeklyInterval
boolean hasWeeklyInterval()Tests if this schedule has a weekly interval. Iftrue,hasFixedInterval()must befalse.- Returns:
trueif there is a weekly interval,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getWeekdays
long[] getWeekdays()Gets the weekdays of the schedule. On a Gregorian calendar, Sunday is zero.- Returns:
- the weekdays
- Throws:
IllegalStateException-hasWeeklyInterval()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasWeekOfMonthInterval
boolean hasWeekOfMonthInterval()Tests if this schedule has a weekly interval based on the week of the month. This method must befalseifhasWeeklyInterval()isfalse.- Returns:
trueif there is a week of month specified,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getWeeklyInterval
long getWeeklyInterval()Gets the number of weeks of the interval. 1 is every week. 2 is every other week. -1 is every week back in time.- Returns:
the week interval- Throws:
IllegalStateException-hasWeekdlyInterval()isfalseorhasWeekofMonthInterval()istrue- Compliance:
mandatory- This method must be implemented.
-
getWeekOfMonth
long getWeekOfMonth()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.- Returns:
the week interval- Throws:
IllegalStateException-hasWeeklyInterval()isfalseorhasWeekofMonthInterval()isfalse- Compliance:
mandatory- This method must be implemented.
-
getWeekdayTime
Time getWeekdayTime()Gets the time of this recurring schedule.- Returns:
- the time
- Throws:
IllegalStateException-hasWeeklyInterval()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasFixedInterval
boolean hasFixedInterval()Tests if this schedule has a fixed time interval.- Returns:
trueif there is a fixed time interval,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getFixedInterval
Duration getFixedInterval()Gets the repeating interval.- Returns:
- the interval
- Throws:
IllegalStateException-hasFixedInterval()isfalse- Compliance:
mandatory- This method must be implemented.
-
getDuration
Duration getDuration()Gets the duration of the schedule slot.- Returns:
- the duration
- Compliance:
mandatory- This method must be implemented.
-
getScheduleSlotRecord
ScheduleSlotRecord getScheduleSlotRecord(Type scheduleSlotRecordType) throws OperationFailedException Gets the schedule slot record corresponding to the givenScheduleSlotrecordType. This method is used to retrieve an object implementing the requested record. ThescheduleSlotRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(scheduleSlotRecordType)istrue.- Parameters:
scheduleSlotRecordType- the type of the record to retrieve- Returns:
- the schedule slot record
- Throws:
NullArgumentException-scheduleSlotRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(scheduleSlotRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-