org.demac.context
Interface ContextService

All Superinterfaces:
Service
All Known Implementing Classes:
ContextServiceImpl

public interface ContextService
extends Service

Interface for the Context Service.


Method Summary
 void addManagementSevice(ContextManagementService service)
           
 void addServiceObjectListener(ServiceObjectListener listener)
          Method to add a listener to the list of ServiceObjectListeners.
 LocalDeviceContext getLocalDeviceContext()
           
 ContextManagementService getManagementSevice(ContextManagementHandle handle)
           
 RawDataService getService(ServiceHandle handle)
           
 RawDataService getService(ServiceHandle handle, Criteria criteria)
           
 void initLocalContext(LocalDeviceContext localContext)
           
 boolean isServiceAvailable(ServiceHandle handle, java.lang.String type)
           
 boolean isServiceAvailable(ServiceHandle handle, java.lang.String type, Criteria criteria)
           
 java.util.Iterator localAvailibleServices()
           
 void lookupServiceObject(java.lang.String id, ServiceHandle handle, Criteria criteria)
          Method to look up Services in the local registry and in the vicinity.
 int removeLokalService(ServiceHandle serviceHandle)
           
 void removeManagementSevice(ContextManagementHandle serviceHandle)
           
 void removeServiceObjectListener(ServiceObjectListener listener)
          Method to remove a listener from the list of ServiceObjectListeners.
 
Methods inherited from interface org.demac.Service
isStarted, start, stop
 

Method Detail

isServiceAvailable

boolean isServiceAvailable(ServiceHandle handle,
                           java.lang.String type)
                           throws UnknownServiceException,
                                  ServiceNotReachableException
Throws:
UnknownServiceException
ServiceNotReachableException

isServiceAvailable

boolean isServiceAvailable(ServiceHandle handle,
                           java.lang.String type,
                           Criteria criteria)
                           throws UnknownServiceException,
                                  ServiceNotReachableForCriteriaException
Throws:
UnknownServiceException
ServiceNotReachableForCriteriaException

getService

RawDataService getService(ServiceHandle handle)
                          throws UnknownServiceException
Throws:
UnknownServiceException

getService

RawDataService getService(ServiceHandle handle,
                          Criteria criteria)
                          throws UnknownServiceException,
                                 ServiceNotReachableForCriteriaException
Throws:
UnknownServiceException
ServiceNotReachableForCriteriaException

initLocalContext

void initLocalContext(LocalDeviceContext localContext)

getLocalDeviceContext

LocalDeviceContext getLocalDeviceContext()

addManagementSevice

void addManagementSevice(ContextManagementService service)

getManagementSevice

ContextManagementService getManagementSevice(ContextManagementHandle handle)

removeManagementSevice

void removeManagementSevice(ContextManagementHandle serviceHandle)

localAvailibleServices

java.util.Iterator localAvailibleServices()

removeLokalService

int removeLokalService(ServiceHandle serviceHandle)

addServiceObjectListener

void addServiceObjectListener(ServiceObjectListener listener)
Method to add a listener to the list of ServiceObjectListeners.

Parameters:
listener - the listener to add.

removeServiceObjectListener

void removeServiceObjectListener(ServiceObjectListener listener)
Method to remove a listener from the list of ServiceObjectListeners.

Parameters:
listener - the listener to remove.

lookupServiceObject

void lookupServiceObject(java.lang.String id,
                         ServiceHandle handle,
                         Criteria criteria)
                         throws UnknownServiceException,
                                ServiceNotReachableForCriteriaException
Method to look up Services in the local registry and in the vicinity.

Parameters:
handle - org.demac.context.registry.ServiceHandle of the service that should be looked up.
criteria - org.demac.context.base.Criteria representing the non-functional properties that must be regarded.
Throws:
UnknownServiceException
ServiceNotReachableForCriteriaException