pppizza
Class ThC_aggiorna_server

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

public class ThC_aggiorna_server
extends java.lang.Thread

La classe Th_aggiorna_server permette di creare un thread attraverso il quale la pizzeria aggiorna il server inviandogli una stringa contenente la parola chiave sottrai che significa che il server deve aggiornare il numero di pizze conosciute, il nome della pizzeria, la zona di appartenenza, 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  javax.swing.JTextArea textArea
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThC_aggiorna_server(javax.swing.JTextArea ta, java.lang.String m, Lista_Server ls)
           
 
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
Constructor Detail

ThC_aggiorna_server

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

run

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