HI Learner,

Instproc Simulator::node is just a way to create a basic node. If you
want a fancy node of your own, you can define another instproc
Simulator::my_node. At the Tcl simulation script, you can do something
like

set mynode [$ns my_node]


Best Regards,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat


On 4/13/2010, "The Learner" <deeptisabnani.i...@pec.edu.in> wrote:

>
>
>while creating a new node using the statement-
>Using this statement set nd [ns node], a function defined in  ns-lib.tcl is
>called(particular to a protocol).
>In my case I have 2 agents, for different types of nodes and thus two
>functions in ns-lib.tcl, how shall I specify which function to be called
>while creating nodes using the statement set nd [ns node]...?
>
>Regards,
>The Learner
>--
>View this message in context: 
>http://old.nabble.com/How-to-call-one-function-out-of-2%2C-using-set-nd--ns-node------tp28219421p28219421.html
>Sent from the ns-users mailing list archive at Nabble.com.
>

Reply via email to