Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

LanNode Class Reference

#include <parentnode.h>

Inheritance diagram for LanNode:

Inheritance graph
[legend]
Collaboration diagram for LanNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LanNode ()
virtual int command (int argc, const char *const *argv)
virtual int address ()
virtual int nodeid ()
virtual void add_route (char *, NsObject *)
virtual void delete_route (char *, NsObject *)
virtual void set_table_size (int nn)
virtual void set_table_size (int lev, int nn)

Protected Attributes

int nodeid_
int address_

Constructor & Destructor Documentation

LanNode::LanNode  )  [inline]
 

Definition at line 63 of file parentnode.h.

00063 : ParentNode() {} 


Member Function Documentation

virtual void ParentNode::add_route char *  ,
NsObject
[inline, virtual, inherited]
 

Reimplemented in Node, and BroadcastNode.

Definition at line 47 of file parentnode.h.

Referenced by Simulator::populate_flat_classifiers().

00047 {}

virtual int ParentNode::address  )  [inline, virtual, inherited]
 

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_;}

int LanNode::command int  argc,
const char *const *  argv
[virtual]
 

Definition at line 57 of file parentnode.cc.

References ParentNode::address_, Address::instance(), ParentNode::nodeid_, and Address::str2addr().

00057                                                      {
00058   if (argc == 3) {
00059     if (strcmp(argv[1], "addr") == 0) {
00060       address_ = Address::instance().str2addr(argv[2]);
00061       return TCL_OK;
00062     } else if (strcmp(argv[1], "nodeid") == 0) {
00063       nodeid_ = atoi(argv[2]);
00064       return TCL_OK;
00065     }
00066   }
00067   return ParentNode::command(argc,argv);
00068 }

Here is the call graph for this function:

virtual void ParentNode::delete_route char *  ,
NsObject
[inline, virtual, inherited]
 

Reimplemented in Node, and BroadcastNode.

Definition at line 48 of file parentnode.h.

00048 {}

virtual int ParentNode::nodeid  )  [inline, virtual, inherited]
 

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_;}

virtual void ParentNode::set_table_size int  lev,
int  nn
[inline, virtual, inherited]
 

Reimplemented in Node.

Definition at line 50 of file parentnode.h.

00050 {}

virtual void ParentNode::set_table_size int  nn  )  [inline, virtual, inherited]
 

Reimplemented in Node.

Definition at line 49 of file parentnode.h.

Referenced by Simulator::populate_flat_classifiers().

00049 {}


Member Data Documentation

int ParentNode::address_ [protected, inherited]
 

Reimplemented in Node.

Definition at line 53 of file parentnode.h.

Referenced by ParentNode::address(), BroadcastNode::command(), AbsLanNode::command(), command(), and ParentNode::ParentNode().

int ParentNode::nodeid_ [protected, inherited]
 

Reimplemented in Node.

Definition at line 52 of file parentnode.h.

Referenced by BroadcastNode::command(), AbsLanNode::command(), command(), ParentNode::nodeid(), and ParentNode::ParentNode().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 12:54:49 2004 for NS2.26SourcesOriginal by doxygen 1.3.3