联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All 数据结构(41) 

[数据结构] elevator-simulation

电梯模拟,模拟某校九层教学楼的电梯系统。该楼有一个自动电梯,能在每层停留。九个楼层由下至上依次称为地下层、第一层、第二层、……第八层,其中第一层是大楼的进出层,即是电梯的“本垒层”,电梯“空闲”时,将来到该层候命。 乘客可随机地进出于任何层。对每个人来说,他有一个能容忍的最长等待时间,一旦等候电梯时间过长,他将放弃。 模拟时钟从0开始,时间单位为0.1秒。人和电梯的各种动作均要消耗一定的时间单位(简记为t),比如:有人进出时,电梯每隔40t测试一次,若无人进出,则关门;关门和开门各需要20t;每个人进出电梯均需要25t;如果电梯在某层静止时间超过300t,则驶回1层侯命。
elevator simulation,Simulation of a nine-school teaching building elevator systems. This building has an automatic elevator in each stay. Followed by the bottom nine floors as the basement, first floor, second floor, ... ... the eighth floor, where the first layer is the layer out of the building, that is the elevator "home base layer," Elevator "free" when came to the floor stand. Passengers can randomly access any layer. For everyone, he can tolerate a maximum waiting time, waiting for the elevator when the time is too long, he will give up. Analog clock starts from 0, the time unit is 0.1 seconds. And lift a variety of actions have to consume a certain unit of time (abbreviated as t), for example: it was out of the elevator 40t test every time, without the movement of people, then closed close and open the door of the need to 20t each personal and out of elevators require 25t if the elevator stationary at a level more than 300t, then drove back a layer ready to go. (2011-08-12, Visual C++, 68KB, 下载13次)

http://www.pudn.com/Download/item/id/1620296.html
123
总计:41