|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Event | +--DepartureEvent
A class used to represent a departure event in the lunch-seating simulation. A departure event is used to indicate that a Party has finished eating and is ready to depart. The time the DepartureEvent occurs will be stored in a Clock
Event
,
Party
,
Clock
Field Summary | |
private int |
tableSize
The size of table the party was eating at |
Fields inherited from class Event |
party |
Constructor Summary | |
DepartureEvent(Party party,
int size)
Creates a new DepartureEvent. |
Method Summary | |
Party |
getParty()
Returns the party which is departing |
int |
getTable()
Returns the size of table the party was seated at |
boolean |
isArrival()
Indicates that this is not an arrival event |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int tableSize
Constructor Detail |
public DepartureEvent(Party party, int size)
party
- the party which is arriving to be seated in the simulationsize
- the size of table the party is seated at (<= MAX_PARTY_SIZE)Simulation
Method Detail |
public Party getParty()
public int getTable()
public boolean isArrival()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |