Thanks Tommaso for your reply!
I have one last imp question, I am passing some argument to the constructor of 'MyClass' i.e. MyClass::MyClass(Ptr<int> j, uint_16 x, ...) , so I want to know how should I define these argument in the .AddConstructor? because in the current version (below) it gives error. I tried changing the definition but the error didn't resolve.
NS_OBJECT_ENSURE_REGISTERED (MyClass)
TypeId
MyClass::GetTypeId (void)
{
static TypeId tid = TypeId("ns3::MyClass")
.
SetParent<MobilityModel> ()
.
SetGroupName ("Mobility")
.
AddConstructor <MyClass> ();
}
Best,