HI guys i tried to install this cpuma to ns 2.33. i downloaded the files from
: http://sourceforge.net/projects/cpuma/
i proceeded as the instructions in the install file. but after doing every
thing and after re-installing ns2.33 with the edited files when i run my TCL
code i get the following errors:
invalid command name "Agent/CPUMA"
while executing
"Agent/CPUMA create _o17 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/CPUMA [$node node-addr]"
(procedure "_o3" line 2)
(Simulator create-cpuma-agent line 2)
invoked from within
"$self create-cpuma-agent $node"
("CPUMA" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
CPUMA {
set ragent [$self create-cpuma-agent $node]
}
PUMA {
set ragent [$self create-puma-agent $node]
}
DSDV {
set ra..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} { $i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}"
in the tcl file i just replaced PUMA with CPUMA
i.e.
set val(rp) CPUMA
$ns node-config -adhocRouting $val(rp) \
am i doing it wrong?? Please help. Thanx
--
View this message in context:
http://old.nabble.com/cpuma-in-ns2.33-help%21%21%21-tp34666022p34666022.html
Sent from the ns-users mailing list archive at Nabble.com.