org.universAAL.middleware.context.impl
Class ContextStrategy

Package class diagram package ContextStrategy
java.lang.Object
  extended by java.lang.Thread
      extended by org.universAAL.middleware.bus.model.BusStrategy
          extended by org.universAAL.middleware.context.impl.ContextStrategy
All Implemented Interfaces:
Runnable

public class ContextStrategy
extends BusStrategy

Author:
mtazari - Saied Tazari

Nested Class Summary
static class ContextStrategy.ContextFilterer
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.model.BusStrategy
bus, busModule, commModule
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ContextStrategy(CommunicationModule cm)
           
 
Method Summary
protected  IContextStrategyDataFactory createContextStrategyDataFactory()
           
 void handle(BusMessage message, String senderID)
          Handle the message.
 
Methods inherited from class org.universAAL.middleware.bus.model.BusStrategy
buildChannelMessage, getBusMember, getLocalBusByName, handleMessage, run, send, setBus, stopThread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextStrategy

public ContextStrategy(CommunicationModule cm)
Method Detail

createContextStrategyDataFactory

protected IContextStrategyDataFactory createContextStrategyDataFactory()

handle

public void handle(BusMessage message,
                   String senderID)
Description copied from class: BusStrategy
Handle the message. This method is different from the handleMessage(), in that handeMessage() handle the message asynchronously, while queuing the messages to preserve the order of the messages. This method is executed synchronously, without any queuing.

Specified by:
handle in class BusStrategy
Parameters:
message - message
senderID - sender (bus member) ID
See Also:
BusStrategy.handleMessage(BusMessage, String)


Copyright © 2014 universAAL Consortium. All Rights Reserved.