src/netanim/examples/dumbbell-animation.cc
changeset 7252 c8200621e252
parent 7181 7ff8011cf487
child 7256 b04ba6772f8c
equal deleted inserted replaced
7251:b2fe610ad03f 7252:c8200621e252
    75                          Ipv4AddressHelper ("10.3.1.0", "255.255.255.0"));
    75                          Ipv4AddressHelper ("10.3.1.0", "255.255.255.0"));
    76 
    76 
    77   // Install on/off app on all right side nodes
    77   // Install on/off app on all right side nodes
    78   OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ());
    78   OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ());
    79   clientHelper.SetAttribute 
    79   clientHelper.SetAttribute 
    80           ("OnTime", RandomVariableValue (UniformVariable (0, 1)));
    80     ("OnTime", RandomVariableValue (UniformVariable (0, 1)));
    81   clientHelper.SetAttribute 
    81   clientHelper.SetAttribute 
    82           ("OffTime", RandomVariableValue (UniformVariable (0, 1)));
    82     ("OffTime", RandomVariableValue (UniformVariable (0, 1)));
    83   ApplicationContainer clientApps;
    83   ApplicationContainer clientApps;
    84 
    84 
    85   for (uint32_t i = 0; i < d.RightCount (); ++i)
    85   for (uint32_t i = 0; i < d.RightCount (); ++i)
    86     {
    86     {
    87       // Create an on/off app sending packets to the same leaf right side
    87       // Create an on/off app sending packets to the same leaf right side