[ns] ns units

2006-05-17 Thread k s
Hello, I was wondering, when I set two nodes a distance apart of 30, is it 30m or feet or km...? Also in wireless simulation, the transmission range of the antenna is km or m...? Does anyone know where this is discussed? Or is it all relative? :) Kathy

[ns] Regarding solution of problem in simple programe.

2006-05-17 Thread Bhoi Maheshbhai Mohanbhai
Hi all, When I run the sample program about C++/Otcl linkage I got the error as described below: Program: class MyAgent : public Agent { public: MyAgent(); protected: int command(int *argc,const char *const* argv); private: int My_var1; double My_var2; void MyPrivFun(void); };

[ns] Regarding solution of problem in simple programe.

2006-05-17 Thread Bhoi Maheshbhai Mohanbhai
Hi all, When I run the sample program about C++/Otcl linkage I got the error as described below: Program: class MyAgent : public Agent { public: MyAgent(); protected: int command(int *argc,const char *const* argv); private: int My_var1; double My_var2; void MyPrivFun(void); };

Re: [ns] UMTS simulation error

2006-05-17 Thread Martina Umlauft
Hi there! This is a known (but not well documented) bug in EURANE. You have an uneven number of UMTS nodes (1 RNC + 1 BS + 1 UE = 3 nodes) AND your traffic starts from the fixed node. 2 ways to work around it: 1) set up another dummy UMTS node (eg. another UE which is never used) 2) put the

[ns] how to get current date ($ns now) in c++?

2006-05-17 Thread Gilles Bertrand
Dear NS-users I am modifying an extension of ns (RSVP-TE\ns), and at some point I need to have an access to the current date (given in tcl by $ns now). I don't know how to do this. I suppose I could use something like: Tcl tcl = Tcl::instance(); tcl.evalf(%d now, my_simulator_instance); but I

Re: [ns] how to get current date ($ns now) in c++?

2006-05-17 Thread Gilles Bertrand
Well, I am sorry for having bothered your mailboxes. I have finally found the solution: Scheduler::instance().clock() indeed returns the simulated time, as I needed. Mit freundlichen Grüßen, with kind regards, cordialement, -- Gilles

Re: [ns] how to get current date ($ns now) in c++?

2006-05-17 Thread Alexander Sayenko
Hi From C++ use it is better to use: Scheduler::instance().clock() You can also call the Otcl code from C++, but the former will call C++ again. So if you use C++, call C++ functions directly. Here is the Otcl solution Tcl tcl = Tcl::instance(); tcl.evalf([Simulator instance] now); Then

[ns] I NEED HELP IN ORDER TO DEBUG C++ CODE

2006-05-17 Thread Edwin Cruz
hi everyone In past message I read that in order to debug I need to do: ++ look for the line : # Build Tcl8.3.2 (should be around line 173) In this section you need to add the option --enable-symbols to the line : ./configure

[ns] trace format of WPAN(802.15.4)

2006-05-17 Thread louis . csie89
Dear all: It takes me few days long to search the definition of each field. But so far, I still can not understand the trace format. Please all you! The trace file looks like the following form. r 11.480768033 _5_ MAC --- 0 BCN 12 [0 0 0] s 11.591552000 _0_ MAC --- 14 exp 97 [0 1 0

[ns] how to start modifying code

2006-05-17 Thread ra sa
hi; i am a beginner in ns2 and i want to modify aodv or dsr protocol code such that i want this protocol to save all possible routes to the destination in a cache for example in a file such that if a link is broken it directly take the other route without doing route discovery how it can be

[ns] Routing Tables

2006-05-17 Thread Gcmm RS
Hi , I would like to extract from any node at any time it's current routing table. I'm using DV protocol as also LS . Do you know what command do that? Thanx, Giovane

Re: [ns] query:otcl command explanation?

2006-05-17 Thread Filippos Kolovos
Well, the terms that you are referring to are standard object oriented programming terms. There are some sites that can offer a relative introduction to what you are asking, but in order to understand in depth these issues, you should read a good object-oriented programming book, or an OTcl

[ns] Multipath classifier and port classifier

2006-05-17 Thread Shruti Gorappa
Hello, I am trying to understand the structure of the classifier when the multipath classifier is used. From the manual, I understand that the main classifier points to the multipath classifier instead of the link, and the classify() function of the multipath classifier is invoked when

[ns] wirelessphy in aodv

2006-05-17 Thread chen xiaoqin
Hello: 1) I need use the WirelessPhy object (for receive threshold) in routing layer, How can I get a reference to them (such as in AODV or DSR)? For example, in DSR, it use install-tap to connect mac_ in DSR with the MAC object in tcl in DSRagent::command, however, when I check the