org.universAAL.ui.dm.adapters
Class AdapterUserLocation
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Subscriber
org.universAAL.middleware.context.ContextSubscriber
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 UIRequest
s 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdapterUserLocation
public AdapterUserLocation(ModuleContext context,
Resource user)
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.