|
|
|
|
|
by grishka
1809 days ago
|
|
Hm. I've always thought that the algorithm of operation of a single elevator is fairly simple? While passing each floor, if a button of that floor was pressed (is lit up), or if the button of the direction it's going on that floor is pressed, then stop. If the elevator is not in use and someone presses any call button, go to that floor. That's mostly it. At least that's how I have that algorithm in my head. Now, if there are multiple elevators but a single set of up/down buttons for them on each floor, that's where things get really complex really fast. |
|