|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.machine.RiderEvent
public final class RiderEvent
An event that affects rider software. If a rider is outside the elevators, it will only receive events on the same floor as the rider. If a rider is inside an elevator, it will only receive events pertaining to that elevator.
Field Summary | |
---|---|
int |
direction
The direction display of the elevator (neither if not applicable). |
int |
elevator
The elevator pertaining to the event, or -1 if not applicable. |
int |
event
The event identifier. |
static int |
eventDirectionChanged
An elevator's doors were open and its direction display changed. |
static int |
eventDoorsClosed
An elevator's doors have closed. |
static int |
eventDoorsOpened
An elevator's doors have opened. |
int |
floor
The floor pertaining to the event, or -1 if not applicable. |
Constructor Summary | |
---|---|
RiderEvent(int event,
int floor,
int elevator,
int direction)
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int event
public final int floor
public final int elevator
public final int direction
public static final int eventDoorsOpened
public static final int eventDirectionChanged
public static final int eventDoorsClosed
Constructor Detail |
---|
public RiderEvent(int event, int floor, int elevator, int direction)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |