[ns] node id in c++

2008-05-15 Thread anas abu_taleb
Hi all I am trying to get the node id in the aodv and the udpagent c++ codes. Can anyone provide my with the way to do that and I will be grateful. Regards Anas

[ns] counting the number of packets sent during the simulation

2008-05-06 Thread anas abu_taleb
Hi all I am using ns-2.29 and as part of my research I am trying to count the number of packets sent by a node. I added a method called counting to count the number of packets to the source code of the UDP agent ( I wonder if this is the right place). And what I want after that is

[ns] energy model variables

2008-04-25 Thread anas abu_taleb
Hi all I am trying to access the value of the initial energy for the energy model after configuring the nodes. for example after $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant)

[ns] energy model variables

2008-04-23 Thread anas abu_taleb
Hi all I am trying to acces the initial energy value after configuring the wireless node, unfortunally i did not succeed to do that. As a result I wonder anyone knows a way to do that and I will be grateful for the help Regards Anas - Be a

[ns] LEACH total energy consumpsion

2008-01-31 Thread anas abu_taleb
Hi Finally I managed to run leach under ns-allinone-2.29. Unfortunatelly, when I ran the example script the output said that the total energy comsumed is equal to 367.6739273 ... etc. but this doen not look right as the every node has 2 joules as initial energy and if you run the simulation

[ns] ns-leach extesion problems

2008-01-22 Thread anas abu_taleb
Dear Sir I am using ns-2.31 under cygwin and I have been trying to extend it with the leach extension developed for ns-2.27. after following the procedure specified in the pfd document that comes with it I got the following error: trace/trace.cc: In static member function