The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Jaeyounj <jyoungj... @gmail.com>
Date: Sat, 15 Nov 2008 11:42:32 -0800 (PST)
Local: Sat, Nov 15 2008 2:42 pm
Subject: Help "OnOffHelper"
Hello,
I am testing a ns-3 example "wifi-adhoc.cc" but I can't find where the
definition of OnOffHelper is in Doxygen.
OnOffHelper onoff ("ns3::PacketSocketFactory", Address
(socketAddress));
onoff.SetAttribute ("OnTime", RandomVariableValue(ConstantVariable
(250)));
onoff.SetAttribute ("OffTime", RandomVariableValue(ConstantVariable
(0)));
onoff.SetAttribute ("DataRate", DataRateValue(DataRate(60000000)));
onoff.SetAttribute ("PacketSize", UintegerValue(2000));
Could anybody explain RandomVariableValue(...) in "OnTime" and
"OffTime"?
Even though I change the value in "OnTime", it works. Is it normal?
ex) onoff.SetAttribute ("OnTime", RandomVariableValue(ConstantVariable
(0)));
Thank you,
Jaeyoung
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Tom Henderson <t... @tomh.org>
Date: Sat, 15 Nov 2008 16:16:19 -0800
Local: Sat, Nov 15 2008 7:16 pm
Subject: Re: Help "OnOffHelper"
Jaeyounj wrote:
> Hello,
> I am testing a ns-3 example "wifi-adhoc.cc" but I can't find where the > definition of OnOffHelper is in Doxygen.
> OnOffHelper onoff ("ns3::PacketSocketFactory", Address > (socketAddress)); > onoff.SetAttribute ("OnTime", RandomVariableValue(ConstantVariable > (250))); > onoff.SetAttribute ("OffTime", RandomVariableValue(ConstantVariable > (0))); > onoff.SetAttribute ("DataRate", DataRateValue(DataRate(60000000))); > onoff.SetAttribute ("PacketSize", UintegerValue(2000));
I think you found two bugs. I do not know why Doxygen is not picking up the doxygen comments in src/helper/on-off-helper.h http://www.nsnam.org/bugzilla/show_bug.cgi?id=410
> Could anybody explain RandomVariableValue(...) in "OnTime" and > "OffTime"?
> Even though I change the value in "OnTime", it works. Is it normal? > ex) onoff.SetAttribute ("OnTime", RandomVariableValue(ConstantVariable > (0)));
This one is now logged as: http://www.nsnam.org/bugzilla/show_bug.cgi?id=411
We'll try to fix this as soon as possible.
Tom
You must
Sign in before you can post messages.
You do not have the permission required to post.