|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A controller for all the elevators in an elevator bank. The controller accesses the elevator bank through an instance of ElevatorControls.
| Field Summary | |
static int |
dirDown
Indicates an elevator intends to move down. |
static int |
dirNeither
Indicates an elevator intends not to move. |
static int |
dirUp
Indicates an elevator intends to move up. |
static int |
timeDoorsOpen
The number of ticks doors should be held open before closing them. |
| Method Summary | |
void |
initialize(ElevatorControls controls)
Initialize this elevator controller. |
void |
run()
Cause the controller to use the provided controls to receive and process requests from riders. |
| Field Detail |
public static final int timeDoorsOpen
public static final int dirDown
public static final int dirNeither
public static final int dirUp
| Method Detail |
public void initialize(ElevatorControls controls)
controls - the controller's interface to the elevator
bank. The controller must not attempt to access
the elevator bank in any other way.public void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||