Re: [ns] How to determine the current simulation time from C++ code?

2006-10-11 Thread M. Akif YAZICI
Try: Tcl tcl = Tcl::instance(); tcl.evalf(puts [$ns now]);

Re: [ns] How to save xgraph plots :-??

2006-08-12 Thread M. Akif YAZICI
Try printing the graph into a ps file.

Re: [ns] could't execute xgraph ---- ns2

2006-07-31 Thread M. Akif YAZICI
The problem is that the path of xgraph is not included in your PATH variable. There are two solutions. One is adding the path to your PATH variable. You can do so by adding a line similar to PATH=~/ns-allinone-2.29 /xgraph-12.1:${PATH} to the file .bash_profile. Of course, ~/ns-

Re: [ns] [query]finding neighbor in dsr protocol

2006-07-25 Thread M. Akif YAZICI
There is a method I know but it is at MAC level, so I don't know whether it will help. Since you are working on dsr, I guess you are using WirelessPhy as the physical interface. The class energy_model has a list of neighbors, namely neighbor_list, and WirelessPhy has a member of type

[ns] transmission power for mobile nodes

2006-07-22 Thread M. Akif YAZICI
Hello everyone, I am trying to simulate CAP-SV routing protocol for ad hoc networks, derived from AODV. I need to control the transmission power of each node and vary it according to the next hop since my protocol logs the min. power to reach each neighbor. Is there anyone who knows how to