Obok
Class Awaiter

java.lang.Object
  extended by java.lang.Thread
      extended by Obok.Awaiter
All Implemented Interfaces:
java.lang.Runnable

public class Awaiter
extends java.lang.Thread

Ta klasa sluzy do nasluchiwania watkow. Umozliwia komunikacje miedzy wieloma watkami a tym.
Jako skrzynke komunikacyjna uzywany jest obiekt ResStorage.

Author:
-Paweł poltreak@o2.pl
See Also:
ResStorage

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 GuiOPS jedit
           
 javax.swing.JProgressBar pbar
           
 Result res
           
 long time
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Awaiter(ResStorage c, java.lang.String who)
          Tworzy nowy Awaiter z obiektem repozytorium wynikow (ResStorage) i nazwa.
Awaiter(Result a, GuiOPS b)
           
 
Method Summary
 int get()
          Zsynchronizowana metoda Awaiter.
 void put(int i)
           
 void run()
           
 void SetStop()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

res

public Result res

pbar

public javax.swing.JProgressBar pbar

jedit

public GuiOPS jedit

time

public long time
Constructor Detail

Awaiter

public Awaiter(ResStorage c,
               java.lang.String who)
Tworzy nowy Awaiter z obiektem repozytorium wynikow (ResStorage) i nazwa.

Parameters:
c - Skrzynka komunikacyjna.
who - String opisujacy nowa nazwe Awaiter'a.

Awaiter

public Awaiter(Result a,
               GuiOPS b)
Method Detail

get

public int get()
Zsynchronizowana metoda Awaiter. Wykonywana w czasie zycia tego watku.


put

public void put(int i)

run

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

SetStop

public void SetStop()