org.universAAL.context.che
Class ContextHistorySubscriber

Package class diagram package ContextHistorySubscriber
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.context.che.ContextHistorySubscriber

public class ContextHistorySubscriber
extends ContextSubscriber

The CHe subscriber subscribes for all context events in order to save them to the store.

Author:
Alvaro Fides Valero

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
ContextHistorySubscriber(ModuleContext context, Backend dbstore)
          Main constructor.
 
Method Summary
 void close()
          Unregisters the Subscriber from the Context bus.
 void communicationChannelBroken()
          Method to be called when the communication of the Subsccriber with the Context Bus is lost.
 void handleContextEvent(ContextEvent event)
          Method to be called when an Event forwarded in the Context Bus matches one of the Patterns registered by this Subscriber.
 
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
getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextHistorySubscriber

public ContextHistorySubscriber(ModuleContext context,
                                Backend dbstore)
Main constructor.

Parameters:
context - The uaal module context
dbstore - The store
Method Detail

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 void handleContextEvent(ContextEvent event)
Description copied from class: ContextSubscriber
Method to be called when an Event forwarded in the Context Bus matches one of the Patterns registered by this Subscriber.

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

close

public void close()
Description copied from class: BusMember
Unregisters the Subscriber from the Context bus.

Overrides:
close in class BusMember


Copyright © 2014 universAAL Consortium. All Rights Reserved.