about RandomPropagationLossModel

43 views
Skip to first unread message

LILING

unread,
Apr 1, 2014, 3:01:07 AM4/1/14
to ns-3-...@googlegroups.com
YansWifiChannelHelper wifiChannel;
wifiChannel.AddPropagationLoss("ns3::RandomPropagationLossModel","Variable",
RandomVariableValue(UniformVariable(27.0, 43.0) ));

msg="Invalid value for attribute set (Variable) on
ns3::RandomPropagationLossModel", file=../src/core/model/object-factory.cc,
line=76
terminate called without an active exception


i use ns3.19.
the reason of this error?

thanks a lot.

Konstantinos

unread,
Apr 3, 2014, 9:58:27 AM4/3/14
to ns-3-...@googlegroups.com
The reason is that you give an Invalid value for attribute 'variable'

It expects a PointerValue for a RandomVariableStream and you give a RandomVariableValue. 
I guess you have copied this code from an example for a ns-3 release older than ns-3.14 (that's when this change was introduced).
 

thanks a lot.

Reply all
Reply to author
Forward
0 new messages