utils/mobility-visualizer-model.cc
changeset 2402 0950067d70a2
parent 2399 fd9d94d518d2
parent 2258 666099a753e0
child 2503 e667dc0f350e
--- a/utils/mobility-visualizer-model.cc	Fri Feb 08 17:52:20 2008 +0100
+++ b/utils/mobility-visualizer-model.cc	Fri Feb 08 18:24:35 2008 +0100
@@ -49,7 +49,7 @@
   for (NodeList::Iterator nodeIter = NodeList::Begin (); nodeIter != NodeList::End (); nodeIter++)
     {
       Ptr<Node> node = *nodeIter;
-      Ptr<MobilityModel> mobility = node->QueryInterface<MobilityModel> ();
+      Ptr<MobilityModel> mobility = node->GetObject<MobilityModel> ();
       Vector pos = mobility->GetPosition ();
       Vector vel = mobility->GetVelocity ();
 
@@ -102,6 +102,8 @@
 
   Simulator::Schedule (g_sampleInterval, Sample);
 
+  // XXX: The following is not really going to work with the params.
+
   if (mobility.GetMobilityModelType () == "RandomWalk2dMobilityModel")
     {
       Rectangle bounds = DefaultValueListGet<RectangleDefaultValue> ("RandomWalk2dBounds")->GetValue ();