pppizza
Class ThC_OpenClose

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--pppizza.ThC_OpenClose
All Implemented Interfaces:
java.lang.Runnable

public class ThC_OpenClose
extends java.lang.Thread

La classe ThC_OpenClose permette di creare un thread attraverso il quale la pizzeria aggiorna il server inviandogli una stringa contenente la parola chiave statotrue/statofalse se la pizzeria apre/chiude, il nome della pizzeria, la zona di appartenenza. Se la pizzeria apre viene anche inviato il numero attuale di pizze ed il valore del contatore. Tutto separato da virgole.


Field Summary
protected  Lista_Server lserver
           
protected  java.lang.String msg
           
protected  boolean stato
           
protected  javax.swing.JTextArea textArea
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThC_OpenClose(javax.swing.JTextArea ta, java.lang.String m, Lista_Server ls, boolean s)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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

textArea

protected javax.swing.JTextArea textArea

lserver

protected Lista_Server lserver

msg

protected java.lang.String msg

stato

protected boolean stato
Constructor Detail

ThC_OpenClose

public ThC_OpenClose(javax.swing.JTextArea ta,
                     java.lang.String m,
                     Lista_Server ls,
                     boolean s)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread