src/spectrum/examples/adhoc-aloha-ideal-phy.cc
changeset 8966 060dba23e9bb
parent 7736 d3c1e0eab341
child 9000 3ec20a64fd08
--- a/src/spectrum/examples/adhoc-aloha-ideal-phy.cc	Mon Aug 13 10:46:09 2012 -0700
+++ b/src/spectrum/examples/adhoc-aloha-ideal-phy.cc	Mon Aug 13 16:08:13 2012 -0700
@@ -168,8 +168,8 @@
   socket.SetProtocol (1);
 
   OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket));
-  onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (250)));
-  onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+  onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=250]"));
+  onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
   onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("0.5Mbps")));
   onoff.SetAttribute ("PacketSize", UintegerValue (125));