Start and Stop functionality

38 views
Skip to first unread message

Konstantinos

unread,
Apr 24, 2014, 2:49:24 PM4/24/14
to ns-3-...@googlegroups.com
Hi,

I have a question regarding the status of patch for Start/Stop (https://codereview.appspot.com/66990047/).
I do not see it in the plans for ns-3.20, so I guess it is not in a very good shape yet. 

I want to use a mobility model (http://dsn.tm.kit.edu/english/misc_vtl.php), which creates all the nodes at t=0 and places them at an "invalid" position (very far away -- 99999,99999).
And at a certain rate it brings them in a reference area, they move and then they are transferred back in this invalid position. 

My problem is my routing protocol that will complain for this invalid position and I would like to start the protocol at the time it enters the area and stop it when it leaves.

I thought that the proposed patch would solve my problem but I do not know if it is ready yet. Also I am wondering if there is a different approach I could follow, i.e. manually create a Start/Stop in the routing protocol which I could call with a callback and move part of the DoInitialize/DoDispose in those methods.

Regards,
Konstantinos

Tommaso Pecorella

unread,
Apr 25, 2014, 4:32:18 PM4/25/14
to ns-3-...@googlegroups.com
Hi Kostas,

I'd suggest to contact Vedran directly. The functionality isn't foreseen for 3.20, but I'd like to work on it as soon as 3.20 is out (I'm interested on it as well).
Personally, I'd use it, even if it's still in development. The most important thing for such new "basic" features is to explore them by... using them (a.k.a, be a beta tester).
Moreover, the Start/Stop *must* be useful exactly for your scenario, so...

Cheers,

T.

Vedran Miletić

unread,
May 12, 2014, 3:20:46 PM5/12/14
to ns-3-...@googlegroups.com
If you want FailureRepairModel to handle your starts and stops, then you have to have two functions that do start and stop action, which can be called Start() and Stop(), but do not have to. You can use StartStopFunctionality mixin if you want. The approach that you suggest is the way to go, and I use it in my classes.

Regards,
Vedran
Reply all
Reply to author
Forward
0 new messages