context.arch.comm.clients
Class DiscovererClient

java.lang.Object
  extended byjava.lang.Thread
      extended bycontext.arch.comm.clients.IndependentClient
          extended bycontext.arch.comm.clients.DiscovererClient
All Implemented Interfaces:
java.lang.Runnable

public class DiscovererClient
extends IndependentClient

This class is used by a context component to handle a communication with the discoverer while continuing a communication with another context component.

Author:
Agathe
See Also:
IndependentClient, Discoverer, BaseObject

Field Summary
protected  DataObject data
          The data to send
static boolean DEBUG
          Debug flag
protected  java.lang.String method
          The method
protected  java.lang.String otherParameter
          Other parameters
 
Fields inherited from class context.arch.comm.clients.IndependentClient
parent
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DiscovererClient(BaseObject baseObject, java.lang.String method, DataObject data)
          The DiscovererClient constructor
DiscovererClient(BaseObject baseObject, java.lang.String methodToUse, DataObject dataToSend, java.lang.String conditionParameter)
          The generic DiscovererClient constructor
 
Method Summary
 void debugprintln(java.lang.Object s)
          Print a message if the DEBUG mode is active
 void handleCommunication()
          This class overrides the handleCommunication() and process the communication
 
Methods inherited from class context.arch.comm.clients.IndependentClient
run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Debug flag


method

protected java.lang.String method
The method


data

protected DataObject data
The data to send


otherParameter

protected java.lang.String otherParameter
Other parameters

Constructor Detail

DiscovererClient

public DiscovererClient(BaseObject baseObject,
                        java.lang.String methodToUse,
                        DataObject dataToSend,
                        java.lang.String conditionParameter)
The generic DiscovererClient constructor

Parameters:
baseObject - The base object owning this DiscovererClient object
methodToUse - The method type of the data object to send to the discoverer
dataToSend - The data to send
conditionParameter - Other parameters

DiscovererClient

public DiscovererClient(BaseObject baseObject,
                        java.lang.String method,
                        DataObject data)
The DiscovererClient constructor

Parameters:
baseObject - The base object owning this DiscovererClient object
Method Detail

handleCommunication

public void handleCommunication()
This class overrides the handleCommunication() and process the communication

Specified by:
handleCommunication in class IndependentClient

debugprintln

public void debugprintln(java.lang.Object s)
Print a message if the DEBUG mode is active

Parameters:
s - Any object, even null