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

Unified Diff: src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.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: src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc
===================================================================
--- a/src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc
+++ b/src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc
@@ -191,8 +191,8 @@
socket.SetProtocol (1);
OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket));
- onoff.SetAttribute ("OnTime", RandomVariableValue (ExponentialVariable (0.4)));
- onoff.SetAttribute ("OffTime", RandomVariableValue (ExponentialVariable (0.1)));
+ onoff.SetAttribute ("OnTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.4]"));
+ onoff.SetAttribute ("OffTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.1]"));
onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("0.4Mbps")));
onoff.SetAttribute ("PacketSize", UintegerValue (1500));

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