org.universAAL.kinect.adapter.defaultComponents
Class DefaultContextSubscriber
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Subscriber
org.universAAL.middleware.context.ContextSubscriber
org.universAAL.kinect.adapter.defaultComponents.DefaultContextSubscriber
public class DefaultContextSubscriber
- extends ContextSubscriber
This class is a ContextSubscriber
which calls back an
IContextCallback
if receives a ContextEvent.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultContextSubscriber
public DefaultContextSubscriber(ModuleContext context,
ContextEventPattern[] initialSubscriptions,
IContextCallback callback)
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
handleContextEvent
public final void handleContextEvent(ContextEvent event)
- This methods just logs the received
ContextEvent
and forwards it
if the callback field is not null.
- Specified by:
handleContextEvent
in class ContextSubscriber
- Parameters:
event
- The Context Event that matched the registered Patterns
Copyright © 2014 universAAL Consortium. All Rights Reserved.