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