Bug 2371

Summary: Stop application through Schedule
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: applicationsAssignee: George Riley <riley>
Status: NEW ---    
Severity: enhancement CC: ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Tommaso Pecorella 2016-04-10 06:38:23 EDT
The discussion is here:
https://groups.google.com/forum/#!topic/ns-3-users/qUYqnO-P4I0

Basically the request is to be able to stop (or start) an application using Schedule.
This is (obviously) possible by the application itself, but not by an external object (e.g., a callback in the main script).
Comment 1 Tom Henderson 2016-04-12 00:02:04 EDT
I agree this is a limitation.  Also, it is not clear from the documentation that applications cannot be stopped once initialization time passes (i.e. calling SetStopTime() during simulation run time doesn't take effect.

Is the idea to provide a public Application::Stop ()?
Comment 2 Tommaso Pecorella 2016-04-12 04:22:17 EDT
Yes (and Start too, for symmetry).
However, we must double check that the various derived classes don't rely on the assumption that Start and Stop are called only once.