
QueueControl |
ptolemy.domains.ci.demo.Router.QueueControl |
An actor that distribute its input data to different outputs.
Its output ports <i>queue1<i> and <i>queue2<i> is connected
to two <i>queue<i> actors respectively. The lengh of the two
queue are fed back to its input ports <i>q1Length<i> and
<i>q2Length<i>. The input token at <i>input<i> is distributed
according to the following policy: if the total length of queue1
and queue2 is less than threshold1, specified by the <i>minMark</i>
parameter, the input token is send to <i>queue1<i> if queue1's
length is less than queue2's, otherwise send to <i>queue2<i>; if
the total length is greater than threshold1 but less than
threshold2, specified by the <i>minMark</i> parameter, the
input token may be dropped randomly(with a probability
proportional to the amount larger than threshold1) or
send to queues shorter; if the total length is greater than
threshold2, then drop the input token. If the input token is
dropped, it is send to the <i>dropped<i> output so that it can
be catched or monitored when necessary.
Author(s): Xiaojun Liu
Version:$Id: QueueControl.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Yellow (cxh)