org.universAAL.lddi.samples.activityhub.client
Class MyActivityHubContextListener
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Subscriber
org.universAAL.middleware.context.ContextSubscriber
org.universAAL.lddi.samples.activityhub.client.MyActivityHubContextListener
public class MyActivityHubContextListener
- extends ContextSubscriber
This class handles ontological context events by subscribing specific event patterns
on the uAAL context bus
This class is stateless; no objects (sensors) are stored here
LogUtil from uAAL-Middleware is used here
- Author:
- Thomas Fuxreiter (foex@gmx.at)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handleContextEvent
public void handleContextEvent(ContextEvent event)
- receive and process centext events
log to console
send event details to GUI as String[]
- Specified by:
handleContextEvent
in class ContextSubscriber
- Parameters:
event
- from context bus
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ContextSubscriber
- Method to be called when the communication of the Subsccriber with the
Context Bus is lost.
- Specified by:
communicationChannelBroken
in class ContextSubscriber
Copyright © 2014 universAAL Consortium. All Rights Reserved.