class AdaptiveFidelityEntity : public Handler


Inheritance:


Public Fields

int address_
Node* nid_
static struct node_head nodehead_
The remaining objects handle a (static) linked list of nodes static head of list of nodes
int nodeid_
for nam use

Public Methods

virtual void adapt_it()
inline int adaptivefidelity()
AdaptiveFidelityEntity(Node *nid)
void add_neighbor(u_int32_t)
for adaptive fidelity
virtual void add_rcvtime(float t)
virtual void get_node_idletime();
virtual void add_sndtime(float t)
inline int address()
virtual int command(int argc, const char*const* argv)
inline double energy()
inline double energy_level1()
inline double energy_level2()
inline EnergyModel* energy_model()
static Node* get_node_by_address(nsaddr_t)
inline int getneighbors()
virtual void handle(Event *e)
virtual void idle_energy_patch(float, float)
inline double initialenergy()
inline void insert(struct node_head* head)
NsObject* intf_to_target(int32_t)
inline Location* location()
inline float max_inroute_time()
inline Node* nextnode()
Node(void)
inline int nodeid()
inline int powersaving()
void scan_neighbor()
virtual void set_node_sleep(int)
virtual void set_node_state(int)
inline void set_sleepseed(float t)
inline void set_sleeptime(float t)
inline int sleep()
virtual void start()
void start_powersaving()
inline int state()
inline float state_start_time()
~Node()

Protected Classes

struct
int neighbor_cnt_
how many neighbors in this list
neighbor_list_item* head
struct neighbor_list_item
u_int32_t id
node id
int ttl
time-to-live
neighbor_list_item* next
pointer to next item

Protected Fields

int adaptivefidelity_
Is AFECA activated ?
AdaptiveFidelityEntity* afe_
EnergyModel* energy_model_
float idle_time_
Event intr
float last_time_gosleep
time when radio is turned off
Location* location_
float max_inroute_time_
maximum time that a node can remaining
int maxttl_
active how long a node can keep its neighbor
int namDefinedFlag_
Is nam defined ?
int powersavingflag_
Is BECA activated ?
int sleep_mode_
= 1: radio is turned off
float sleep_seed_
float sleep_time_
SoftNeighborHandler* snh_
int state_
used for AFECA state
float state_start_time_
starting time of one AFECA state
float total_rcvtime_
total time in receiving data
float total_sleeptime_
total time of radio in off mode
float total_sndtime_
total time in sending data

Protected Methods

LIST_ENTRY(Node)
declare list entry structure

Protected

struct
int neighbor_cnt_
how many neighbors in this list
neighbor_list_item* head
struct neighbor_list_item
u_int32_t id
node id
int ttl
time-to-live
neighbor_list_item* next
pointer to next item

Inherited from Handler:


Documentation

Node(void)

~Node()

virtual int command(int argc, const char*const* argv)

inline int address()

inline int nodeid()

inline double energy()

inline double initialenergy()

inline double energy_level1()

inline double energy_level2()

inline EnergyModel* energy_model()

inline Location* location()

inline int sleep()

inline int state()

inline float state_start_time()

inline float max_inroute_time()

inline int adaptivefidelity()

inline int powersaving()

inline int getneighbors()

virtual void set_node_sleep(int)

virtual void set_node_state(int)

virtual void add_rcvtime(float t)
virtual void get_node_idletime();

virtual void add_sndtime(float t)

virtual void idle_energy_patch(float, float)

int address_

int nodeid_
for nam use

NsObject* intf_to_target(int32_t)

static struct node_head nodehead_
The remaining objects handle a (static) linked list of nodes static head of list of nodes

inline void insert(struct node_head* head)

inline Node* nextnode()

static Node* get_node_by_address(nsaddr_t)

void add_neighbor(u_int32_t)
for adaptive fidelity

void scan_neighbor()

void start_powersaving()

LIST_ENTRY(Node)
declare list entry structure

EnergyModel* energy_model_

Location* location_

int sleep_mode_
= 1: radio is turned off

int state_
used for AFECA state

float state_start_time_
starting time of one AFECA state

float total_sleeptime_
total time of radio in off mode

float total_rcvtime_
total time in receiving data

float total_sndtime_
total time in sending data

int adaptivefidelity_
Is AFECA activated ?

int powersavingflag_
Is BECA activated ?

int namDefinedFlag_
Is nam defined ?

float last_time_gosleep
time when radio is turned off

float max_inroute_time_
maximum time that a node can remaining

int maxttl_
active how long a node can keep its neighbor

struct neighbor_list_item

u_int32_t id
node id

int ttl
time-to-live

neighbor_list_item* next
pointer to next item

struct

int neighbor_cnt_
how many neighbors in this list

neighbor_list_item* head

SoftNeighborHandler* snh_

AdaptiveFidelityEntity* afe_

Node* nid_

virtual void start()

virtual void handle(Event *e)

virtual void adapt_it()

inline void set_sleeptime(float t)

inline void set_sleepseed(float t)

AdaptiveFidelityEntity(Node *nid)

Event intr

float sleep_time_

float sleep_seed_

float idle_time_


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de