pppizza
Class Lista_Server

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--pppizza.Lista_Server
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class Lista_Server
extends java.util.LinkedList

See Also:
Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Lista_Server(java.lang.String path)
          il costruttore crea la lista dei server conosciuti leggendoli da un file la cui path viene passata come argomento al costruttore
 
Method Summary
 boolean aggiorna_on(java.lang.String ns, int p)
           
 void carica_server(java.lang.String nome, int porta, int stato)
          carica in fondo alla lista un nuovo server che gli arriva come argomento
 int num_server()
          Restituisce il numero di server nella lista
 void riattiva_tutti()
          Pone a 1 lo stato di tutti i server nella lista
 void stampa_lista()
           
 void stampa_lista(javax.swing.JTextArea textArea)
          stampa in finestra la lista dei server
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Lista_Server

public Lista_Server(java.lang.String path)
             throws java.io.IOException
il costruttore crea la lista dei server conosciuti leggendoli da un file la cui path viene passata come argomento al costruttore
Method Detail

aggiorna_on

public boolean aggiorna_on(java.lang.String ns,
                           int p)

stampa_lista

public void stampa_lista()

stampa_lista

public void stampa_lista(javax.swing.JTextArea textArea)
stampa in finestra la lista dei server

carica_server

public void carica_server(java.lang.String nome,
                          int porta,
                          int stato)
carica in fondo alla lista un nuovo server che gli arriva come argomento

num_server

public int num_server()
Restituisce il numero di server nella lista

riattiva_tutti

public void riattiva_tutti()
Pone a 1 lo stato di tutti i server nella lista