Description: 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
To Search:
File list (Check if you may need any files):
电梯\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
电梯