|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Event
Interface for simulation events.
COMP 2100
Project 3
October 2014
| Field Summary | |
|---|---|
static int |
ARRIVAL_PRIORITY
Priority level for arrivals is 0, the lowest priority. |
static int |
DEPARTURE_PRIORITY
Priority level for departures is 3, the highest priority. |
static int |
SIMULATIONEND_PRIORITY
Priority level for the simulation end event is 1, between report and arrival. |
static int |
SIMULATIONREPORT_PRIORITY
Priority level for the simulation report event is 2, between departure and end. |
| Method Summary | |
|---|---|
int |
getPriority()
Retrieves the event's priority. |
int |
getTime()
Retrieves the event's scheduled time. |
void |
process()
Process this event. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final int ARRIVAL_PRIORITY
static final int DEPARTURE_PRIORITY
static final int SIMULATIONREPORT_PRIORITY
static final int SIMULATIONEND_PRIORITY
| Method Detail |
|---|
int getTime()
int getPriority()
void process()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||