Hi all,
I want to set the on time and off time as exponential random variables. In order to do that I'm using the following code:
source.SetAttribute ("OnTime", StringValue ("ns3::ExponentialRandomVariable[mean=0.5]"));
source.SetAttribute ("OffTime",StringValue ("ns3::ExponentialRandomVariable[mean=0.5]"));
However, I get the following error message:
msg="Invalid value for attribute set (OnTime) on ns3::OnOffApplication", file=../src/core/model/object-factory.cc, line=75
terminate called without an active exception
Can anyone tell me how to declare an on off application with exponentially distributed ON time and OFF time.
Please reply as soon as possible.
Thank you.