Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(273)

Unified Diff: examples/wireless/wifi-ap.cc

Issue 6421061: replace src/application usage of RandomVariable with RandomVariableStream
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: examples/wireless/wifi-ap.cc
===================================================================
--- a/examples/wireless/wifi-ap.cc
+++ b/examples/wireless/wifi-ap.cc
@@ -170,8 +170,8 @@
socket.SetProtocol (1);
OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket));
- onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (42)));
- onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+ onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=42]"));
+ onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
ApplicationContainer apps = onoff.Install (stas.Get (0));
apps.Start (Seconds (0.5));

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b