[ns] Wimax tcl scripts

2011-09-23 Thread zmezm 14

hi ns2 users 

can anyone please sent me some wimax examples , 
tcl scripts regarding wimax handover .. 

regards 


[ns] What does member function getMac of Node/MobileNode mean ?

2011-09-23 Thread Su Jinzhao

Hi, all.

   I noticed that there is a getMac function while creating and
initializing wireless node, like the following code block:


for {set i 0} {$i  $opt(nn) } {incr i} {
  set node_($i) [$ns_ node]
  $node_($i) random-motion 0  ;# disable
random motion
set mac_($i) [$node_($i) getMac 0]

$mac_($i) set dataRate_ 54Mb
$mac_($i) set basicRate_ 24Mb
$mac_($i) set RTSThreshold_ 3000

$node_($i) set X_ 0.0
$node_($i) set Y_ 0.0
$node_($i) set Z_ 0.0
  }

and I looked up the function definition in ns-mobilenode.tcl file:

Node/MobileNode instproc getMac {param0} {
   $self instvar mac_
   return $mac_($param0)
 }

This seems nothing strange, so I want to know what's the purpose of command
set mac_($i) [$node_($i) getMac 0], I think that we should not set all
nodes mac address to be zero.

Thanks, any suggestions will be appreciated.
-- 
Su Jinzhao(苏金钊)


[ns] uninstall ns 2.34

2011-09-23 Thread charanpreet singh

hey everyone,

does anyone here know how to uninstall ns 2.34. i need to install ns2.33
after that.


[ns] wireless-phy.h error

2011-09-23 Thread Aslinda Hassan

Hi everyone,

Recently, I stumbled across this problem and I am hoping if anyone has the same
experience before and could provide me some help.  I'm creating a routing
protocol that requires some information from wireless-phy.h.  Unfortunately,
whenever I tried to include wireless-phy.h file in my C++ header file, I got
the following errors:

./mac/wireless-phy.h:130: error: expected identifier before 'r'
./mac/wireless-phy.h:130: error: expected ‘}’ before 'r'
./mac/wireless-phy.h:130: error: expected unqualified-id before 'r'
./mac/wireless-phy.h: In member function ‘bool WirelessPhy::Is_node_on()’:
./mac/wireless-phy.h:97: error: ‘node_on_’ was not declared in this scope
./mac/wireless-phy.h: In member function ‘bool WirelessPhy::Is_sleeping()’:
./mac/wireless-phy.h:98: error: ‘status_’ was not declared in this scope
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:132: error: no matching function for call to
‘Sleep_Timer::Sleep_Timer()’
./mac/wireless-phy.h:58: note: candidates are:
Sleep_Timer::Sleep_Timer(WirelessPhy*)
./mac/wireless-phy.h:56: note: Sleep_Timer::Sleep_Timer(const
Sleep_Timer)
./mac/wireless-phy.h:135: error: expected unqualified-id before ‘private’
./mac/wireless-phy.h: In function ‘EnergyModel* em()’:
./mac/wireless-phy.h:143: error: ‘node’ was not declared in this scope
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:145: error: ‘friend’ used outside of class
./mac/wireless-phy.h:147: error: expected declaration before ‘}’ token


What is more frustrating is, even when I just put statement 
#include wireless-phy.h in my header file, without declaring any classes, I
still receive the same errors.  I need information from WirelessPhy class to
calculate the transmission range in my C++ source code.  

I hope anyone here could provide me some suggestions, solutions, or at least a
workaround to this problem.  Your help is highly appreciated.  Thank you in
advance

Aslinda Hassan

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2011.php



[ns] Antnet in ns2.34

2011-09-23 Thread Subha Uthayaraj

Hi all,
 I tried to install Antnet(AntColony Optimization) in NS2.34.

While compiling I got error as:

cmu-trace.cc:(.text._ZN11hdr_ant_pkt6accessEPK6Packet[hdr_ant_pkt::access(Packet
const*)]+0x7): undefined reference to `hdr_ant_pkt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

But there is no hdr_ant_pkt::access.

I followed the instruction given in antnet link.

Anyone tried this?

I googled this error, but i couldnt get relevant information.

Help me to solve.


Thank you.

-- 
Regards,
Subha