- Category:
- CSharp
- Tags:
-
- File Size:
- 17kb
- Update:
- 2013-03-05
- Downloads:
- 0 Times
- Uploaded by:
- 周鹏
Description: The simulation program including a clock (Clock), the initial value is set to zero, the second self-energizing one second. The simulation program also includes a scheduler (Scheduler), it is set by random two time begin each day: the first time is a person come to a layer for the first time, and press the floor button calls the elevator time, the second time is a person for the first time come to layer 2, and press the button to summon the elevator time. Each time a random number is between 5 to 20. Elevator every day in a layer of closed waiting for.
Assumptions elevators and floors patronage. The scheduler first found a floor unoccupied and then create a allowed into the corresponding layer. If the floors have been occupied, the scheduler will be delayed one second founder. The man walked into the elevator, the scheduler will create a random time.
Will reset the elevator button elevator arrived in a floor and let the elevator bell rang. The eleva
To Search:
File list (Check if you may need any files):
ElevatorSimulation.docx