public class AdapterUserLocation extends ContextSubscriber implements IAdapter
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.busResourceURI, owner, theBus
Constructor and Description |
---|
AdapterUserLocation(ModuleContext context,
Resource user) |
Modifier and Type | Method and Description |
---|---|
void |
adapt(UIRequest uiRequest) |
void |
communicationChannelBroken() |
void |
handleContextEvent(ContextEvent event) |
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
close, getComment, getLabel, getType, getURI, setComment, setLabel
public AdapterUserLocation(ModuleContext context, Resource user)
public void communicationChannelBroken()
communicationChannelBroken
in class ContextSubscriber
public void handleContextEvent(ContextEvent event)
handleContextEvent
in class ContextSubscriber
event
- The Context Event that matched the registered PatternsCopyright © 2018 universAAL Consortium. All rights reserved.