- Building
- Floor
- Display
- ElevatorCar
- InternalButtons
- ElevatorController
- ExternalDispatcher
- InternalDispatcher
- ElevatorCreator - contains hardcoded data
- Util - contains utility functions
- Direction
- Status
-
InternalDispatcher gets triggered by InternalButtons in ElevatorCar.
-
ExternalDispatcher gets triggered by Floor
pressButton()
function -
Elevator class contains a
move()
function which is triggered by dispatcher, and it runs a for-loop until it reaches the destination floor.
ElevatorController must implement min. seek time algorithm to effectively co-ordinate with the two elevators.