srm-topo.h File Reference

#include "scheduler.h"
#include "random.h"

Include dependency graph for srm-topo.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  BTree
class  Interface
class  Interface_List
class  Line
class  SRM_Event
class  SRM_Request
class  SrmNode
class  Star
class  Topology

Defines

#define CONSTANT   3
#define LINEAR   2
#define LOG   0
#define SQRT   1
#define SRM_DATA   0
#define SRM_NO_SUPPRESS   1
#define SRM_NOIF   -1
#define SRM_PENDING_RREQ   2
#define SRM_RREQ   1
#define SRM_SUPPRESS   0
#define tprintf(x)

Variables

Topologytopology


Define Documentation

#define CONSTANT   3
 

Definition at line 213 of file srm-topo.h.

Referenced by BTree::backoff(), and Line::backoff().

#define LINEAR   2
 

Definition at line 212 of file srm-topo.h.

Referenced by BTree::backoff(), and Line::backoff().

#define LOG   0
 

Definition at line 210 of file srm-topo.h.

Referenced by BTree::backoff(), and Line::backoff().

#define SQRT   1
 

Definition at line 211 of file srm-topo.h.

Referenced by BTree::backoff(), and Line::backoff().

#define SRM_DATA   0
 

Definition at line 56 of file srm-topo.h.

#define SRM_NO_SUPPRESS   1
 

Definition at line 62 of file srm-topo.h.

Referenced by SrmNode::handle().

#define SRM_NOIF   -1
 

Definition at line 63 of file srm-topo.h.

Referenced by BTree::flood(), BTree::oif(), Line::oif(), and SrmNode::sched_nack().

#define SRM_PENDING_RREQ   2
 

Definition at line 58 of file srm-topo.h.

Referenced by SrmNode::handle(), and SrmNode::sched_nack().

#define SRM_RREQ   1
 

Definition at line 57 of file srm-topo.h.

Referenced by SrmNode::handle().

#define SRM_SUPPRESS   0
 

Definition at line 61 of file srm-topo.h.

Referenced by SrmNode::handle(), and SrmNode::remove().

#define tprintf  ) 
 

Value:

{ \
    Scheduler &_s = Scheduler::instance(); \
    double _now = _s.clock(); \
    printf("%f : ", _now); \
    printf x;\
    fflush(stdout);\
}

Definition at line 49 of file srm-topo.h.

Referenced by SrmNode::dump_packet(), and SrmNode::handle().


Variable Documentation

class Topology* topology
 

Definition at line 155 of file srm-topo.h.

Referenced by Star::backoff(), BTree::backoff(), Line::backoff(), BTree::BTree(), Line::Line(), Star::oif(), SrmNode::sched_nack(), SrmNode::send(), and Star::Star().


Generated on Tue Mar 6 17:00:53 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6