[ns] sending packets from objects within agent

2006-03-27 Thread elise hu
Hi, i have implemented a routing agent for ad-hoc routing, but i have a problem: the agent attached to a node has several 'roles', so the agent has a central subclass of agent, and contains several objects which take care of different behaviours. Now i need to send packets from those objects

[ns] changing Tcl script

2006-03-24 Thread elise hu
Hi, i have implemented a new ad-hoc routing agent on ns-2.29. When i use it, i get a Tcl error message, which i can more or less figure out. So i change the script concerned, but when i run my test again, i get the SAME error message, displaying a bit of code that i have changed, without the

[ns] statement has no effect with CURRENT_TIME

2006-03-21 Thread elise hu
Hi, like pretty much everyone on this mailing list, i'm implementing an ad-hoc routing agent. My code compiles and is built into ns - however i have a warning : warning: statement has no effect for pretty much every line looking like : expire_time = CURRENT_TIME + nb_freshness_*t_br_; (i

[ns] retrieving node from routing agent in ad-hoc routing

2006-02-14 Thread elise hu
Is it possible to access the node object (or better yet, the mobilenode object), from the routing agent ? For instance in AODV, is it possible to retrieve the node object, using for instance the address (index) ? Thank you, Elise (using ns-2.29)

[ns] access position information

2006-02-13 Thread elise hu
Hi, i see that mobilenode possesses position information. Is this information also available to the ad-hoc routing agent ? If not, would it be possible to access it ? (the link to mobile node and routing agent is not entirely clear to me yet) Thank you, Elise