Interface TimePeriod

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject

public interface TimePeriod extends OsidObject

A TimePeriod represents a span of time in which recurring events are expanded.

  • Method Details

    • getStart

      DateTime getStart()
      Gets the start time of the time period.
      Returns:
      the start time
      Compliance:
      mandatory - This method must be implemented.
    • getEnd

      DateTime getEnd()
      Gets the end time of the time period.
      Returns:
      the end time
      Compliance:
      mandatory - This method must be implemented.
    • getExceptionIds

      IdList getExceptionIds()
      Gets the exception Ids to this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.
      Returns:
      list of exception event Ids
      Compliance:
      mandatory - This method must be implemented.
    • getExceptions

      EventList getExceptions() throws OperationFailedException
      Gets the exceptions to this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.
      Returns:
      event exceptions
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getTimePeriodRecord

      TimePeriodRecord getTimePeriodRecord(Type timePeriodRecordType) throws OperationFailedException
      Gets the time period record corresponding to the given TimePeriod record Type . This method is used to retrieve an object implementing the requested record. The timePeriodRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(timePeriodRecordType) is true .
      Parameters:
      timePeriodRecordType - the type of the record to retrieve
      Returns:
      the time period record
      Throws:
      NullArgumentException - timePeriodRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(timePeriodRecordType) is false
      Compliance:
      mandatory - This method must be implemented.