|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Event
|
+--ArrivalEvent
A class used to represent an arrival event in the lunch-seating simulation. An arrival event is used to indicate that a new Party has arrived to be seated for lunch. The time the ArrivalEvent occurs will be stored in a Clock.
Event,
Party,
Clock| Fields inherited from class Event |
party |
| Constructor Summary | |
ArrivalEvent(Party party)
Creates a new ArrivalEvent. |
|
| Method Summary | |
Party |
getParty()
Returns the party waiting to be seated. |
boolean |
isArrival()
Indicates that this is an arrival event |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ArrivalEvent(Party party)
party - the party which is arriving to be seated in the simulation| Method Detail |
public Party getParty()
public boolean isArrival()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||