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

landmark.h File Reference

#include <agent.h>
#include <ip.h>
#include <delay.h>
#include <scheduler.h>
#include <queue.h>
#include <trace.h>
#include <arp.h>
#include <ll.h>
#include <mac.h>
#include <priqueue.h>
#include <mobilenode.h>
#include "tags.h"
#include "agent-list.h"

Include dependency graph for landmark.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

class  aggreg_taglist
class  LandmarkAgent
class  LMAddrs
class  LMEvent
class  LMNode
class  LMPeriodicAdvtHandler
class  NodeIDList
class  ParentChildrenList
class  PromotionTimer
class  RecentMsgRecord
class  TagAdvtHandler
class  TagMobilityHandler

Defines

#define ROUTER_PORT   255
#define QUERY_PORT   0
#define NOT_CHILD   0
#define IS_CHILD   1
#define NOT_POTL_CHILD   2
#define NO_PARENT   60000
#define OLD_ENTRY   0
#define NEW_ENTRY   1
#define OLD_MESSAGE   2
#define ENTRY_NOT_FOUND   3
#define NEW_CHILD   4
#define OLD_CHILD_TAGS_CHANGED   5
#define TRUE   1
#define FALSE   0
#define MAX_ENERGY   100000
#define MAX_LEVELS   8
#define MAX_CHILDREN   30
#define MAX_DEMOTION_RECORDS   20
#define INITIAL_WAIT_TIME   10.0
#define PERIODIC_WAIT_TIME   60.0
#define LM_STARTUP_JITTER   10.0
#define IP_HDR_SIZE   20
#define WAIT_TIME   2
#define MAX_TIMEOUT   200
#define CONST_TIMEOUT   10
#define LOW_FREQ_UPDATE   300
#define PROMO_TIMEOUT_MULTIPLES   1
#define DEMOTION   0
#define PERIODIC_ADVERTS   1
#define UNICAST_ADVERT_CHILD   2
#define UNICAST_ADVERT_PARENT   3
#define GLOBAL_ADVERT   4
#define QUERY_PKT   5
#define DIR_QUERY_PKT   6
#define DIR_RESPONSE_PKT   7
#define OBJECT_QUERY_PKT   8
#define OBJECT_RESPONSE_PKT   9
#define HASH_PKT   10
#define HASH_ACK_PKT   11
#define REHASH_PKT   12
#define FLOOD   0
#define UNICAST   1
#define SUPPRESS   2
#define DEMOTION_RATIO   1.3
#define DEMOTION_DIFF   5000
#define NO_NEXT_HOP   50000
#define MAX_CACHE_ITEMS   200
#define NO_GLOBAL_LM   60000
#define HIER_ADVS   0
#define OBJECT_ADVS   1
#define HIER_AND_OBJECT_ADVS   2

Typedefs

typedef double Time


Define Documentation

#define CONST_TIMEOUT   10
 

Definition at line 53 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define DEMOTION   0
 

Definition at line 58 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::makeUpdate(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define DEMOTION_DIFF   5000
 

Definition at line 77 of file landmark.h.

#define DEMOTION_RATIO   1.3
 

Definition at line 76 of file landmark.h.

#define DIR_QUERY_PKT   6
 

Definition at line 64 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define DIR_RESPONSE_PKT   7
 

Definition at line 65 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define ENTRY_NOT_FOUND   3
 

Definition at line 34 of file landmark.h.

Referenced by ParentChildrenList::UpdatePotlChild(), and ParentChildrenList::UpdatePotlParent().

#define FALSE   0
 

Definition at line 39 of file landmark.h.

#define FLOOD   0
 

Definition at line 72 of file landmark.h.

Referenced by LandmarkAgent::LandmarkAgent(), and ParentChildrenList::ParentChildrenList().

#define GLOBAL_ADVERT   4
 

Definition at line 62 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::makeUpdate(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define HASH_ACK_PKT   11
 

Definition at line 69 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define HASH_PKT   10
 

Definition at line 68 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define HIER_ADVS   0
 

Definition at line 371 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::makeUpdate(), LandmarkAgent::periodic_callback(), LandmarkAgent::ProcessHierUpdate(), and LandmarkAgent::SendChangedTagListUpdate().

#define HIER_AND_OBJECT_ADVS   2
 

Definition at line 373 of file landmark.h.

#define INITIAL_WAIT_TIME   10.0
 

Definition at line 46 of file landmark.h.

Referenced by LandmarkAgent::startUp().

#define IP_HDR_SIZE   20
 

Definition at line 49 of file landmark.h.

#define IS_CHILD   1
 

Definition at line 26 of file landmark.h.

Referenced by LandmarkAgent::assign_lmaddress(), PromotionTimer::expire(), LandmarkAgent::periodic_callback(), LandmarkAgent::ProcessHierUpdate(), LandmarkAgent::search_tag(), LandmarkAgent::SendChangedTagListUpdate(), and ParentChildrenList::UpdatePotlChild().

#define LM_STARTUP_JITTER   10.0
 

Definition at line 48 of file landmark.h.

Referenced by LandmarkAgent::command(), LandmarkAgent::LandmarkAgent(), LandmarkAgent::periodic_callback(), and LandmarkAgent::startUp().

#define LOW_FREQ_UPDATE   300
 

Definition at line 55 of file landmark.h.

#define MAX_CACHE_ITEMS   200
 

Definition at line 80 of file landmark.h.

#define MAX_CHILDREN   30
 

Definition at line 43 of file landmark.h.

Referenced by LandmarkAgent::assign_lmaddress().

#define MAX_DEMOTION_RECORDS   20
 

Definition at line 44 of file landmark.h.

Referenced by LandmarkAgent::CheckDemotionMsg(), and LandmarkAgent::LandmarkAgent().

#define MAX_ENERGY   100000
 

Definition at line 41 of file landmark.h.

#define MAX_LEVELS   8
 

Definition at line 42 of file landmark.h.

Referenced by PromotionTimer::expire().

#define MAX_TIMEOUT   200
 

Definition at line 51 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define NEW_CHILD   4
 

Definition at line 35 of file landmark.h.

Referenced by LandmarkAgent::ProcessHierUpdate(), and ParentChildrenList::UpdatePotlChild().

#define NEW_ENTRY   1
 

Definition at line 32 of file landmark.h.

Referenced by LandmarkAgent::CheckDemotionMsg(), LandmarkAgent::ProcessHierUpdate(), ParentChildrenList::UpdatePotlChild(), and ParentChildrenList::UpdatePotlParent().

#define NO_GLOBAL_LM   60000
 

Definition at line 82 of file landmark.h.

Referenced by LandmarkAgent::LandmarkAgent(), LandmarkAgent::periodic_callback(), and LandmarkAgent::stop().

#define NO_NEXT_HOP   50000
 

Definition at line 79 of file landmark.h.

Referenced by LandmarkAgent::ForwardPacket(), LandmarkAgent::get_next_hop(), FloodAgent::get_next_hop(), LandmarkAgent::ProcessHierUpdate(), and FloodAgent::recv().

#define NO_PARENT   60000
 

Definition at line 29 of file landmark.h.

Referenced by LandmarkAgent::makeUpdate().

#define NOT_CHILD   0
 

Definition at line 25 of file landmark.h.

Referenced by LMNode::LMNode(), LandmarkAgent::ProcessHierUpdate(), and ParentChildrenList::UpdatePotlChild().

#define NOT_POTL_CHILD   2
 

Definition at line 27 of file landmark.h.

Referenced by LandmarkAgent::command(), LandmarkAgent::makeUpdate(), LandmarkAgent::ProcessHierUpdate(), and ParentChildrenList::UpdatePotlChild().

#define OBJECT_ADVS   1
 

Definition at line 372 of file landmark.h.

#define OBJECT_QUERY_PKT   8
 

Definition at line 66 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define OBJECT_RESPONSE_PKT   9
 

Definition at line 67 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define OLD_CHILD_TAGS_CHANGED   5
 

Definition at line 36 of file landmark.h.

Referenced by LandmarkAgent::ProcessHierUpdate(), and ParentChildrenList::UpdatePotlChild().

#define OLD_ENTRY   0
 

Definition at line 31 of file landmark.h.

Referenced by ParentChildrenList::UpdatePotlChild(), and ParentChildrenList::UpdatePotlParent().

#define OLD_MESSAGE   2
 

Definition at line 33 of file landmark.h.

#define PERIODIC_ADVERTS   1
 

Definition at line 59 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::makeUpdate(), LandmarkAgent::periodic_callback(), LandmarkAgent::ProcessHierUpdate(), and LandmarkAgent::SendChangedTagListUpdate().

#define PERIODIC_WAIT_TIME   60.0
 

Definition at line 47 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define PROMO_TIMEOUT_MULTIPLES   1
 

Definition at line 56 of file landmark.h.

Referenced by PromotionTimer::expire(), LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define QUERY_PKT   5
 

Definition at line 63 of file landmark.h.

Referenced by SensorQueryAgent::generate_query(), LandmarkAgent::recv(), and FloodAgent::recv().

#define QUERY_PORT   0
 

Definition at line 23 of file landmark.h.

Referenced by FloodAgent::recv().

#define REHASH_PKT   12
 

Definition at line 70 of file landmark.h.

Referenced by LandmarkAgent::recv().

#define ROUTER_PORT   255
 

Definition at line 22 of file landmark.h.

#define SUPPRESS   2
 

Definition at line 74 of file landmark.h.

Referenced by LandmarkAgent::command(), and LandmarkAgent::periodic_callback().

#define TRUE   1
 

Definition at line 38 of file landmark.h.

#define UNICAST   1
 

Definition at line 73 of file landmark.h.

#define UNICAST_ADVERT_CHILD   2
 

Definition at line 60 of file landmark.h.

Referenced by LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define UNICAST_ADVERT_PARENT   3
 

Definition at line 61 of file landmark.h.

Referenced by LandmarkAgent::periodic_callback(), and LandmarkAgent::ProcessHierUpdate().

#define WAIT_TIME   2
 

Definition at line 50 of file landmark.h.

Referenced by LandmarkAgent::startUp().


Typedef Documentation

typedef double Time
 

Definition at line 20 of file landmark.h.


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