[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Question about adding new queue type in ns2.1b6!




Hi,ns-users,

I asked this question several days ago,but no reply.I have to ask
twice,for
it's really urgent.
I met trouble when I tried to implement one queue type of mine.I
inherited a new queue class in c++ from
class Queue and implement of mine. Code compiled ok but when I tried to
test it,it complained as followed,
It seemed to complain that no unblock_on_resume_ variable,but I think it

has been declared and initialized
in class Queue,I inherited it from Queue.
Any hints are welcome.
Thanks



can't read "unblock_on_resume_": no such variable
    (Object set line 1)
    invoked from within
"Queue/Prob set unblock_on_resume_"
    invoked from within
"catch "$c set $var" val"
    (procedure "_o16" line 1)
    (SplitObject unknown line 1)
    invoked from within
"$queue_ target $link_"
    (procedure "_o17" line 24)
    (SimpleLink init line 24)
    invoked from within
"_o17 init _o12 _o14 5Mb 2ms _o16"
    (Class create line 1)
    invoked from within
"SimpleLink create _o17 _o12 _o14 5Mb 2ms _o16"
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new SimpleLink     $n1 $n2 $bw $delay $q"
    ("default" arm line 2)
 invoked from within
"switch -exact $qtypeOrig {
RTM {
set c [lindex $args 1]
set link_($sid:$did) [new CBQLink        $n1 $n2 $bw $delay $q $c]
}
CBQ -
CBQ/WRR {
if {[llen..."
    (procedure "_o3" line 27)
    (Simulator simplex-link line 27)
    invoked from within
"_o3 simplex-link _o12 _o14 5Mb 2ms Prob"
    ("eval" body line 1)
    invoked from within
"eval $self simplex-link $n1 $n2 $bw $delay $type $args"
    (procedure "_o3" line 9)
    (Simulator duplex-link line 9)
    invoked from within
"$ns duplex-link $n1 $n2 5Mb 2ms Prob"
    (file "probtest.tcl" line 11)