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,8 @@
|
||||
One car at floor 5 heading up, six requests: floors travelled
|
||||
=============================================================
|
||||
|
||||
requests in arrival order: [8, 2, 9, 1, 6, 3]
|
||||
|
||||
FCFS order [8, 2, 9, 1, 6, 3] distance 32
|
||||
SSTF order [6, 8, 9, 3, 2, 1] distance 12
|
||||
LOOK order [6, 8, 9, 3, 2, 1] distance 12
|
||||
Reference in New Issue
Block a user