文件名称:elevator
介绍说明--下载内容均来自于网络,请自行研究使用
核心部分为电梯调度控制台。控制台拥有电梯状态及电梯工作任务队列同时负责电梯任务的分配。任务分为二种,外部按钮任务和内部按钮任务。
外部按钮任务需要先寻找最佳来执行这项任务的电梯,根据任务和电梯当前的运行状态来判断,又有以下四类:1、电梯同向可以执行;2、电梯空闲;3、电梯逆向;4、电梯同向不可执行。判断顺序即为1、2、3、4。判断任 务属于哪一种类型,按照该类型特点插入任务队列。
内部按钮已经制定执行电梯,因此需判断执行方向后插入队列即可。
当警报按钮按下时候,清空所有队列任务,等待救援……
共有5个线程函数负责从任务队列中接收任务并且执行,主线程负责窗口消息的处理。
-Dispatch console for the elevator core. Console has a lift queue status and tasks of the elevator lift is also responsible for the allocation of tasks. Task is divided into two kinds, external and internal button mission button task.
Tasks need external button to perform this task to find the best elevator, the elevator according to the task and to determine the current operating state, have the following four categories: 1, the elevator can perform the same direction 2, the elevator is idle 3, lift reverse 4, the elevator in the same direction can not be executed. Shall determine the order of 1,2,3,4. Task is to determine what type, according to the types of features into the task queue.
Implementation has been developed within the elevator button, so to be inserted into the queue to determine the direction to the Executive.
When the alarm button is pressed when the queue is empty of all tasks, waiting for rescue ... ...
Function is responsible for a total of five threads
外部按钮任务需要先寻找最佳来执行这项任务的电梯,根据任务和电梯当前的运行状态来判断,又有以下四类:1、电梯同向可以执行;2、电梯空闲;3、电梯逆向;4、电梯同向不可执行。判断顺序即为1、2、3、4。判断任 务属于哪一种类型,按照该类型特点插入任务队列。
内部按钮已经制定执行电梯,因此需判断执行方向后插入队列即可。
当警报按钮按下时候,清空所有队列任务,等待救援……
共有5个线程函数负责从任务队列中接收任务并且执行,主线程负责窗口消息的处理。
-Dispatch console for the elevator core. Console has a lift queue status and tasks of the elevator lift is also responsible for the allocation of tasks. Task is divided into two kinds, external and internal button mission button task.
Tasks need external button to perform this task to find the best elevator, the elevator according to the task and to determine the current operating state, have the following four categories: 1, the elevator can perform the same direction 2, the elevator is idle 3, lift reverse 4, the elevator in the same direction can not be executed. Shall determine the order of 1,2,3,4. Task is to determine what type, according to the types of features into the task queue.
Implementation has been developed within the elevator button, so to be inserted into the queue to determine the direction to the Executive.
When the alarm button is pressed when the queue is empty of all tasks, waiting for rescue ... ...
Function is responsible for a total of five threads
(系统自动生成,下载前可以参看下载内容)
下载文件列表
电梯\Bin\Elev.exe
....\Doc\Readme.docx
....\...\Sample.jpg
....\Src\bitmap1.bmp
....\...\Building.bmp
....\...\ele.bmp
....\...\Elev.cpp
....\...\Elev.h
....\...\Elev.ico
....\...\Elev.rc
....\...\Elev.rc2
....\...\ElevDlg.cpp
....\...\ElevDlg.h
....\...\Lift.cpp
....\...\Lift.h
....\...\LiftConsole.cpp
....\...\LiftConsole.h
....\...\resource.h
....\...\stdafx.cpp
....\...\stdafx.h
....\...\targetver.h
....\...\无标题-1.bmp
....\Bin
....\Doc
....\Src
电梯
....\Doc\Readme.docx
....\...\Sample.jpg
....\Src\bitmap1.bmp
....\...\Building.bmp
....\...\ele.bmp
....\...\Elev.cpp
....\...\Elev.h
....\...\Elev.ico
....\...\Elev.rc
....\...\Elev.rc2
....\...\ElevDlg.cpp
....\...\ElevDlg.h
....\...\Lift.cpp
....\...\Lift.h
....\...\LiftConsole.cpp
....\...\LiftConsole.h
....\...\resource.h
....\...\stdafx.cpp
....\...\stdafx.h
....\...\targetver.h
....\...\无标题-1.bmp
....\Bin
....\Doc
....\Src
电梯