public class CSubsMulti extends ContextSubscriber
busResourceURI, owner, theBus
Modifier | Constructor and Description |
---|---|
protected |
CSubsMulti(ModuleContext context,
ContextEventPattern[] initialSubscriptions,
String query)
Create the subscriber
|
Modifier and Type | Method and Description |
---|---|
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.
|
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
close, getComment, getLabel, getType, getURI, setComment, setLabel
protected CSubsMulti(ModuleContext context, ContextEventPattern[] initialSubscriptions, String query)
mcontext
- the module mcontextinitialSubscriptions
- the mcontext event pattern to react toquery
- the query to execute when receiving an eventpublic void communicationChannelBroken()
ContextSubscriber
communicationChannelBroken
in class ContextSubscriber
public void handleContextEvent(ContextEvent event)
ContextSubscriber
handleContextEvent
in class ContextSubscriber
event
- The Context Event that matched the registered PatternsCopyright © 2018 universAAL Consortium. All rights reserved.