
public class MyContextSubscriber extends ContextSubscriber
handleContextEvent(ContextEvent) is our callback method.busResourceURI, owner, theBus| Constructor and Description |
|---|
MyContextSubscriber(ModuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
communicationChannelBroken()
Method to be called when the communication of the Subsccriber with the
Context Bus is lost.
|
static ContextEventPattern[] |
getContextSubscriptionParams()
Create the context event patterns that describe which context events we
want to receive.
|
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.
|
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParamsclose, getComment, getLabel, getType, getURI, setComment, setLabelpublic MyContextSubscriber(ModuleContext context)
public static ContextEventPattern[] getContextSubscriptionParams()
public void handleContextEvent(ContextEvent event)
ContextSubscriberhandleContextEvent in class ContextSubscriberevent - The Context Event that matched the registered PatternsContextSubscriber.handleContextEvent(ContextEvent)public void communicationChannelBroken()
ContextSubscribercommunicationChannelBroken in class ContextSubscriberContextSubscriber.communicationChannelBroken()Copyright © 2018 universAAL Consortium. All rights reserved.