A Discrete-Event Network Simulator
API
BatteryLifetimeTest Class Reference

This example was originally devised as a test, then it was converted to an example. More...

+ Collaboration diagram for BatteryLifetimeTest:

Public Member Functions

 BatteryLifetimeTest ()
 
virtual ~BatteryLifetimeTest ()
 
bool ConstantLoadTest (double load, Time expLifetime)
 
void CreateLoadProfiles (void)
 Creates load profiles according to D. More...
 
bool VariableLoadTest (std::vector< double > loads, std::vector< Time > timeStamps, Time expLifetime)
 

Public Attributes

double m_alpha
 
double m_beta
 
std::vector< LoadProfilem_loadProfiles
 

Detailed Description

This example was originally devised as a test, then it was converted to an example.

The script tests the remaining energy for RvBatteryModel and WifiRadioEnergyModel updates. It does so by mimicking the procedure and results published in D. Rakhmatov, S. Vrudhula, D.A. Wallach, "Battery lifetime prediction for energy-aware computing," Proceedings of the 2002 International Symposium on Low Power Electronics and Design, 2002. ISLPED '02. doi: 10.1109/LPE.2002.146729

Definition at line 52 of file rv-battery-model-test.cc.

Constructor & Destructor Documentation

BatteryLifetimeTest::BatteryLifetimeTest ( )

Definition at line 102 of file rv-battery-model-test.cc.

BatteryLifetimeTest::~BatteryLifetimeTest ( )
virtual

Definition at line 109 of file rv-battery-model-test.cc.

Member Function Documentation

void BatteryLifetimeTest::CreateLoadProfiles ( void  )

Creates load profiles according to D.

Rakhmatov, S. Vrudhula, D.A. Wallach, "Battery lifetime prediction for energy-aware computing," Proceedings of the 2002 International Symposium on Low Power Electronics and Design, 2002. ISLPED '02. doi: 10.1109/LPE.2002.146729

Definition at line 114 of file rv-battery-model-test.cc.

References LoadProfile::dualFoilLifeTime, LoadProfile::itsyLifetime, LoadProfile::loads, ns3::Seconds(), and LoadProfile::timeStamps.

+ Here is the call graph for this function:

Member Data Documentation

double BatteryLifetimeTest::m_alpha

Definition at line 98 of file rv-battery-model-test.cc.

double BatteryLifetimeTest::m_beta

Definition at line 99 of file rv-battery-model-test.cc.

std::vector<LoadProfile> BatteryLifetimeTest::m_loadProfiles

Definition at line 97 of file rv-battery-model-test.cc.


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