communication
Class UnreliableCommElt.Sender

java.lang.Object
  extended by java.lang.Thread
      extended by communication.UnreliableCommElt.Sender
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
UnreliableCommElt

protected class UnreliableCommElt.Sender
extends java.lang.Thread

Thread that wait a given delay before sending a message


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  int delay
          The delay to wait before sending the message
protected  Message msg
          The message to send
protected  ProcessIdentifier senderId
          The identifier of the message sender
protected  TCPElement tcp
          TCP element used for sending the message
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UnreliableCommElt.Sender(TCPElement tcp, Message msg, int delay, ProcessIdentifier senderId)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tcp

protected TCPElement tcp
TCP element used for sending the message


msg

protected Message msg
The message to send


delay

protected int delay
The delay to wait before sending the message


senderId

protected ProcessIdentifier senderId
The identifier of the message sender

Constructor Detail

UnreliableCommElt.Sender

public UnreliableCommElt.Sender(TCPElement tcp,
                                Message msg,
                                int delay,
                                ProcessIdentifier senderId)
Parameters:
tcp -
msg -
delay -
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread