[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
instantiation error
Hi!
Testing a novel queueing machanism (called REDplus) the following
runtime error-message appeared:
invalid command name "Queue/REDplus]"
while executing
"Queue/REDplus] create _o46 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Queue/$type"
(procedure "_o4" line 34)
(Simulator simplex-link line 34)
invoked from within
"$ns simplex-link $node_(r1) $node_(r2) 1.5Mb 30ms REDplus]"
(procedure "_o8" line 9)
(Topology/netREDplus init line 9)
invoked from within
"_o8 init _o4"
(Class create line 1)
invoked from within
"Topology/netREDplus create _o8 _o4"
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Topology/$net_ $ns_"
(procedure "_o3" line 15)
(Test/REDplus1 next line 15)
invoked from within
"$self next"
(procedure "_o3" line 7)
(Test/REDplus1 init line 7)
invoked from within
"_o3 init {} REDplus1 true"
(Class create line 1)
invoked from within
"Test/REDplus1 create _o3 {} REDplus1 true"
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Test/$test $topo $test $enable"
(procedure "TestSuite" line 43)
(TestSuite runTest line 43)
invoked from within
"TestSuite runTest"
(file "red-plus.tcl" line 500)
The first error message seems to address the instantiation of the REDplus
mechanism. I have implemented the instantiation like it has been done for
RED:
static class REDplusClass : public TclClass {
public:
REDplusClass() : TclClass("Queue/REDplus") {}
TclObject* create(int, const char*const*) {
return (new REDplusQueue);
}
} class_redplus;
Does anybody have an idea?
Thanks
Thomas
****************************************************************************
Thomas Ziegler
Polytechnic University of Salzburg
Jakob Haringerstr. 5
5020 Salzburg
Austria
Tel: ++43/662/454-888-631
Fax: ++43/662/454-888-615
***************************************************************************