3 ms·
There are two cases where deselecting a floor would complicate the logic: 1. When the currently targeted floor is deselected and the remaining selected floors
by layer8 4y ago
There are two cases where deselecting a floor would complicate the logic:
1. When the currently targeted floor is deselected and the remaining selected floors are all in the other direction: Then the elevator would have to either reverse course without stopping — a situation which otherwise doesn’t occur and would be unexpected and possibly dangerous for the passengers — or stop on a non-selected floor before changing direction, which would be confusing as well.
2. The deselected floor was the only selected floor: The elevator would then have to choose a floor to stop on by itself — e.g. the next one it can safely stop on — which is also a situation that doesn’t otherwise occur. In addition, deselecting the only selected floor doesn’t seem to be a practical use case.
So instead of having to define, implement and test a behavior for those odd situations, it’s safer and less costly to just disallow deselection.
- deleted 4y ago[deleted]
- xmodem 4y agoRather than testing these scenarios, couldn't one simply just(tm) not allow deselection in these scenarios?
- layer8 4y agoThen you’d have to test that. And it would still be confusing to users that deselecting only sometimes works.
- bobthepanda 4y agoRight. HN is not representative of the average person, or even a standard cross section of society. A elevator has to be legible to an 8 year old child, an 80 year old retiree, someone who is blind, a person who is deaf, etc. When designing for such a broad audience, KISS (keep it simple, stupid)
- deathanatos 4y agoI didn't think elevators permitted scenario 1 to occur at all; I thought they refused to allow selecting floors not in the direction of travel. (I don't usually board elevators traveling in the wrong direction, ofc., so, I'm not that sure.)
- zerocrates 4y agoI haven't done it in a while but my recollection is that if you press a "wrong-direction" floor it will just go there after having completed all the previously-selected stops.
- scrumbledober 4y agonot just previously selected but it will wait until there are no stops in the current direction, then switch directions and go in the reverse order
- zerocrates 4y agoYeah I wasn't sure what will happen if more people add in stops in the "right" direction afterwards, I don't think I've ever been in that situation, but that makes sense.
- spogbiper 4y agoThe one in my building will allow you to select any floor at any time. it always goes to the last stop in the current direction before reversing as far as i have noticed
- remram 4y agoI've experienced both kinds of elevators. Some don't let you select a floor that's in the wrong direction, so you can notice you entered the wrong elevator and get back out.