client
Class ComunicationRecieve

java.lang.Object
  extended by java.lang.Thread
      extended by client.ComunicationRecieve
All Implemented Interfaces:
java.lang.Runnable

public class ComunicationRecieve
extends java.lang.Thread

Trida pro prijmani zprav od serveru.

Author:
Jan Moulis

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ComunicationRecieve(Comunication comunication)
          Konstruktor tridy ComunicationRecieve nastavuje potrebne parametry pro prijem dat.
 
Method Summary
 boolean isRecived()
           
 void run()
          Spusteni vlakna pro naslouchani na dane IP adrese.
 void setRecived(boolean recived)
           
 
Methods inherited from class java.lang.Thread
activeCount, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, 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

ComunicationRecieve

public ComunicationRecieve(Comunication comunication)
Konstruktor tridy ComunicationRecieve nastavuje potrebne parametry pro prijem dat.

Parameters:
comunication - - odkaz na objekt komunikace
Method Detail

isRecived

public boolean isRecived()

setRecived

public void setRecived(boolean recived)

run

public void run()
Spusteni vlakna pro naslouchani na dane IP adrese.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread