Nodes represent the basic structures in ns2. They inherit from TclObject class.
Agents are like TcpAgent and UdpAgent or NullAgent and they inherit from NsObject class, which itself inherits from TclObject. Agent can send data to one target_ to which they are connected. target_ is NsObject *.
Classifiers inherit from NsObject. They can send data to many as they have got the list. NsObject **.
Node Class has neighbour_list. Node has a RoutingModule object which has got the classifier. but since Node is not NsObject type, i can't put Node in the classifier's NsObject**.
I want to implement something (i do not know whether an Agent or a Node or Classifier) (i think it should be a classifier) so that i can get the neighbors of the node and send packets to some depending upon the logic.
What should i do ? if i implement a classifier how do i attach it with node.
Thanks in advance.