[Ns-bugs] [Bug 388] document how to apply fuzz to models
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sat Jan 10 18:42:44 PST 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=388
--- Comment #4 from Tom Henderson <tomh at tomh.org> 2009-01-10 21:42:44 EDT ---
(In reply to comment #3)
> How about implementing the following trivial API ?
>
> class ApplicationContainer
> {
> public:
> void Start (RandomVariable &v);
> };
>
> app.Start (UniformVariable (0.9, 1.1));
>
> There are lots of refinements which could be done on top of this basic idea but
> it seems to me that this would solve a lot of the use-cases we discussed in the
> past.
>
This is probably too limiting:
- more than "start time" is needed (mainly, timeouts)
- more than applications need to be covered (e.g. devices, operating systems,
etc.)
I was thinking, maybe move timer.cc,h to src/core and add
Timer::SetFuzz (RandomVariable var);
plus, a documented suggestion for users to know how to insert fuzz time between
function calls, such as e.g.
Simulator::Schedule (UniformVariable::GetSingleValue (),
&function, this, arg1, arg2, ...);
(or whatever UniformVariable::GetSingleValue () equivalent is with the new
random variable API).
Application::Start () and application containers could have starting time fuzz
too, like you suggest.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list