NetAnim: Allow metadata as default in the examples

This commit is contained in:
John Abraham
2014-02-09 11:25:35 -08:00
parent 4a5acb6109
commit 8181d545fd
4 changed files with 4 additions and 3 deletions

View File

@@ -94,6 +94,7 @@ int main (int argc, char *argv[])
// Create the animation object and configure for specified output
AnimationInterface anim (animFile);
anim.EnablePacketMetadata (); // Optional
// Set up the acutal simulation
Ipv4GlobalRoutingHelper::PopulateRoutingTables ();

View File

@@ -179,7 +179,7 @@ int main (int argc, char *argv[])
// Create the animation object and configure for specified output
pAnim = new AnimationInterface (animFile, true); // true --> Enable 3.105 behavior
pAnim = new AnimationInterface (animFile);
// Provide the absolute path to the resource
resourceId1 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo1.png");
resourceId2 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo2.png");

View File

@@ -174,7 +174,7 @@ main (int argc, char *argv[])
AnimationInterface anim ("wireless-animation.xml"); // Mandatory
anim.EnablePacketMetadata (true); // Optional
anim.EnablePacketMetadata (); // Optional
anim.EnableIpv4RouteTracking ("routingtable-wireless.xml", Seconds (0), Seconds (5), Seconds (0.25)); //Optional
Simulator::Run ();
Simulator::Destroy ();

View File

@@ -454,7 +454,7 @@ public:
* \param enable if true enables writing the packet metadata to the XML trace file
* if false disables writing the packet metadata
*/
void EnablePacketMetadata (bool enable);
void EnablePacketMetadata (bool enable = true);
/**
*