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