Index

A C G I L M R S U W 
All Classes and Interfaces|All Packages|Serialized Form

A

addUser(String) - Method in class Word
Metodo che aggiunge un utente alla lista degli utenti che hanno già giocato la parola corrente (Secret-Word).
addUser(Map<String, Object>) - Method in class UserList
Metodo che aggiunge una <Map<String, Object>> rappresentante un Utente alla lista degli utenti registrati.
addUser(User) - Method in class UserList
Metodo che aggiunge un nuovo utente alla lista degli utenti registrati.

C

ClientMain - Class in Unnamed Package
Classe che rappresenta il client.
ClientMain() - Constructor for class ClientMain
 
ClientSetup - Class in Unnamed Package
Classe che rappresenta le proprietà del client.
ClientSetup(String) - Constructor for class ClientSetup
Costruttore della classe ClientSetup.
containsUser(String) - Method in class Word
Metodo che controlla se l'utente passato come argomento è presente nell'insieme degli utenti che hanno già giocato la parola corrrente (Secret-Word).
containsWord(String) - Method in class WordList
Metodo che controlla se la parola passata come argomento è presente nel vocabolario.
copy() - Method in class User
Metodo che crea una copia profonda di this.

G

Game - Class in Unnamed Package
Classe che implementa un thread per la gestione dell'interazione tra il server e un client.
Game(Socket, UserList, WordList, MulticastSender) - Constructor for class Game
Costruttore della classe Game.
getCurrentWord() - Method in class WordList
Metodo che restituisce la parola corrente.
getGiocate() - Method in class User
Restituisce il numero di partite giocate.
getGuessDistribution() - Method in class User
Metodo che restituisce la distribuzione dei tentativi impiegati per arrivare alla soluzione.
getHostname() - Method in class ClientSetup
Metodo che restituisce l'hostname del server.
getLoggati() - Method in class UserList
Metodo che restituisce una insieme di stringhe contenente i nomi degli utenti loggati.
getMask(String) - Method in class Word
Metodo che restituisce una maschera (String) di caratteri speciali che rappresenta la corrispondenza tra la parola rappresentata dall'oggetto Word e la stringa passata come argomento.
getMulticastGroupAddress() - Method in class ClientSetup
Metodo che restituisce l'indirizzo del gruppo multicast.
getMulticastGroupAddress() - Method in class ServerSetup
Restituisce l'indirizzo del gruppo multicast.
getMulticastGroupPort() - Method in class ClientSetup
Metodo che restituisce la porta del gruppo multicast.
getMulticastGroupPort() - Method in class ServerSetup
Restituisce il numero di porta del gruppo multicast.
getName() - Method in class User
Metodo che restituisce il nome-utente.
getPassword() - Method in class User
Metodo che restituisce la password.
getPathJSON() - Method in class ServerSetup
Restituisce il path del file contenente i dati degli utenti (in JSON).
getPathVocabulary() - Method in class ServerSetup
Restituisce il path del file contenente il vocabolario.
getPort() - Method in class ClientSetup
Metodo che restituisce la porta del server.
getPort() - Method in class ServerSetup
Restituisce il numero di porta del server.
getRegistrati() - Method in class UserList
Metodo che restituisce un insieme di stringhe contenente i nomi degli utenti registrati.
getSheduler() - Method in class WordList
Metodo che restituisce l'ExecutorService utilizzato per l'estrazione della Secret-Word dal vocabolario.
getStreakLast() - Method in class User
Metodo che restituisce la lunghezza della serie di vincite più recente
getStreakMax() - Method in class User
Metodo che restituisce la lunghezza massima della serie di vincite.
getUser(String) - Method in class UserList
Metodo che restituisce l'oggetto User associato all'utente con il nome-utente specificato.
getVinte() - Method in class User
Metodo che restituisce il numero di partite vinte.
getWord() - Method in class Word
Metodo che restituisce la parola rappresentata dall'oggetto Word.
getWordTimer() - Method in class ServerSetup
Restituisce il tempo che intercorre tra le pubblicazioni della parola segreta.

I

isLoggato(String) - Method in class UserList
Metodo che verifica se l'utente con il nome-utente specificato, è loggato.
isRegistrato(String) - Method in class UserList
Metodo che verifica se l'utente con il nome-utente specificato, è registrato.

L

loginUser(String, String) - Method in class UserList
Metodo che aggiunge l'utente con il nome-utente specificato, alla lista degli utenti loggati.
logoutUser(String) - Method in class UserList
Metodo che rimuove l'utente con il nome-utente specificato, dalla lista degli utenti loggati.

M

main(String[]) - Static method in class ClientMain
Metodo main del client.
main(String[]) - Static method in class ServerMain
Metodo main del server.
MulticastReceiver - Class in Unnamed Package
Classe che rappresenta il thread che rimane in ascolto delle notifiche sul multicast.
MulticastReceiver(int, String, String) - Constructor for class MulticastReceiver
Costruttore della classe MulticastReceiver.
MulticastSender - Class in Unnamed Package
Classe che implementa un thread per l'invio di notifiche su un gruppo multicast.
MulticastSender(int, String) - Constructor for class MulticastSender
Costruttore della classe MulticastSender.

R

readNotification(String) - Method in class MulticastSender
Metodo che aggiunge una notifica alla coda e sveglia il thread.
removeUser(String) - Method in class UserList
Metodo che rimuove l'utente con il nome-utente specificato, dalla lista degli utenti registrati e dalla lista degli utenti loggati.
run() - Method in class Game
Metodo run() del thread Game.
run() - Method in class MulticastReceiver
Metodo run() del thread di MulticastListener.
run() - Method in class MulticastSender
Metodo run() del thread di MulticastListener.

S

ServerMain - Class in Unnamed Package
Classe principale del server Wordle contenente il metodo main.
ServerMain() - Constructor for class ServerMain
 
ServerSetup - Class in Unnamed Package
Classe che rappresenta le proprietà del server.
ServerSetup(String) - Constructor for class ServerSetup
Costruttore della classe ServerSetup.
setRegistrati(String) - Method in class UserList
Metoo che scrive i dati degli utenti registrati in un file JSON specificato, nel percorso pathJSON.

U

update(boolean, int) - Method in class User
Metodo che aggiorna i dati in base all'esito dell'ultima partita.
updateUser(Map<String, Object>) - Method in class UserList
Metodo che aggiorna i dati dell'utente specificato, nella lista degli utenti registrati.
User - Class in Unnamed Package
Classe che rappresenta un utente del gioco.
User(Map<String, Object>) - Constructor for class User
Costruttore della classe User.
UserList - Class in Unnamed Package
Classe che implementa l'elenco degli utenti.
UserList(String) - Constructor for class UserList
Costruttore della classe UserList.

W

Word - Class in Unnamed Package
Classe che rappresenta la parola da indovinare (Secret-Word).
Word(String) - Constructor for class Word
Costruttore della classe Word.
WordList - Class in Unnamed Package
Classe che rappresenta il vocabolario usato da Wordle per estrarre la Secret-Word e controllare la validità delle Guessed-Word inserite dall'utente
La classe è implementata usando tre strutture dati principali: una List<String> che contiene le parole del vocabolario un ScheduledExecutorService che estrae una parola casuale dal vocabolario ogni n secondi un oggetto Word che rappresenta la parola corrente
WordList(String, int) - Constructor for class WordList
Costruttore della classe WordList.
A C G I L M R S U W 
All Classes and Interfaces|All Packages|Serialized Form