org.dvb.spi.selection
Class SelectionService

java.lang.Object
  extended by org.dvb.spi.selection.SelectionService

public class SelectionService
extends java.lang.Object

A service that is reachable through a SelectionProvider.

Since:
MHP 1.1.3

Constructor Summary
SelectionService(javax.tv.locator.Locator serviceLocator, ServiceReference transportDependentReference, java.lang.String name)
          Construct a SelectionService object
 
Method Summary
 java.lang.String getName()
          Get the name of this service
 javax.tv.locator.Locator getServiceLocator()
          Get the locator to a service.
 ServiceReference getTransportDependentReference()
          Give the (opaque) reference to this service, as understood by the provider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionService

public SelectionService(javax.tv.locator.Locator serviceLocator,
                        ServiceReference transportDependentReference,
                        java.lang.String name)
Construct a SelectionService object

Parameters:
serviceLocator - The reference to the underlying service.
transportDependentReference - The reference used to actually tune this service
name - The name of this service.
See Also:
Service.getName()
Method Detail

getServiceLocator

public javax.tv.locator.Locator getServiceLocator()
Get the locator to a service. This is the locator reported through the Java TV APIs. This can be a transport-independent locator, such as a dvb: locator without a transport ID, or it can be the same transport-dependent locator as transportDependentReference.getLocator().

Returns:
The service locator

getTransportDependentReference

public ServiceReference getTransportDependentReference()
Give the (opaque) reference to this service, as understood by the provider.

Returns:
the transport dependent reference

getName

public java.lang.String getName()
Get the name of this service

Returns:
the name