diff -r cfed4f87e003 -r 060dba23e9bb src/netanim/examples/grid-animation.cc --- a/src/netanim/examples/grid-animation.cc Mon Aug 13 10:46:09 2012 -0700 +++ b/src/netanim/examples/grid-animation.cc Mon Aug 13 16:08:13 2012 -0700 @@ -65,10 +65,8 @@ OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ()); - clientHelper.SetAttribute - ("OnTime", RandomVariableValue (ConstantVariable (1))); - clientHelper.SetAttribute - ("OffTime", RandomVariableValue (ConstantVariable (0))); + clientHelper.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]")); + clientHelper.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]")); ApplicationContainer clientApps; // Create an on/off app sending packets