|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectarchive.data.Prenotazioni
public class Prenotazioni
Una classe che rappresenta le prenotazioni ,estende AbstractPrenotation
| Constructor Summary | |
|---|---|
Prenotazioni(java.lang.String nome)
Costruisce una prenotazione |
|
| Method Summary | |
|---|---|
boolean |
add(Prenotazione p)
Aggiunge una prenotazione all' elenco |
java.util.Set<Prenotazione> |
getElenco()
Ritorna l'elenco delle prenotazioni |
java.lang.String |
getNomeVillaggio()
Ritorna il nome del villaggio |
Prenotazione |
getPrenotazione(java.lang.String cognome,
int numWeek)
Ritorna una prenotazione |
java.util.Set<Prenotazione> |
getPrenotazioniWeek(int numWeek)
Ritorna tutte le prenotazioni di una settimana |
boolean |
isPresentClient(Cliente c)
Implementa il metodo dell'interfaccia Prenotation |
boolean |
isPresentClient(Cliente c,
int n)
Controlla se un cliente ha una prenotazione in una determinata settimana |
boolean |
remove(Prenotazione p)
Rimuove una prenotazione |
boolean |
remove(java.lang.String cognome,
int numWeek)
Rimuove una prenotazione |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Prenotazioni(java.lang.String nome)
nome - nome del villaggio| Method Detail |
|---|
public boolean add(Prenotazione p)
elenco
p - prenotazione
public boolean remove(java.lang.String cognome,
int numWeek)
cognome - cognome del clientenumWeek - numero della settimana
public boolean remove(Prenotazione p)
p - prenotazione
public java.lang.String getNomeVillaggio()
public java.util.Set<Prenotazione> getElenco()
elenco delle prenotazioni
public Prenotazione getPrenotazione(java.lang.String cognome,
int numWeek)
cognome - del clientenumWeek - numero di settimana
java.lang.IllegalArgumentException - 1<numWeek>52public java.util.Set<Prenotazione> getPrenotazioniWeek(int numWeek)
numWeek - numero della settimana
java.lang.IllegalArgumentException - 1<numWeek>52public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isPresentClient(Cliente c)
Prenotation
isPresentClient in interface Prenotationc - cliente
public boolean isPresentClient(Cliente c,
int n)
c - clienten - numero della settimana
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||