src/mobility/hierarchical-mobility-model.cc
changeset 2258 666099a753e0
parent 2257 71a58e70c671
child 2402 0950067d70a2
--- a/src/mobility/hierarchical-mobility-model.cc	Thu Jan 31 22:11:03 2008 +0100
+++ b/src/mobility/hierarchical-mobility-model.cc	Thu Jan 31 22:23:46 2008 +0100
@@ -43,12 +43,12 @@
   if (childNotifier == 0)
     {
       childNotifier = CreateObject<MobilityModelNotifier> ();
-      child->AddInterface (childNotifier);
+      child->AggregateObject (childNotifier);
     }
   if (parentNotifier == 0)
     {
       parentNotifier = CreateObject<MobilityModelNotifier> ();
-      parent->AddInterface (parentNotifier);
+      parent->AggregateObject (parentNotifier);
     }
   childNotifier->TraceConnect ("/course-changed", MakeCallback (&HierarchicalMobilityModel::ChildChanged, this));
   parentNotifier->TraceConnect ("/course-changed", MakeCallback (&HierarchicalMobilityModel::ParentChanged, this));