ist.palcom.services.tilessimulator.communication
Class PoolCommunicationThread

java.lang.Object
  extended by ist.palcom.palcomthreads.PalcomThread
      extended by ist.palcom.palcomthreads.PalcomPriorityThread
          extended by ist.palcom.mal.CommunicationThread
              extended by ist.palcom.services.tilessimulator.communication.PoolCommunicationThread

public class PoolCommunicationThread
extends CommunicationThread

A CommmunicationThread that delivers messages based on information about link connectivity from the Pool. It also keeps track of connectivity information to be used by services. @see ConnectivityService There is no notion of orientation for the moment


Nested Class Summary
 class PoolCommunicationThread.MessageFromMedium
           
 
Field Summary
static boolean DIAG
           
 
Constructor Summary
PoolCommunicationThread(Tile tile, MediaManager mediaManager, java.lang.String interfaceID, PalcomThread distributor)
           
 
Method Summary
 URL getURL()
           
 void putMessageFromMedium(MessageWithURLEvent m)
          Used by Gateway
 void removeGateway()
           
 void run()
          This method is overridden by subclasses.
 void setGateway(Gateway gateway)
           
 void setTouchService(TouchService service)
           
 
Methods inherited from class ist.palcom.palcomthreads.PalcomPriorityThread
getPriority, setPriority
 
Methods inherited from class ist.palcom.palcomthreads.PalcomThread
askEvent, disableIOEvents, disablePeriodicEvents, enableIOEvent, enablePeriodicEvents, getScheduler, putEvent, terminate, waitEvent, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIAG

public static boolean DIAG
Constructor Detail

PoolCommunicationThread

public PoolCommunicationThread(Tile tile,
                               MediaManager mediaManager,
                               java.lang.String interfaceID,
                               PalcomThread distributor)
Method Detail

run

public void run()
Description copied from class: PalcomThread
This method is overridden by subclasses.

Overrides:
run in class PalcomThread

setGateway

public void setGateway(Gateway gateway)

removeGateway

public void removeGateway()

getURL

public URL getURL()
Specified by:
getURL in class CommunicationThread
Returns:
The URL for sending messages to this thread, a URL this thread listens at (protocol-specific URL).

putMessageFromMedium

public void putMessageFromMedium(MessageWithURLEvent m)
Used by Gateway

Parameters:
m -

setTouchService

public void setTouchService(TouchService service)