org.universAAL.support.utils
Class WrapperS

Package class diagram package WrapperS
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.service.ServiceCallee
              extended by org.universAAL.support.utils.WrapperS

public class WrapperS
extends ServiceCallee

This class is for internal use by the utility API only. It is just a Service Callee that associates calls to its handleCall method to an associated ISListener.

Author:
alfiva

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
protected WrapperS(ModuleContext context, ServiceProfile[] realizedServices, ISListener l)
          Constructor that takes the listener to associate.
 
Method Summary
 void communicationChannelBroken()
          This abstract method is called for each member of the bus when the bus is being stopped.
 ServiceResponse handleCall(ServiceCall s)
          The actual service method of the ServiceCallee.
 
Methods inherited from class org.universAAL.middleware.service.ServiceCallee
addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperS

protected WrapperS(ModuleContext context,
                   ServiceProfile[] realizedServices,
                   ISListener l)
Constructor that takes the listener to associate.

Parameters:
context - The uAAL Module Context.
realizedServices - Service Profiles describing the services to provide.
l - The associated ISListener.
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: ServiceCallee
This abstract method is called for each member of the bus when the bus is being stopped.

Specified by:
communicationChannelBroken in class ServiceCallee

handleCall

public ServiceResponse handleCall(ServiceCall s)
Description copied from class: ServiceCallee
The actual service method of the ServiceCallee. It is called by the bus whenever there is a call that need to be serviced by this ServiceCallee.

Specified by:
handleCall in class ServiceCallee
Parameters:
s - the call that needs to be serviced.
Returns:
the result of the call execution.


Copyright © 2014 universAAL Consortium. All Rights Reserved.