9queueing
所属分类:.net编程
开发工具:Visual C++
文件大小:481KB
下载次数:9
上传日期:2010-01-09 21:55:05
上 传 者:
heqqww
说明: 入门omnet++,omnet++仿真实验,欢迎大家一起交流。
(It is very useful for student who study omnet++.)
文件列表:
queueing\classifier.cpp (729, 2006-10-21)
queueing\classifier.ned (527, 2006-10-21)
queueing\delay.cpp (986, 2006-10-21)
queueing\delay.ned (398, 2006-10-21)
queueing\Makefile.vc (3879, 2006-10-21)
queueing\omnetpp.ini (169, 2006-10-21)
queueing\pqueue.cpp (1684, 2006-10-21)
queueing\pqueue.h (803, 2006-10-21)
queueing\pqueue.ned (415, 2006-10-21)
queueing\qnet.ned (1510, 2006-10-21)
queueing\queueing.dsp (8198, 2009-07-26)
queueing\queueing.dsp.in (8080, 2006-10-21)
queueing\queueing.dsw (541, 2006-10-21)
queueing\queueing.exe (1617920, 2006-10-21)
queueing\server.cpp (2984, 2006-10-21)
queueing\server.h (1025, 2006-10-21)
queueing\server.ned (474, 2006-10-21)
queueing\sink.cpp (1227, 2006-10-21)
queueing\sink.ned (357, 2006-10-21)
queueing\source.cpp (1019, 2006-10-21)
queueing\source.ned (384, 2006-10-21)
queueing (0, 2009-07-26)
Queuing
=======
The model demonstrates a queueing network. While the model is an abstract
one, the following more-or-less real-life analogy might help making sense
of it:
Passengers arrive at the airport building at random intervals, and they want
to check in at a particular counter. They first go to the information desk.
There it turns out that some passengers should have gone to a different
terminal, so they leave the building. The others have to walk along a long
corridor to get to the check-in, where there're different queues for economy
class, business class, first class etc. passengers. Unfortunately there's
only one clark. She serves the queues in priority order -- economy class
passengers are only served if there's no business class or first class
passenger. After check-in the passengers get into the duty-free zone and
have a good time until boarding.
In the model, the "enter" module generates messages with different message
types (message kinds 0,1,2 and 3 with uniform probability). These messages
get into "classifier" which looks at the message kind and forwards the
message on the corresponding gate (kind=0 on gate "out[0]", kind=1 on gate
"out[1]", kind=2 on gate "out[2]", and the rest (kind=3) on the gate "other".
The latter messages get discarded in the "leave1" module, the others get into
"delay" modules where they each suffer a small constant delay. After the delay
they are queued up in "passiveq" passive queues, served by "qserver".
"qserver" serves the three queues in priority order: "passiveq[1]" is only
examined when "passiveq[0]" is empty, and "passiveq[2]" is only examined when
both "passiveq[0]" and "passiveq[1]" are empty. Examination of the queues
is programmed by calling a method in the passive queue module objects
(as opposed to message exchange, or integrating all queues and the server
into a single module). Once the "qserver" decided from which queue to obtain
a message, it tells the passive queue object to send it (this is also done via
a method call.) The processing time in the server is random. After processing,
messages are forwarded into "leave2" where they end their life circles.
In "leave2", statistics are collected about the time messages spent in the
system. These statistics can be viewed during simulation (open the inspector
window for "leave2", then click the "Contents" tab and open inspectors for the
statistics objects), or after simulation (open omnetpp.vec in Plove).
近期下载者:
相关文件:
收藏者: