[ns] how to trace user defined variable

2010-03-14 Thread neeraj gupta


Hi all

i have defined one function calculate_availabe_bandwidth in mac802_11.cc file 
the resultant is stored in vaiable (abe). This function is not called anywhere 
in mac802_11.cc. I want to call the function after every 5 seconds and trace 
the value of abe. can you tell how can i perform the said operation. i tried to 
bind both the function and variable but i am in fix how to call the function so 
that i can trace the value of abe.




Neeraj Gupta
Assistant Professor
HOD, CSE & IT Department
Hindu College of Engineering
Sonepat


[ns] please remove me from NS2 user group

2010-03-14 Thread al

ael...@cox.net



Re: [ns] please remove me from NS2 user group

2010-03-14 Thread Shyam Sundar

go to this link and type your id at unsubscribe text box and click
unsubscribe. Then you wont get further mails from ns2 users group.

http://mailman.isi.edu/mailman/listinfo/ns-users

If you want to avoid more mails from ns2, for those case dont unsubscribe
your id. Better go to your login and edit your option to digest message
which will send you 10 -15 messages as a single...

With Regards
S.Shyam Sundar


On Mon, Mar 15, 2010 at 9:07 AM, al  wrote:

>
> ael...@cox.net
>
>


[ns] How to set different initial energy value to each node?

2010-03-14 Thread Elly Soo

Hi,

I need guidance to set different initial energy value to each of my nodes in
tcl.

How can i do it, instead of using "set val(initeng) 100;" that applied to
all the nodes.

Thanks!

Regards,
Elly


[ns] reg : Linking errors

2010-03-14 Thread gayathri devi

Hai Everybody,

   For linking the c++ code with otcl
script, I have included the C++ code and it's object file under the ns2
directory and used make command to re-compile it for the changes
included. But it is producing the following errors ... So, Kindly
suggest me some guidelines regarding this 


[r...@localhost ns-2.34]# g++ -c greedy4.c++
linkage.tcl:1: error: ‘set’ does not name a type
agent.h:37: error: expected class-name before ‘{’ token
greedy4.c++:35: error: extra qualification ‘GreedyBound::’ on member 
‘readmatrix’
greedy4.c++:35: error: ‘void GreedyBound::readmatrix()’ cannot be overloaded
greedy4.c++:21: error: with ‘void GreedyBound::readmatrix()’
greedy4.c++:56: error:
 extra qualification ‘GreedyBound::’ on member ‘distance’
greedy4.c++:56: error: ‘void GreedyBound::distance()’ cannot be overloaded
greedy4.c++:19: error: with ‘void GreedyBound::distance()’
greedy4.c++:69: error: extra qualification ‘GreedyBound::’ on member ‘greedy’
greedy4.c++:69: error: ‘void GreedyBound::greedy(int)’ cannot be overloaded
greedy4.c++:20: error: with ‘void GreedyBound::greedy(int)’
greedy4.c++:108: error: extra qualification ‘GreedyBound::’ on member 
‘findangle’
greedy4.c++:108: error: ‘void GreedyBound::findangle(double, double, double)’ 
cannot be overloaded
greedy4.c++:23: error: with ‘void GreedyBound::findangle(double, double, 
double)’
greedy4.c++:159: error: extra qualification ‘GreedyBound::’ on member ‘display’
greedy4.c++:159: error: ‘void GreedyBound::display(int)’ cannot be overloaded
greedy4.c++:22: error: with ‘void
 GreedyBound::display(int)’
greedy4.c++:184: error: expected class-name before ‘{’ token
greedy4.c++:192: error: cannot define member function 
‘GreedyBound::BsrAgent::BsrAgent’ within ‘GreedyBound’
greedy4.c++:201: error: cannot define member function 
‘GreedyBound::BsrAgent::command’ within ‘GreedyBound’
greedy4.c++:210: error: cannot define member function 
‘GreedyBound::BsrAgent::MyprivateFunc’ within ‘GreedyBound’
greedy4.c++:216: error: expected `}' at end of input
greedy4.c++: In member function ‘void GreedyBound::readmatrix()’:
greedy4.c++:37: error: ‘Tcl’ was not declared in this scope
greedy4.c++:37: error: ‘tcl’ was not declared in this scope
greedy4.c++:37: error: ‘Tcl’ is not a class or namespace
greedy4.c++: In member function ‘void GreedyBound::distance()’:
greedy4.c++:60: error: ‘Tcl’ was not declared in this scope
greedy4.c++:60: error: ‘tcl’ was
 not declared in this scope
greedy4.c++:60: error: ‘Tcl’ is not a class or namespace
greedy4.c++: In member function ‘void GreedyBound::greedy(int)’:
greedy4.c++:72: error: ‘Tcl’ was not declared in this scope
greedy4.c++:72: error: ‘tcl’ was not declared in this scope
greedy4.c++:72: error: ‘Tcl’ is not a class or namespace
greedy4.c++:74: error: no matching function for call to 
‘GreedyBound::GreedyBound()’
greedy4.c++:11: note: candidates are: GreedyBound::GreedyBound(const 
GreedyBound&)
greedy4.c++: In member function ‘void GreedyBound::findangle(double, double, 
double)’:
greedy4.c++:111: error: ‘Tcl’ was not declared in this scope
greedy4.c++:111: error: ‘tcl’ was not declared in this scope
greedy4.c++:111: error: ‘Tcl’ is not a class or namespace
greedy4.c++: In member function ‘void GreedyBound::display(int)’:
greedy4.c++:161: error: ‘Tcl’ was not declared in
 this scope
greedy4.c++:161: error: ‘tcl’ was not declared in this scope
greedy4.c++:161: error: ‘Tcl’ is not a class or namespace
greedy4.c++: In constructor ‘GreedyBound::BsrAgentClass::BsrAgentClass()’:
greedy4.c++:186: error: class ‘GreedyBound::BsrAgentClass’ does not have any 
field named ‘TclClass’
greedy4.c++: In static member function ‘static TclObject* 
GreedyBound::BsrAgentClass::create(int, const char* const*)’:
greedy4.c++:188: error: cannot convert ‘GreedyBound::BsrAgent*’ to ‘TclObject*’ 
in return
greedy4.c++: At global scope:
greedy4.c++:189: error: expected unqualified-id at end of input
[r...@localhost ns-2.34]


Thanking You,
Gayathri


  Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/