src/netanim/examples/grid-animation.cc
changeset 8806 089f19e3b412
parent 7564 642fa0627ba6
child 8966 060dba23e9bb
equal deleted inserted replaced
8805:83307aa1ea82 8806:089f19e3b412
    86   AnimationInterface anim (animFile);
    86   AnimationInterface anim (animFile);
    87 
    87 
    88   // Set up the actual simulation
    88   // Set up the actual simulation
    89   Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
    89   Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
    90 
    90 
    91   std::cout << "Running the simulation" << std::endl;
       
    92   Simulator::Run ();
    91   Simulator::Run ();
    93   std::cout << "Destroying the simulation" << std::endl;
       
    94   Simulator::Destroy ();
    92   Simulator::Destroy ();
    95   std::cout << "Stopping the animation" << std::endl;
       
    96   anim.StopAnimation ();
       
    97   return 0;
    93   return 0;
    98 }
    94 }