Bug 2371 - Stop application through Schedule
Stop application through Schedule
Status: NEW
Product: ns-3
Classification: Unclassified
Component: applications
ns-3-dev
All All
: P5 enhancement
Assigned To: George Riley
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-10 06:38 EDT by Tommaso Pecorella
Modified: 2016-04-12 04:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.