Skip to content

PhilBarila/elevator-sim

Repository files navigation

elevator-sim

Simulates an elevator. Elevator class simulates the movement of the carriage. Controller class simulates the control panel. None of the door interlock or any other real-world safety considerations have been included.

The controller does not implement an elevator sort, as the project description demonstrated pure FIFO ordering used. The elevator does ignore requests to move to the current floor.

Would have been nice:

Parameterized tests.

It definitely can be done, but it was getting a bit messy, and I decided it was beyond the scope of the project and elected not to invest any more time into figuring out how to clean it up enough to be satisfied with it.

REPL for interactive floor selection

Also can be done, outside the scope of the project.

Ill-formed data protection

Doesn't protect against non-numeric data in the input floor spec.

Author

Phil Barila

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published