Re: [ns] How to call one function out of 2, using set nd [ns node] ???

2010-04-13 Thread Teerawat Issariyakul
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.

[ns] How to call one function out of 2, using set nd [ns node] ???

2010-04-13 Thread The Learner
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 call