Interface Schedule
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Schedule is a scheduled time slot offered within a time
interval at a location. The time interval may be inferred from an
associated TimePeriod or managed explicitly without a
TimePeriod .
-
Method Summary
Modifier and TypeMethodDescriptionlonggetLimit()Gets the limit of the number of occurences of this schedule.Gets theLocation.Gets a descriptive location.Gets the locationId.Gets the end date of this schedule.getScheduleRecord(Type scheduleRecordType) Gets the schedule record corresponding to the givenSchedulerecordType.This method is used to retrieve an object implementing the requested record.Gets the schedule slot included inside this one.Gets theIdof the schedule slot.Gets the start date of this schedule.Gets theTimePeriodfor this recurring event.Gets theTimePeriod Idfor this recurring event.Gets a total duration for the entire schedule based on the duration of schedule slots and span of the schedule.booleanhasLimit()Tests if this schedule has a limit on the number of occurrences.booleanTests if a location is associated with this event.booleanTests if aTimePeriodis associated with this schedule.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.
-
Method Details
-
getScheduleSlotId
Id getScheduleSlotId()Gets theIdof the schedule slot.- Returns:
- the schedule slot
Id - Compliance:
mandatory- This method must be implemented.
-
getScheduleSlot
Gets the schedule slot included inside this one.- Returns:
- the schedule slot
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasTimePeriod
boolean hasTimePeriod()Tests if aTimePeriodis associated with this schedule. The time period determines the start and end time of the recurring series.- Returns:
trueif there is an associatedTimePeriod,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTimePeriodId
Id getTimePeriodId()Gets theTimePeriod Idfor this recurring event. ASchedulewith an associatedTimePeriodoverrides any start or end date set.- Returns:
- the time period
Id - Throws:
IllegalStateException-hasTimePeriod()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTimePeriod
Gets theTimePeriodfor this recurring event. ASchedulewith an associatedTimePeriodoverrides any start or end date set.- Returns:
- the time period
- Throws:
IllegalStateException-hasTimePeriod()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getScheduleStart
DateTime getScheduleStart()Gets the start date of this schedule. IfhasTimePeriod()istrue, the start date is the start date of the associatedTimePeriod.- Returns:
- the start date
- Compliance:
mandatory- This method must be implemented.
-
getScheduleEnd
DateTime getScheduleEnd()Gets the end date of this schedule. IfhasTimePeriod()istrue, the end date is the end date of the associatedTimePeriod.- Returns:
- the end date
- Compliance:
mandatory- This method must be implemented.
-
hasLimit
boolean hasLimit()Tests if this schedule has a limit on the number of occurrences.- Returns:
trueif there is a limitfalseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLimit
long getLimit()Gets the limit of the number of occurences of this schedule.- Returns:
- the limit
- Throws:
IllegalStateException-hasLimitl()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocationDescription
DisplayText getLocationDescription()Gets a descriptive location.- Returns:
- the location
- Compliance:
mandatory- This method must be implemented.
-
hasLocation
boolean hasLocation()Tests if a location is associated with this event.- Returns:
trueif there is an associated location,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationId
Id getLocationId()Gets the locationId.- Returns:
- a location
Id - Throws:
IllegalStateException-hasLocation()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocation
Gets theLocation.- Returns:
- a location
- Throws:
IllegalStateException-hasLocation()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTotalDuration
Duration getTotalDuration()Gets a total duration for the entire schedule based on the duration of schedule slots and span of the schedule.- Returns:
- the total duration
- Compliance:
mandatory- This method must be implemented.
-
getScheduleRecord
Gets the schedule record corresponding to the givenSchedulerecordType.This method is used to retrieve an object implementing the requested record. ThescheduleRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(scheduleRecordType)istrue.- Parameters:
scheduleRecordType- the type of the record to retrieve- Returns:
- the schedule record
- Throws:
NullArgumentException-scheduleRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(scheduleRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-