gaf.h File Reference

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

Include dependency graph for gaf.h:

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

Go to the source code of this file.

Data Structures

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

Defines

#define GAF_LEADER_JITTER   3
#define GAF_NONSTART_JITTER   3.0
#define GAF_STARTUP_JITTER   1.0
#define GN_UPDATE_INTERVAL   10
#define MAX_DISCOVERY   10
#define MAX_DISCOVERY_TIME   15
#define MAX_SELECT_TIME   6
#define MAXQUEUE   1
#define MIN_DISCOVERY_TIME   1
#define MIN_LIFETIME   60
#define MIN_SELECT_TIME   5
#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 67 of file gaf.h.

#define GAF_NONSTART_JITTER   3.0
 

Definition at line 59 of file gaf.h.

Referenced by GAFAgent::duty_timeout().

#define GAF_STARTUP_JITTER   1.0
 

Definition at line 58 of file gaf.h.

Referenced by GAFAgent::command().

#define GN_UPDATE_INTERVAL   10
 

Definition at line 57 of file gaf.h.

#define MAX_DISCOVERY   10
 

Definition at line 65 of file gaf.h.

#define MAX_DISCOVERY_TIME   15
 

Definition at line 61 of file gaf.h.

Referenced by GAFAgent::timeout().

#define MAX_SELECT_TIME   6
 

Definition at line 63 of file gaf.h.

#define MAXQUEUE   1
 

Definition at line 56 of file gaf.h.

Referenced by SRR::command().

#define MIN_DISCOVERY_TIME   1
 

Definition at line 60 of file gaf.h.

#define MIN_LIFETIME   60
 

Definition at line 66 of file gaf.h.

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

#define MIN_SELECT_TIME   5
 

Definition at line 62 of file gaf.h.

#define MIN_TURNOFFTIME   1
 

Definition at line 68 of file gaf.h.

Referenced by GAFAgent::schedule_wakeup().


Enumeration Type Documentation

enum GafMsgType
 

Enumerator:
GAF_DISCOVER 
GAF_SELECT 
GAF_DUTY 

Definition at line 72 of file gaf.h.

00072              {
00073   GAF_DISCOVER, GAF_SELECT, GAF_DUTY
00074 } GafMsgType;

enum GafNodeState
 

Enumerator:
GAF_FREE 
GAF_LEADER 
GAF_SLEEP 

Definition at line 76 of file gaf.h.

00076              {
00077   GAF_FREE, GAF_LEADER, GAF_SLEEP
00078 } GafNodeState;


Generated on Tue Mar 6 16:52:55 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6