public class ProgramScheduleImpl extends Object implements ProgramSchedule
| Constructor and Description |
|---|
ProgramScheduleImpl(Service service) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ProgramScheduleListener listener)
Registers an
SIChangeListener to be notified of changes to
program events on this ProgramScheduleImpl. |
Locator |
getServiceLocator()
Reports the transport-dependent locator referencing the service to
which this
ProgramSchedule belongs. |
void |
notifyListeners(ProgramScheduleEvent event)
Notify all listeners that this program schedule has been changed.
|
void |
removeListener(ProgramScheduleListener listener)
Called to unregister an
SIChangeListener. |
SIRequest |
retrieveCurrentProgramEvent(SIRequestor requestor)
Retrieves the current
ProgramEvent. |
SIRequest |
retrieveFutureProgramEvent(Date time,
SIRequestor requestor)
Retrieves the program event for the specified time.
|
SIRequest |
retrieveFutureProgramEvents(Date begin,
Date end,
SIRequestor requestor)
Retrieves all known program events on this service for the specified time
interval.
|
SIRequest |
retrieveNextProgramEvent(ProgramEvent anEvent,
SIRequestor requestor)
Retrieves an event which follows the specified event.
|
SIRequest |
retrieveProgramEvent(Locator locator,
SIRequestor requestor)
Retrieves a program event matching the locator.
|
public ProgramScheduleImpl(Service service)
public SIRequest retrieveCurrentProgramEvent(SIRequestor requestor)
ProgramEvent. The resulting
ProgramEvent will be available for immediate viewing.This method delivers its results asynchronously.
retrieveCurrentProgramEvent in interface ProgramSchedulerequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.ProgramEventpublic SIRequest retrieveFutureProgramEvent(Date time, SIRequestor requestor) throws SIException
This method delivers its results asynchronously.
retrieveFutureProgramEvent in interface ProgramScheduletime - The time which the program event should be searched for.
This is a UTC time.
This method delivers its results asynchronously.requestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.SIException - If time does not represent a
future time value.ProgramEventpublic SIRequest retrieveFutureProgramEvents(Date begin, Date end, SIRequestor requestor) throws SIException
This method returns data asynchronously.
retrieveFutureProgramEvents in interface ProgramSchedulebegin - Time identifying the beginning of the interval.
This is UTC time.end - Time identifying the end of the interval. This is
UTC time.requestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.SIException - If end represents a time value
before begin, or if end does not
represent a future time value.ProgramEventpublic SIRequest retrieveProgramEvent(Locator locator, SIRequestor requestor) throws InvalidLocatorException, SecurityException
This method returns data asynchronously.
retrieveProgramEvent in interface ProgramSchedulelocator - Locator referencing the ProgramEvent
of interest.requestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.InvalidLocatorException - If locator does not
reference a valid ProgramEvent.SecurityException - if the caller does not have
javax.tv.service.ReadPermission(locator)ProgramEvent,
ReadPermissionpublic void addListener(ProgramScheduleListener listener)
SIChangeListener to be notified of changes to
program events on this ProgramScheduleImpl.
This method is only a request for notification. No guarantee is
provided that the SI database will detect all, or even any,
changes to the ProgramScheduleImpl, or whether such changes
will be detected in a timely fashion.
If the specified SIChangeListener is already
registered, no action is performed.
addListener in interface ProgramSchedulelistener - An SIChangeListener to be notified of
changes to program events on this ProgramScheduleImpl.ProgramEventpublic void removeListener(ProgramScheduleListener listener)
SIChangeListener. If the
specified SIChangeListener is not registered, no
action is performed.removeListener in interface ProgramSchedulelistener - A previously registered listener.public SIRequest retrieveNextProgramEvent(ProgramEvent anEvent, SIRequestor requestor) throws SIException
This method delivers its results asynchronously.
retrieveNextProgramEvent in interface ProgramScheduleanEvent - A reference eventrequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.SIException - If event does not belong to this
ProgramSchedule.ProgramEventpublic Locator getServiceLocator()
ProgramSchedule belongs. Note that
applications may use this method to establish the identity of
a ProgramSchedule after it has changed.getServiceLocator in interface ProgramScheduleProgramSchedule belongs.ProgramScheduleEvent.getProgramSchedule()public void notifyListeners(ProgramScheduleEvent event)
Copyright © 2012 code4tv.com. All Rights Reserved.