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

Unified Diff: examples/wireless/multirate.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/multirate.cc
===================================================================
--- a/examples/wireless/multirate.cc
+++ b/examples/wireless/multirate.cc
@@ -347,8 +347,8 @@
// Equipping the source node with OnOff Application used for sending
OnOffHelper onoff ("ns3::UdpSocketFactory", Address (InetSocketAddress (Ipv4Address ("10.0.0.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]"));
onoff.SetAttribute ("DataRate", DataRateValue (DataRate (60000000)));
onoff.SetAttribute ("PacketSize", UintegerValue (packetSize));
onoff.SetAttribute ("Remote", AddressValue (InetSocketAddress (ipv4AddrServer, port)));

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