ns3::AnimationInterface * setAnimation(ns3::NodeContainer nodes)
{
ns3::AnimationInterface::SetConstantPosition(nodes.Get(0), 0.0, 3.0);
ns3::AnimationInterface::SetConstantPosition(nodes.Get(1), 3.0, 0.0);
ns3::AnimationInterface::SetConstantPosition(nodes.Get(2), 3.0, 3.0);
ns3::AnimationInterface::SetConstantPosition(nodes.Get(3), 6.1, 6.0);
ns3::AnimationInterface::SetConstantPosition(nodes.Get(4), 3.0, 9.0);
ns3::AnimationInterface * anim = new ns3::AnimationInterface ("anim_dos.xml");
anim->UpdateNodeDescription (nodes.Get(0)->GetId(), "Atacker n0");
anim->UpdateNodeDescription (nodes.Get(1)->GetId(), "Server");
anim->UpdateNodeDescription (nodes.Get(2)->GetId(), "Client n2");
anim->UpdateNodeDescription (nodes.Get(3)->GetId(), "Client n3");
anim->UpdateNodeDescription (nodes.Get(4)->GetId(), "Client n4");
anim->UpdateNodeSize(nodes.Get(0)->GetId(), 0.5, 0.5);
anim->UpdateNodeSize(nodes.Get(1)->GetId(), 1.0, 1.0);
anim->UpdateNodeSize(nodes.Get(2)->GetId(), 0.5, 0.5);
anim->UpdateNodeSize(nodes.Get(3)->GetId(), 0.5, 0.5);
anim->UpdateNodeSize(nodes.Get(4)->GetId(), 0.5, 0.5);
anim->EnablePacketMetadata (true);
//anim.SetMobilityPollInterval (ns3::Seconds (1));
anim->SetStartTime (ns3::Seconds (0));
anim->SetStopTime (ns3::Seconds (20));
return anim;
}