#include <parentnode.h>
Inheritance diagram for BroadcastNode:


Public Member Functions | |
| BroadcastNode () | |
| virtual int | command (int argc, const char *const *argv) |
| virtual void | add_route (char *dst, NsObject *target) |
| virtual void | delete_route (char *dst, NsObject *nullagent) |
| virtual int | address () |
| virtual int | nodeid () |
| virtual void | set_table_size (int nn) |
| virtual void | set_table_size (int lev, int nn) |
Protected Attributes | |
| int | nodeid_ |
| int | address_ |
Private Attributes | |
| BcastAddressClassifier * | classifier_ |
|
|
Definition at line 88 of file parentnode.h. References classifier_.
00088 : ParentNode(), classifier_(NULL) {} |
|
||||||||||||
|
Reimplemented from ParentNode. Definition at line 106 of file parentnode.cc. References classifier_, and Classifier::do_install().
00106 {
00107 classifier_->do_install(dst,target);
00108 }
|
Here is the call graph for this function:

|
|
Reimplemented in Node. Definition at line 45 of file parentnode.h. References ParentNode::address_. Referenced by Simulator::node_id_by_addr(), and Simulator::populate_hier_classifiers().
00045 { return address_;}
|
|
||||||||||||
|
Definition at line 83 of file parentnode.cc. References ParentNode::address_, classifier_, Address::instance(), ParentNode::nodeid_, and Address::str2addr().
00083 {
00084 Tcl& tcl = Tcl::instance();
00085 if (argc == 3) {
00086 if (strcmp(argv[1], "addr") == 0) {
00087 address_ = Address::instance().str2addr(argv[2]);
00088 return TCL_OK;
00089 }
00090 else if (strcmp(argv[1], "nodeid") == 0) {
00091 nodeid_ = Address::instance().str2addr(argv[2]);
00092 return TCL_OK;
00093 }
00094 else if (strcmp(argv[1], "attach-classifier") == 0) {
00095 classifier_ = (BcastAddressClassifier*)(TclObject::lookup(argv[2]));
00096 if (classifier_ == NULL) {
00097 tcl.add_errorf("Wrong object name %s",argv[2]);
00098 return TCL_ERROR;
00099 }
00100 return TCL_OK;
00101 }
00102 }
00103 return ParentNode::command(argc,argv);
00104 }
|
Here is the call graph for this function:

|
||||||||||||
|
Reimplemented from ParentNode. Definition at line 110 of file parentnode.cc. References classifier_, and Classifier::do_install().
00110 {
00111 classifier_->do_install(dst, nullagent);
00112 }
|
Here is the call graph for this function:

|
|
Reimplemented in Node. Definition at line 46 of file parentnode.h. References ParentNode::nodeid_. Referenced by Simulator::get_link_head(), and Simulator::node_id_by_addr().
00046 { return nodeid_;}
|
|
||||||||||||
|
Reimplemented in Node. Definition at line 50 of file parentnode.h.
00050 {}
|
|
|
Reimplemented in Node. Definition at line 49 of file parentnode.h. Referenced by Simulator::populate_flat_classifiers().
00049 {}
|
|
|
Reimplemented in Node. Definition at line 53 of file parentnode.h. Referenced by ParentNode::address(), command(), AbsLanNode::command(), LanNode::command(), and ParentNode::ParentNode(). |
|
|
Definition at line 95 of file parentnode.h. Referenced by add_route(), BroadcastNode(), command(), and delete_route(). |
|
|
Reimplemented in Node. Definition at line 52 of file parentnode.h. Referenced by command(), AbsLanNode::command(), LanNode::command(), ParentNode::nodeid(), and ParentNode::ParentNode(). |
1.3.3