src/netanim/examples/star-animation.cc
changeset 8966 060dba23e9bb
parent 7717 cfa1741013dd
--- a/src/netanim/examples/star-animation.cc	Mon Aug 13 10:46:09 2012 -0700
+++ b/src/netanim/examples/star-animation.cc	Mon Aug 13 16:08:13 2012 -0700
@@ -110,8 +110,8 @@
   // Create OnOff applications to send TCP to the hub, one on each spoke node.
   //
   OnOffHelper onOffHelper ("ns3::TcpSocketFactory", Address ());
-  onOffHelper.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
-  onOffHelper.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+  onOffHelper.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
+  onOffHelper.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
 
   ApplicationContainer spokeApps;