An example project of the internal workings of an elevator SDK.
Here is a state machine like diagram of requestFloor
behaviour.
Similar behaviour for requesting a floor while inside the elevator, except the direction is not applicable.
Code here: https://github.com/Robbie-Cook/p-t/blob/main/index.ts