Replace src/application usage of RandomVariable with RandomVariableStream

This commit is contained in:
Mitch Watrous
2012-08-13 16:08:13 -07:00
parent 0e2574aa55
commit 190f314ba5
74 changed files with 3386 additions and 221 deletions

View File

@@ -116,8 +116,8 @@ main (int argc, char *argv[])
OnOffHelper onoff ("ns3::UdpSocketFactory",
Address (InetSocketAddress (i3i2.GetAddress (1), port)));
onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
ApplicationContainer apps = onoff.Install (c.Get (0));
apps.Start (Seconds (1.0));