diantimonixitong

所属分类:单片机开发
开发工具:Visual C++
文件大小:48KB
下载次数:157
上传日期:2006-05-25 22:43:51
上 传 者sdutsfz
说明:  [问题描述] 设计一个电梯模拟系统。这是一个离散的模拟程序,因为电梯系统是乘客和电梯等 “活动体”构成的集合,虽然他们彼此交互作用,但他们的行为是基本独立的。在离散的模拟中,以模拟时钟决定每个活动体的动作发生的时刻和顺序.系统在某个模拟瞬间处理有待完成的各种事情,然后把模拟时钟推进到某个动作预定要发生的下一个时刻。 [基本要求] (1) 模拟某校五层教学楼的电梯系统。该楼有一个自动电梯,能在每层停留。五个楼层由下至上依次称为地下层、第一层、第二层、第三层和第四层,其个第一层是大楼的进出层,即是电梯的“本垒层”,电梯“空闲”时,将来到该层候命。 (2) 乘客可随机地进出于任何层。对每个入来说,他有一个能容忍的最长等待时间,一旦等候电梯时间过长,他将放弃。 (3) 模拟时钟从0开始,时间单位为0.1秒。人和电梯的各种动作均要耗费一定的时间单位(简记为t),比如: 有人进出时,电梯每隔40t测试一次,若无人进出,则关门。 关门和开门各需要20t 每个人进出电梯均需要25t 如果电梯在某层静止时间超过300t,则驶回1层候命。 (4) 按时序显示系统状态的变化过程:发生的全部人和电梯的动作序列。
([Problem description : design an elevator simulation system. This is a discrete simulation program, because the lift system for passengers and elevators "body" form of assembly, Although the interaction between them, but their behavior is a basic independent. The discrete simulation, simulation clock to decide on the activities of each of the action takes time and sequence. A simulation system in an instant to be done to deal with the matter, then analog clock advance to a certain action is scheduled to take place the next time. [Basic requirements] (1) simulation of a school teaching floor of the five-story elevator system. Even with an escalator, will stay in the library. Five floors from the bottom to the lower deck were called, the first-, second-, third- and fourth layer, i)

文件列表:
Elevator\Elevator.ncb (140288, 2006-02-10)
Elevator\Elevator.dsw (548, 2006-01-05)
Elevator\电梯模拟.doc (67072, 2006-02-10)
Elevator\Elevator.opt (49664, 2006-02-10)
Elevator\Elevator\Elevator.plg (1300, 2006-02-10)
Elevator\Elevator\wqueue.h (2156, 2006-02-10)
Elevator\Elevator\main.h (1335, 2006-02-10)
Elevator\Elevator\Building.h (2464, 2006-02-10)
Elevator\Elevator\Elevator.h (4395, 2006-02-10)
Elevator\Elevator\ClientStack.h (2251, 2006-02-10)
Elevator\Elevator\Elevator.dsp (4675, 2006-02-10)
Elevator\Elevator\Client.h (1625, 2006-02-10)
Elevator\Elevator\Elevator.cpp (1369, 2006-02-10)
Elevator\Elevator\Debug (0, 2006-02-10)
Elevator\Elevator (0, 2006-02-10)
Elevator\Debug (0, 2006-02-10)
Elevator (0, 2006-02-10)

近期下载者

相关文件


收藏者