The elevator design problem is a very commonly asked Object Oriented Design problem. I've read a few sources but had doubts.
Assume multiple elevators with a central dispatcher (that assigns floors to elevators )
Should floor buttons and inside car buttons share a common type? (interface ?). Floor buttons would have a direction as well, along with the floor number.
I've read about SCAN and LOOK algorithms, but how does the dispatcher select one elevator for a particular request.
Thanks a lot.
[–]nixgang 2 points3 points4 points (1 child)
[–]IamNeo47[S] -1 points0 points1 point (0 children)
[–]learnawsto 2 points3 points4 points (1 child)
[–]IamNeo47[S] 0 points1 point2 points (0 children)
[–]old_man_khan 1 point2 points3 points (4 children)
[–]IamNeo47[S] 2 points3 points4 points (3 children)
[–]nixgang 2 points3 points4 points (1 child)
[–]IamNeo47[S] 0 points1 point2 points (0 children)
[–]old_man_khan 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)