|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectAbstractEvent
ArrivalEvent
public class ArrivalEvent
Class for customer arrival events.
Arrival events have priority Event.ARRIVAL_PRIORITY,
where a higher value is a higher priority.
Priority is used as the tiebreaker when two events are
scheduled for the same time.
COMP 2100
Project 3
October 2014
| Field Summary |
|---|
| Fields inherited from interface Event |
|---|
ARRIVAL_PRIORITY, DEPARTURE_PRIORITY, SIMULATIONEND_PRIORITY, SIMULATIONREPORT_PRIORITY |
| Constructor Summary | |
|---|---|
ArrivalEvent(int time)
Create a customer arrival event. |
|
| Method Summary | |
|---|---|
void |
process()
Process an arrival event. |
| Methods inherited from class AbstractEvent |
|---|
compareTo, getPriority, getTime, setPriority, setTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrivalEvent(int time)
time - The clock time when the arrival will occur| Method Detail |
|---|
public void process()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||