Classes | Public Types | Public Member Functions | Protected Attributes

EnergyModel Class Reference

List of all members.


struct  neighbor_list_item

Public Types

enum  SleepState { WAITING = 0, POWERSAVING = 1, INROUTE = 2 }

Public Member Functions

 EnergyModel (MobileNode *n, double energy, double l1, double l2)
double energy () const
double et () const
double er () const
double ei () const
double es () const
double initialenergy () const
double level1 () const
double level2 () const
void setenergy (double e)
virtual void DecrTxEnergy (double txtime, double P_tx)
virtual void DecrRcvEnergy (double rcvtime, double P_rcv)
virtual void DecrIdleEnergy (double idletime, double P_idle)
virtual void DecrSleepEnergy (double sleeptime, double P_sleep)
virtual void DecrTransitionEnergy (double transitiontime, double P_transition)
virtual double MaxTxtime (double P_tx)
virtual double MaxRcvtime (double P_rcv)
virtual double MaxIdletime (double P_idle)
void add_neighbor (u_int32_t)
void scan_neighbor ()
int getneighbors ()
double level1 ()
double level2 ()
int sleep ()
int state ()
float state_start_time ()
float & max_inroute_time ()
int & adaptivefidelity ()
int & powersavingflag ()
bool & node_on ()
float & total_sndtime ()
float & total_rcvtime ()
float & total_sleeptime ()
float & total_idletime ()
AdaptiveFidelityEntityafe ()
int & maxttl ()
virtual void set_node_sleep (int)
virtual void set_node_state (int)
virtual void add_rcvtime (float t)
virtual void add_sndtime (float t)
virtual void add_sleeptime (float t)
void start_powersaving ()

Protected Attributes

double energy_
double er_
double et_
double ei_
double es_
double initialenergy_
double level1_
double level2_
struct {
   int   neighbor_cnt_
   neighbor_list_item *   head
int sleep_mode_
float total_sleeptime_
float total_rcvtime_
float total_sndtime_
float total_idletime_
int powersavingflag_
float last_time_gosleep
float max_inroute_time_
int maxttl_
int state_
float state_start_time_
int adaptivefidelity_
bool node_on_

The documentation for this class was generated from the following files: