Add elevator module: State-pattern car (idle, moving, doors open, maintenance), LOOK stop rule, round-robin / nearest-car / ETA dispatchers, tick simulation on seeded traffic (8 test classes, 13 transcripts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6W3VPEBweaeA5DE4n
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
A request waits at floor 0; the car is at floor 5; new requests keep appearing at floors 6 and 7
|
||||
================================================================================================
|
||||
|
||||
The stream of new requests lasts 40 ticks. The car moves one floor per tick.
|
||||
|
||||
SSTF far request served at tick 46
|
||||
LOOK far request served at tick 9
|
||||
Reference in New Issue
Block a user