|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElevatorControllerInterface
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 |
---|
static final int timeDoorsOpen
static final int dirDown
static final int dirNeither
static final int dirUp
Method Detail |
---|
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.void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |