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

gaf.h File Reference

#include <assert.h>
#include "agent.h"
#include "node.h"

Include dependency graph for gaf.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Compounds

struct  DiscoveryMsg
class  GAFAgent
class  GAFDiscoverTimer
class  GAFDutyTimer
class  GAFPartner
class  GAFSelectTimer
struct  hdr_gaf

Defines

#define MAXQUEUE   1
#define GN_UPDATE_INTERVAL   10
#define GAF_STARTUP_JITTER   1.0
#define GAF_NONSTART_JITTER   3.0
#define MIN_DISCOVERY_TIME   1
#define MAX_DISCOVERY_TIME   15
#define MIN_SELECT_TIME   5
#define MAX_SELECT_TIME   6
#define MAX_DISCOVERY   10
#define MIN_LIFETIME   60
#define GAF_LEADER_JITTER   3
#define MIN_TURNOFFTIME   1

Enumerations

enum  GafMsgType { GAF_DISCOVER, GAF_SELECT, GAF_DUTY }
enum  GafNodeState { GAF_FREE, GAF_LEADER, GAF_SLEEP }


Define Documentation

#define GAF_LEADER_JITTER   3
 

Definition at line 46 of file gaf.h.

#define GAF_NONSTART_JITTER   3.0
 

Definition at line 38 of file gaf.h.

Referenced by GAFAgent::duty_timeout().

#define GAF_STARTUP_JITTER   1.0
 

Definition at line 37 of file gaf.h.

Referenced by GAFAgent::command().

#define GN_UPDATE_INTERVAL   10
 

Definition at line 36 of file gaf.h.

#define MAX_DISCOVERY   10
 

Definition at line 44 of file gaf.h.

#define MAX_DISCOVERY_TIME   15
 

Definition at line 40 of file gaf.h.

Referenced by GAFAgent::timeout().

#define MAX_SELECT_TIME   6
 

Definition at line 42 of file gaf.h.

#define MAXQUEUE   1
 

Definition at line 35 of file gaf.h.

Referenced by SRR::command().

#define MIN_DISCOVERY_TIME   1
 

Definition at line 39 of file gaf.h.

#define MIN_LIFETIME   60
 

Definition at line 45 of file gaf.h.

Referenced by GAFAgent::makeUpDiscoveryMsg(), GAFAgent::processDiscoveryMsg(), and GAFAgent::timeout().

#define MIN_SELECT_TIME   5
 

Definition at line 41 of file gaf.h.

#define MIN_TURNOFFTIME   1
 

Definition at line 47 of file gaf.h.

Referenced by GAFAgent::schedule_wakeup().


Enumeration Type Documentation

enum GafMsgType
 

Enumeration values:
GAF_DISCOVER 
GAF_SELECT 
GAF_DUTY 

Definition at line 51 of file gaf.h.

00051              {
00052   GAF_DISCOVER, GAF_SELECT, GAF_DUTY
00053 } GafMsgType;

enum GafNodeState
 

Enumeration values:
GAF_FREE 
GAF_LEADER 
GAF_SLEEP 

Definition at line 55 of file gaf.h.

00055              {
00056   GAF_FREE, GAF_LEADER, GAF_SLEEP
00057 } GafNodeState;


Generated on Tue Apr 20 12:20:27 2004 for NS2.26SourcesOriginal by doxygen 1.3.3