Make Elevator idleness depend on number of stops
authorIra W. Snyder <devel@irasnyder.com>
Mon, 8 Oct 2007 07:51:03 +0000 (00:51 -0700)
committerIra W. Snyder <devel@irasnyder.com>
Mon, 8 Oct 2007 07:51:03 +0000 (00:51 -0700)
commitf7f18f1593539aebc27faf88b596c2a406fc70f2
treed46d3b5f5d1f6ed2c8eac5c8b982154c673ef271
parent3c8c1f8575d2379a73942f8d6c10edd0c366bcd4
Make Elevator idleness depend on number of stops

This makes the Elevator's is_idle() method depend not only on its current
state, but on the likelihood that it will be non-idle very soon. If the
Elevator has no stops, and its direction is IDLE, then we can really
consider it idle.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
elevator.cpp