-
Notifications
You must be signed in to change notification settings - Fork 2
OOP: Elevator Design
Mani Bhushan edited this page Sep 6, 2016
·
5 revisions
-----------------
IElevator:
+ moveUp();
+ moveDown();
+ addDestination();
+ ElevatorStatus status();
+ ElevatorDirection direction();
---------------------
IElevatorControl:
+ pickUp(Integer pickUpFloor);
+ destination(Integer elevatorId, Integer destinationFloor);
+ step();
ElevatorStatus:
+ ELEVATOR_BUSY,
+ ELEVATOR_FREE;
-----------------------
ElevatorDirection:
+ ELEVATOR_UP,
+ ELEVATOR_DOWN,
+ ELEVATOR_HOLD;