Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Multi-Threaded Elevator Simulatorby particle (Vicar) |
on Aug 07, 2002 at 12:40 UTC ( [id://188292]=note: print w/replies, xml ) | Need Help?? |
in the main package,
is shorter and more clearly written as:
in the Elevator class, the constant STARTING is declared and never used. as an aside: in new york city, there are three buildings with double-decker elevators (i've worked in two of them.) lobby and mezzanine are the base levels, and when going up you must use the lobby for odd floors (L 3 5 7 ... ) and mezzanine for odd floors (M 4 6 8 ...). going down, you can reach any floor from either level (except the edge case at the bottom.) i believe the Elevator class can be easily subclassed to handle this scenario as well. cool.
~Particle *accelerates*
In Section
Meditations
|
|