[Ns-developers] Application::Start/Stop, time parameter inconsistent with Simulator::Schedule

Gustavo Carneiro gjcarneiro at gmail.com
Wed May 28 08:29:26 PDT 2008


On 28/05/2008, Mathieu Lacage <mathieu.lacage at sophia.inria.fr> wrote:
>
>
> 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.


I volunteer to prepare the patch.

For now added a bug report:
http://www.nsnam.org/bugzilla/show_bug.cgi?id=191

-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list