samples/main-grid-topology.cc
changeset 1579 a4187ed1e45e
parent 1569 9d7138b73898
child 1580 0d2cf8839aee
--- a/samples/main-grid-topology.cc	Wed Jul 04 09:56:22 2007 +0200
+++ b/samples/main-grid-topology.cc	Wed Jul 04 10:04:08 2007 +0200
@@ -27,7 +27,7 @@
   GridTopology grid (-100, -100, 20, 5, 20);
 
   // each object will be attached a static position.
-  grid.SetPositionModel (StaticPosition::cid);
+  grid.SetMobilityModelModel (StaticMobilityModel::cid);
 
   // finalize the setup by attaching to each object
   // in the input array a position and initializing
@@ -39,7 +39,7 @@
        j != nodes.end (); j++)
     {
       Ptr<Object> object = *j;
-      Ptr<Position> position = object->QueryInterface<Position> (Position::iid);
+      Ptr<MobilityModel> position = object->QueryInterface<MobilityModel> (MobilityModel::iid);
       NS_ASSERT (position != 0);
       double x, y, z;
       position->Get (x,y,z);