|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--es04.Spectacle
Questa classe rappresenta l'astrazione di uno spettacolo identificato da un nome. Un oggetto Spectacle contiene anche informazioni sui posti prenotati e occupati.
Constructor Summary | |
Spectacle(java.lang.String name)
Crea un oggetto di tipo Spectacle caratterizzato da una stringa name. |
Method Summary | |
int[] |
getBookedSeats()
Fornisce l'array dei posti che sono stati occupati |
int[] |
getBoughtSeats()
Fornisce l'array dei posti che sono stati acquistati |
java.lang.String |
getName()
Fornisce una stringa contenente nome dello spettacolo. |
void |
setBookedSeats(int[] seats)
Aggiorna l'array dei posti prenotati |
void |
setBoughtSeats(int[] seats)
Aggiorna l'array dei posti acquistati |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Spectacle(java.lang.String name)
name
- nome dello spettacolo.Method Detail |
public java.lang.String getName()
public int[] getBookedSeats()
public int[] getBoughtSeats()
public void setBookedSeats(int[] seats)
seats
- array dei posti da occupare.public void setBoughtSeats(int[] seats)
seats
- array dei posti da acquistare.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |