[Ns-developers] Application::Start/Stop, time parameter inconsistent with Simulator::Schedule
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Wed May 28 08:21:47 PDT 2008
On Tue, 2008-05-27 at 23:59 -0700, craigdo at ee.washington.edu wrote:
> So I think the simple, straightforward, easy to remember and use thing
> is to
> go with calls like:
>
> Application::Start (Seconds (5.)) means start *in* five seconds
> (relative).
> If you do this before the simulation starts it means start in five
> seconds
> once the simulation starts. Simulator::Stop (Seconds (5.)) means stop
> the
> simulation in five seconds (relative). If you do this before the
> simulation
> starts it does what StopAt does now. Etc., etc.
I suspect that a corollary of this proposal is to remove every function
using the At postfix (including Simulator::StopAt) and replace them with
a no-postfix function, right ? If so, that would be fine with me.
> It's hard to get too excited about this, though.
Indeed. But if someone wants to cook a patch along the lines of what you
outlined, I would be fine with it.
Mathieu
More information about the Ns-developers
mailing list