ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
|  Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  |  Download | 


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

GAFAgent Class Reference

#include <gaf.h>

Inheritance diagram for GAFAgent:

Agent Connector NsObject TclObject Handler List of all members.

Public Member Functions

 GAFAgent (nsaddr_t id)
virtual void recv (Packet *, Handler *)
void timeout (GafMsgType)
u_int32_t nodeid ()
double myttl ()

Protected Member Functions

int command (int argc, const char *const *argv)
void node_on ()
void node_off ()
void duty_timeout ()
void send_discovery ()
void makeUpDiscoveryMsg (Packet *p)
void processDiscoveryMsg (Packet *p)
void schedule_wakeup (struct DiscoveryMsg)
void setGAFstate (GafNodeState)

Protected Attributes

double beacon_
int randomflag_
GAFDiscoverTimer timer_
GAFSelectTimer stimer_
GAFDutyTimer dtimer_
int seqno_
int gid_
int nid_
Node * thisnode
int maxttl_
GafNodeState state_
int leader_settime_
int adapt_mobility_

Constructor & Destructor Documentation

GAFAgent::GAFAgent (  nsaddr_t    id ) 
 


Member Function Documentation

int GAFAgent::command (  int    argc,
const char *const *    argv
)  [protected, virtual]
 

Reimplemented from Agent.

void GAFAgent::duty_timeout (    )  [protected]
 

void GAFAgent::makeUpDiscoveryMsg (  Packet *    p )  [protected]
 

double GAFAgent::myttl (    ) 
 

void GAFAgent::node_off (    )  [protected]
 

void GAFAgent::node_on (    )  [protected]
 

u_int32_t GAFAgent::nodeid (    )  [inline]
 

void GAFAgent::processDiscoveryMsg (  Packet *    p )  [protected]
 

void GAFAgent::recv (  Packet *   ,
Handler *   
)  [virtual]
 

Reimplemented from Agent.

void GAFAgent::schedule_wakeup (  struct    DiscoveryMsg )  [protected]
 

void GAFAgent::send_discovery (    )  [protected]
 

void GAFAgent::setGAFstate (  GafNodeState    )  [protected]
 

void GAFAgent::timeout (  GafMsgType    ) 
 


Member Data Documentation

int GAFAgent::adapt_mobility_ [protected]
 

double GAFAgent::beacon_ [protected]
 

GAFDutyTimer GAFAgent::dtimer_ [protected]
 

int GAFAgent::gid_ [protected]
 

int GAFAgent::leader_settime_ [protected]
 

int GAFAgent::maxttl_ [protected]
 

int GAFAgent::nid_ [protected]
 

int GAFAgent::randomflag_ [protected]
 

int GAFAgent::seqno_ [protected]
 

GafNodeState GAFAgent::state_ [protected]
 

GAFSelectTimer GAFAgent::stimer_ [protected]
 

Node* GAFAgent::thisnode [protected]
 

GAFDiscoverTimer GAFAgent::timer_ [protected]
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.