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  

LandmarkAgent Class Reference

#include <landmark.h>

Inheritance diagram for LandmarkAgent:

Agent Connector NsObject TclObject Handler List of all members.

Public Member Functions

 LandmarkAgent ()
virtual int command (int argc, const char *const *argv)
void startUp ()
virtual void stop ()
virtual void periodic_callback (Event *e, int level)
void Addparent (const nsaddr_t parent, int level)
void Addpotentialchild (const nsaddr_t child, int level)
virtual PacketmakeUpdate (ParentChildrenList *pcl, int pkt_type, int action)
int radius (int level)
void recv (Packet *p, Handler *)
virtual void ProcessHierUpdate (Packet *p)
virtual void ForwardPacket (Packet *p)
void get_nbrinfo ()
int CheckDemotionMsg (nsaddr_t id, int level, int origin_time)
void trace (char *fmt,...)
void assign_lmaddress (int64_t *lmaddr, int num_lm_addrs, int root_level)
compr_taglistaggregate_taginfo (compr_taglist *unagg_tags, int agg_level, int *num_tags)
compr_taglistaggregate_tags (compr_taglist *unagg_tags, int agg_level, int *num_tags)
NodeIDListsearch_tag (int obj_name, int prev_hop_level, int next_hop_level, nsaddr_t last_hop_id, int *num_dst)
virtual nsaddr_t get_next_hop (nsaddr_t dst, int next_hop_level)
double jitter (double max, int be_random_)
double random_timer (double max, int be_random_)
virtual void GenerateReHashMsg (int64_t lm_addr, double net_change_time)
virtual void MoveTags ()
virtual void AddMobileTag (void *mobile_tag)
void SendChangedTagListUpdate (int our_tag_changed, int level)
int compare_tag_lists (compr_taglist *tag_list1, int num_tags1, compr_taglist *tag_list2, int num_tags2)

Public Attributes

double promo_start_time_
double promo_timeout_
double promo_timeout_decr_
int promo_timer_running_
int seqno_
int myaddr_
int highest_level_
int num_demotion_msgs_
int be_random_
int num_resched_
int wait_state_
double total_wait_time_
int debug_
int qry_debug_
int cache_
int num_cached_items_
double update_period_
double update_timeout_
int adverts_type_
int global_lm_
nsaddr_t global_lm_id_
int global_lm_level_
int node_dead_
int num_nbrs_
int * nbrs_
double mobility_period_


class LMPeriodicAdvtHandler
class PromotionTimer
class ParentChildrenList

Constructor & Destructor Documentation


Member Function Documentation

void LandmarkAgent::AddMobileTag void *    mobile_tag [virtual]

void LandmarkAgent::Addparent const nsaddr_t    parent,
int    level

void LandmarkAgent::Addpotentialchild const nsaddr_t    child,
int    level

compr_taglist * LandmarkAgent::aggregate_taginfo compr_taglist   unagg_tags,
int    agg_level,
int *    num_tags

compr_taglist * LandmarkAgent::aggregate_tags compr_taglist   unagg_tags,
int    agg_level,
int *    num_tags

void LandmarkAgent::assign_lmaddress int64_t   lmaddr,
int    num_lm_addrs,
int    root_level

int LandmarkAgent::CheckDemotionMsg nsaddr_t    id,
int    level,
int    origin_time

int LandmarkAgent::command int    argc,
const char *const *    argv

Reimplemented from Agent.

int LandmarkAgent::compare_tag_lists compr_taglist   tag_list1,
int    num_tags1,
compr_taglist   tag_list2,
int    num_tags2

void LandmarkAgent::ForwardPacket Packet   p [virtual]

virtual void LandmarkAgent::GenerateReHashMsg int64_t    lm_addr,
double    net_change_time
[inline, virtual]

void LandmarkAgent::get_nbrinfo  

nsaddr_t LandmarkAgent::get_next_hop nsaddr_t    dst,
int    next_hop_level

double LandmarkAgent::jitter double    max,
int    be_random_

Packet * LandmarkAgent::makeUpdate ParentChildrenList   pcl,
int    pkt_type,
int    action

void LandmarkAgent::MoveTags   [virtual]

void LandmarkAgent::periodic_callback Event   e,
int    level

void LandmarkAgent::ProcessHierUpdate Packet   p [virtual]

int LandmarkAgent::radius int    level

double LandmarkAgent::random_timer double    max,
int    be_random_

void LandmarkAgent::recv Packet   p,

Reimplemented from Agent.

NodeIDList * LandmarkAgent::search_tag int    obj_name,
int    prev_hop_level,
int    next_hop_level,
nsaddr_t    last_hop_id,
int *    num_dst

void LandmarkAgent::SendChangedTagListUpdate int    our_tag_changed,
int    level

void LandmarkAgent::startUp  

void LandmarkAgent::stop   [virtual]

void LandmarkAgent::trace char *    fmt,

Friends And Related Function Documentation

friend class LMPeriodicAdvtHandler [friend]

friend class ParentChildrenList [friend]

friend class PromotionTimer [friend]

Member Data Documentation

int LandmarkAgent::adverts_type_

int LandmarkAgent::be_random_

int LandmarkAgent::cache_

int LandmarkAgent::debug_

Reimplemented from NsObject.

int LandmarkAgent::global_lm_

nsaddr_t LandmarkAgent::global_lm_id_

int LandmarkAgent::global_lm_level_

int LandmarkAgent::highest_level_

PriQueue* LandmarkAgent::ll_queue

compr_taglist* LandmarkAgent::mobile_tags_

double LandmarkAgent::mobility_period_

int LandmarkAgent::myaddr_

int* LandmarkAgent::nbrs_

MobileNode* LandmarkAgent::node_

int LandmarkAgent::node_dead_

int LandmarkAgent::num_cached_items_

int LandmarkAgent::num_demotion_msgs_

int LandmarkAgent::num_nbrs_

int LandmarkAgent::num_resched_

ParentChildrenList* LandmarkAgent::parent_children_list_

double LandmarkAgent::promo_start_time_

double LandmarkAgent::promo_timeout_

double LandmarkAgent::promo_timeout_decr_

PromotionTimer* LandmarkAgent::promo_timer_

int LandmarkAgent::promo_timer_running_

int LandmarkAgent::qry_debug_

RecentMsgRecord* LandmarkAgent::recent_demotion_msgs_

RNG* LandmarkAgent::rn_

int LandmarkAgent::seqno_

Event* LandmarkAgent::tag_advt_event_

TagAdvtHandler* LandmarkAgent::tag_advt_handler_

TagCache* LandmarkAgent::tag_cache_

tags_database* LandmarkAgent::tag_dbase_

TagMobilityHandler* LandmarkAgent::tag_mobility_

Event* LandmarkAgent::tag_mobility_event_

RNG* LandmarkAgent::tag_rng_

double LandmarkAgent::total_wait_time_

Trace* LandmarkAgent::tracetarget_

double LandmarkAgent::update_period_

double LandmarkAgent::update_timeout_

int LandmarkAgent::wait_state_

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