samples/main-random-walk.cc
changeset 2258 666099a753e0
parent 2230 9f13ac3291e0
child 2402 0950067d70a2
--- a/samples/main-random-walk.cc	Thu Jan 31 22:11:03 2008 +0100
+++ b/samples/main-random-walk.cc	Thu Jan 31 22:23:46 2008 +0100
@@ -46,7 +46,7 @@
   for (uint32_t i = 0; i < 100; i++)
     {
       Ptr<Node> node = CreateObject<Node> ();
-      node->AddInterface (CreateObject<MobilityModelNotifier> ());
+      node->AggregateObject (CreateObject<MobilityModelNotifier> ());
     }
 
   topology.Layout (NodeList::Begin (), NodeList::End ());