--- 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 ();