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


Definition at line 107 of file parentnode.h.
Public Member Functions | |
| virtual void | add_route (char *dst, NsObject *target) |
| virtual int | address () |
| BroadcastNode () | |
| virtual int | command (int argc, const char *const *argv) |
| virtual void | delete_route (char *dst, NsObject *nullagent) |
| virtual int | nodeid () |
| virtual void | set_table_size (int lev, int nn) |
| virtual void | set_table_size (int nn) |
Protected Attributes | |
| int | address_ |
| int | nodeid_ |
Private Attributes | |
| BcastAddressClassifier * | classifier_ |
|
|
Definition at line 109 of file parentnode.h. 00109 : ParentNode(), classifier_(NULL) {}
|
|
||||||||||||
|
Reimplemented from ParentNode. Definition at line 131 of file parentnode.cc. References classifier_, and Classifier::do_install(). 00131 { 00132 classifier_->do_install(dst,target); 00133 }
Here is the call graph for this function: ![]() |
|
|
Reimplemented in Node. Definition at line 66 of file parentnode.h. References ParentNode::address_. 00066 { return address_;}
|
|
||||||||||||
|
Definition at line 108 of file parentnode.cc. References ParentNode::address_, classifier_, Address::instance(), ParentNode::nodeid_, and Address::str2addr(). 00108 { 00109 Tcl& tcl = Tcl::instance(); 00110 if (argc == 3) { 00111 if (strcmp(argv[1], "addr") == 0) { 00112 address_ = Address::instance().str2addr(argv[2]); 00113 return TCL_OK; 00114 } 00115 else if (strcmp(argv[1], "nodeid") == 0) { 00116 nodeid_ = Address::instance().str2addr(argv[2]); 00117 return TCL_OK; 00118 } 00119 else if (strcmp(argv[1], "attach-classifier") == 0) { 00120 classifier_ = (BcastAddressClassifier*)(TclObject::lookup(argv[2])); 00121 if (classifier_ == NULL) { 00122 tcl.add_errorf("Wrong object name %s",argv[2]); 00123 return TCL_ERROR; 00124 } 00125 return TCL_OK; 00126 } 00127 } 00128 return ParentNode::command(argc,argv); 00129 }
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Reimplemented from ParentNode. Definition at line 135 of file parentnode.cc. References classifier_, and Classifier::do_install(). 00135 { 00136 classifier_->do_install(dst, nullagent); 00137 }
Here is the call graph for this function: ![]() |
|
|
Reimplemented in Node. Definition at line 67 of file parentnode.h. References ParentNode::nodeid_. Referenced by Simulator::get_link_head(). 00067 { return nodeid_;}
|
|
||||||||||||
|
Reimplemented in Node. Definition at line 71 of file parentnode.h.
|
|
|
Reimplemented in Node. Definition at line 70 of file parentnode.h.
|
|
|
Reimplemented in Node. Definition at line 74 of file parentnode.h. Referenced by ParentNode::address(), command(), AbsLanNode::command(), and LanNode::command(). |
|
|
Definition at line 116 of file parentnode.h. Referenced by add_route(), command(), and delete_route(). |
|
|
Reimplemented in Node. Definition at line 73 of file parentnode.h. Referenced by command(), AbsLanNode::command(), LanNode::command(), and ParentNode::nodeid(). |
1.4.6