[ns] help in vanet error

2009-06-26 Thread Usman Amin

Hi can anybody please help me with this error.

[r...@localhost usman-practice]# ns abc.tcl 14 10 25
num_nodes is set 150
INITIALIZE THE LIST xListHead

(_o2415 cmd line 1)
invoked from within
"_o2415 cmd log-target _o10"
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 "_o2415" line 2)
(SplitObject unknown line 2)
invoked from within
"$p($i) log-target $RevTrace"
("for" body line 5)
invoked from within
"for {set i 0} {$i < $opt(nn)} {incr i} {
set p($i) [new Agent/VanetCR $i]
$ns_ attach-agent $node($i) $p($i)
# set the logtarget for every agent
$..."
(file "abc.tcl" line 251)

Regards,
Usman


Re: [ns] Error in creating new agent

2009-05-20 Thread Usman Amin

Hi
I am getting the following error

[r...@localhost usman-practice]# ns abc.tcl 14 10 25
num_nodes is set 150
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
ns: _o2415 start-statdump:
(_o2415 cmd line 1)
invoked from within
"_o2415 cmd start-statdump"
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 "_o2415" line 2)
(SplitObject unknown line 2)
invoked from within
"_o2415 start-statdump"


As in the error above it is not accepting statdump. It gives similar errors
on regbc etc. This shows all the procedures it has to take from the C++ file
its not recognizing them.

Now Can this be again a definition issue. Because I have defined the C++
files in Makefile.in

Can anybody please help.

Thanks

Usman

-----
On Tue, May 12, 2009 at 8:13 PM, Usman Amin  wrote:

> Hi
> At the moment I am having the following error.
>
> [r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
>  num_nodes is set 100
> INITIALIZE THE LIST xListHead
> ns: _o1615 set-suicide:
> (_o1615 cmd line 1)
> invoked from within
> "_o1615 cmd set-suicide"
> 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 "_o1615" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "_o1615 set-suicide"
> [r...@localhost VanetCR]#
>
> Can anybody tell me why this "invoked from within" error comes??
>
>
> -------
>
> On Thu, May 7, 2009 at 1:30 PM, Usman Amin  wrote:
>
>> Hi
>>
>> I added the following definitions in *
>>
>> ns-agent.tcl*
>>
>> Class Agent/VanetCR -superclass Agent
>>
>> Agent/VanetCR instproc init args {
>>
>>  $self next $args
>> }
>>
>> Agent/VanetCR set sport_   0
>> Agent/VanetCR set dport_   0
>>
>> Now the following error is coming.
>>
>>
>> *Error*
>>
>> [r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
>> num_nodes is set 150
>> INITIALIZE THE LIST xListHead
>>
>> (_o2415 cmd line 1)
>> invoked from within
>> "_o2415 cmd log-target _o10"
>> 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 "_o2415" line 2)
>> (SplitObject unknown line 2)
>> invoked from within
>> "$p($i) log-target $RevTrace"
>> ("for" body line 5)
>> invoked from within
>> "for {set i 0} {$i < $opt(nn)} {incr i} {
>> set p($i) [new Agent/VanetCR $i]
>> $ns_ attach-agent $node($i) $p($i)
>> # set the logtarget for every agent
>> $..."
>> (file "b_univ_twm_active_suicide_usman.tcl" line 343)
>> [r...@localhost VanetCR]#
>>
>> Can anybody help.
>>
>> Usman
>> 313-424-0122
>>
>>
>> ---
>>
>>
>>  Hi
>>
>> I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.
>>
>> I have made the following changes in the below listed files
>>
>> *Makefile*
>>
>> VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
>> VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \
>>
>> *ns-default.tcl*
>>
>> Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009
>> Agent/VanetCR set jitterFactorRBC_ 0.0001
>> Agent/VanetCR set jitterFactorRev_ 0.0002
>

Re: [ns] Error in creating new agent

2009-05-12 Thread Usman Amin

Hi
At the moment I am having the following error.

[r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
num_nodes is set 100
INITIALIZE THE LIST xListHead
ns: _o1615 set-suicide:
(_o1615 cmd line 1)
invoked from within
"_o1615 cmd set-suicide"
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 "_o1615" line 2)
(SplitObject unknown line 2)
invoked from within
"_o1615 set-suicide"
[r...@localhost VanetCR]#

Can anybody tell me why this "invoked from within" error comes??

-------

On Thu, May 7, 2009 at 1:30 PM, Usman Amin  wrote:

> Hi
>
> I added the following definitions in *
>
> ns-agent.tcl*
>
> Class Agent/VanetCR -superclass Agent
>
> Agent/VanetCR instproc init args {
>
>  $self next $args
> }
>
> Agent/VanetCR set sport_   0
> Agent/VanetCR set dport_   0
>
> Now the following error is coming.
>
>
> *Error*
>
> [r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
> num_nodes is set 150
> INITIALIZE THE LIST xListHead
>
> (_o2415 cmd line 1)
> invoked from within
> "_o2415 cmd log-target _o10"
> 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 "_o2415" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$p($i) log-target $RevTrace"
> ("for" body line 5)
> invoked from within
> "for {set i 0} {$i < $opt(nn)} {incr i} {
> set p($i) [new Agent/VanetCR $i]
> $ns_ attach-agent $node($i) $p($i)
> # set the logtarget for every agent
> $..."
> (file "b_univ_twm_active_suicide_usman.tcl" line 343)
> [r...@localhost VanetCR]#
>
> Can anybody help.
>
> Usman
> 313-424-0122
>
>
> ---
>
>
>  Hi
>
> I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.
>
> I have made the following changes in the below listed files
>
> *Makefile*
>
> VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
> VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \
>
> *ns-default.tcl*
>
> Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009
> Agent/VanetCR set jitterFactorRBC_ 0.0001
> Agent/VanetCR set jitterFactorRev_ 0.0002
> Agent/VanetCR set sig_delay_ 0.003255
> Agent/VanetCR set verif_delay_ 0.00762
> Agent/VanetCR set lastheard_interval_ 1
> Agent/VanetCR set statinterval_ 0.01
>
> *ns-packet.tcl*
>
> # Wireless:
>ARP # Address Resolution Protocol, network wireless stack
>GAF # Geographic Adaptive Delity, for ad-hoc networks
>LL # network wireless stack
>LRWPAN  # zheng, wpan/p802_15_4mac.cc
>Mac # network wireless stack
>*VanetCR # Added for Vanet on May 5th, 2009*
>
> *packet.h*
>
> name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009
> static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009
>
> *After Modifications
> *
> I execute the following commands to recompile
>
> touch common/packet.cc
> make
> make clean
> configure
>
>
> *ERROR*
>
> [r...@localhost ns-2.33]# ns
> ns:
> [code omitted because of length]
> : invalid command name "Agent/VanetCR"
>while executing
> "Agent/VanetCR set packetSize_ 1000"
>
>  the strange thing is as soon as I make this change in ns-default.tcl. All
> other tcl files also stop working and the error I listed before is
> returned.
>
> Any help inthis regard will be highly appreciated.
>
> Thanks & Regards,
>
> Usman
> 313-424-0122
>


Re: [ns] Error in creating new agent

2009-05-07 Thread Usman Amin

Hi

I added the following definitions in *

ns-agent.tcl*

Class Agent/VanetCR -superclass Agent

Agent/VanetCR instproc init args {

 $self next $args
}

Agent/VanetCR set sport_   0
Agent/VanetCR set dport_   0

Now the following error is coming.


*Error*

[r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
num_nodes is set 150
INITIALIZE THE LIST xListHead

(_o2415 cmd line 1)
invoked from within
"_o2415 cmd log-target _o10"
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 "_o2415" line 2)
(SplitObject unknown line 2)
invoked from within
"$p($i) log-target $RevTrace"
("for" body line 5)
invoked from within
"for {set i 0} {$i < $opt(nn)} {incr i} {
set p($i) [new Agent/VanetCR $i]
$ns_ attach-agent $node($i) $p($i)
# set the logtarget for every agent
$..."
(file "b_univ_twm_active_suicide_usman.tcl" line 343)
[r...@localhost VanetCR]#

Can anybody help.

Usman
313-424-0122

---

 Hi

I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.

I have made the following changes in the below listed files

*Makefile*

VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \

*ns-default.tcl*

Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009
Agent/VanetCR set jitterFactorRBC_ 0.0001
Agent/VanetCR set jitterFactorRev_ 0.0002
Agent/VanetCR set sig_delay_ 0.003255
Agent/VanetCR set verif_delay_ 0.00762
Agent/VanetCR set lastheard_interval_ 1
Agent/VanetCR set statinterval_ 0.01

*ns-packet.tcl*

# Wireless:
   ARP # Address Resolution Protocol, network wireless stack
   GAF # Geographic Adaptive Delity, for ad-hoc networks
   LL # network wireless stack
   LRWPAN  # zheng, wpan/p802_15_4mac.cc
   Mac # network wireless stack
   *VanetCR # Added for Vanet on May 5th, 2009*

*packet.h*

name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009
static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009

*After Modifications
*
I execute the following commands to recompile

touch common/packet.cc
make
make clean
configure


*ERROR*

[r...@localhost ns-2.33]# ns
ns:
[code omitted because of length]
: invalid command name "Agent/VanetCR"
   while executing
"Agent/VanetCR set packetSize_ 1000"

 the strange thing is as soon as I make this change in ns-default.tcl. All
other tcl files also stop working and the error I listed before is
returned.

Any help inthis regard will be highly appreciated.

Thanks & Regards,

Usman
313-424-0122


[ns] Error in creating new agent

2009-05-06 Thread Usman Amin

 Hi

I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.

I have made the following changes in the below listed files

*Makefile*

VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \

*ns-default.tcl*

Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009
Agent/VanetCR set jitterFactorRBC_ 0.0001
Agent/VanetCR set jitterFactorRev_ 0.0002
Agent/VanetCR set sig_delay_ 0.003255
Agent/VanetCR set verif_delay_ 0.00762
Agent/VanetCR set lastheard_interval_ 1
Agent/VanetCR set statinterval_ 0.01

*ns-packet.tcl*

# Wireless:
ARP # Address Resolution Protocol, network wireless stack
GAF # Geographic Adaptive Delity, for ad-hoc networks
LL # network wireless stack
LRWPAN  # zheng, wpan/p802_15_4mac.cc
Mac # network wireless stack
*VanetCR # Added for Vanet on May 5th, 2009*

*packet.h*

name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009
static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009

*After Modifications
*
I execute the following commands to recompile

touch common/packet.cc
make
make clean
configure


*ERROR*

[r...@localhost ns-2.33]# ns
ns:
[code omitted because of length]
: invalid command name "Agent/VanetCR"
while executing
"Agent/VanetCR set packetSize_ 1000"

 the strange thing is as soon as I make this change in ns-default.tcl. All
other tcl files also stop working and the error I listed before is
returned.

Any help inthis regard will be highly appreciated.

Thanks & Regards,

Usman
313-424-0122


[ns] PacketSize issue

2009-04-08 Thread Usman Amin

 Hello all,

I am using ns-2.33. I have added an agent Vanetcr and then did the necessary
changes in Makefile, ns-packet.tcl, ns-default.tcl and packet.tcl. But I am
getting the following error

*ns:
[code omitted because of length]
: invalid command name "Agent/VanetCR"
while executing
"Agent/VanetCR set packetSize_ $vanetpacketsize"
[r...@localhost vanetcr_code.zip_FILES]# *
**
I think it is related to the change in ns-default.tcl. The changes I made
are as under

*set vanetpacketsize 1024*
*Agent/VanetCR set packetsize_ $vanetpacketsize*
**
The realted packetsize code in the TCL file is as under

*for {set i 0} {$i < $opt(nn)} {incr i} {
$p($i) set packetSize_ 10240*

Can anybody please help me.

Thanks

Usman