Files
java-interview-lab/elevator/output/08-nearest-car-trap.txt
T

12 lines
517 B
Plaintext

Hall call UP at floor 3 while car0 (at 4) is going DOWN and car1 waits at 9
===========================================================================
nearest-car: after 4 ticks car0 floor 4 MOVING_DOWN DOWN stops [0] riders [rider(4->0)]
nearest-car: t=4 hall 3u -> car0 (at 4 MOVING_DOWN)
eta: after 4 ticks car0 floor 4 MOVING_DOWN DOWN stops [0] riders [rider(4->0)]
eta: t=4 hall 3u -> car1 (at 9 IDLE)
wait for the person at floor 3, in ticks:
nearest-car 9
eta 5