org.universAAL.ui.dm.adapters
Class AdapterUserLocation

Package class diagram package AdapterUserLocation
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Subscriber
          extended by org.universAAL.middleware.context.ContextSubscriber
              extended by org.universAAL.ui.dm.adapters.AdapterUserLocation
All Implemented Interfaces:
IAdapter

public class AdapterUserLocation
extends ContextSubscriber
implements IAdapter

Acts as context subscriber to location of a given User and adds this location info to all UIRequests for that user. It adds the last user location as presentation location. This location may not be added if the information (ContextEvent) is not received, or if an amount of time has elapsed since the last event.

Author:
eandgrg, amedrano

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
AdapterUserLocation(ModuleContext context, Resource user)
           
 
Method Summary
 void adapt(UIRequest uiRequest)
          
 void communicationChannelBroken()
          
 void handleContextEvent(ContextEvent event)
          
 
Methods inherited from class org.universAAL.middleware.context.ContextSubscriber
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
 
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

AdapterUserLocation

public AdapterUserLocation(ModuleContext context,
                           Resource user)
Method Detail

communicationChannelBroken

public void communicationChannelBroken()

Specified by:
communicationChannelBroken in class ContextSubscriber

handleContextEvent

public void handleContextEvent(ContextEvent event)

Specified by:
handleContextEvent in class ContextSubscriber
Parameters:
event - The Context Event that matched the registered Patterns

adapt

public void adapt(UIRequest uiRequest)

Specified by:
adapt in interface IAdapter


Copyright © 2014 universAAL Consortium. All Rights Reserved.