谁能告诉我如何在ns2中实现antnet?我在使用NS2的antnet路由算法中遇到这种类型的错误。有可能实现吗? 请帮我解决。如何解决这类问题?如何在使用ns2的adhoc网络中实现antnet
[email protected]:~$ cd /home/admin123/Desktop/NS/ns-allinone-2.35/ns-2.35/tcl/ex
[email protected]:~/Desktop/NS/ns-allinone-2.35/ns-2.35/tcl/ex$ ns antnet.tcl
num_nodes is set 12
(_o3 cmd line 1)
invoked from within
"_o3 cmd node-config-adhocRouting AODV -llType LL -macType Mac/802_11 -ifqType Queue/DropTail/PriQueue -ifqLen 1000 -antType Antenna/OmniAntenna -propT..."
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns node-config-adhocRouting AODV\
-llType $val(ll) \
-macType $val(mac) \
-if..."
(file "antnet.tcl" line 33)
[email protected]:~/Desktop/NS/ns-allinone-2.35/ns-2.35/tcl/ex$
![标签:TCL] = [标签:外壳]但除此之外,我真不”不知道你在问什么。 –