A Discrete-Event Network Simulator
API
BasicEnergyDepletionTest Class Reference

Test case of energy depletion handling for BasicEnergySource and WifiRadioEnergyModel. More...

+ Collaboration diagram for BasicEnergyDepletionTest:

Public Member Functions

 BasicEnergyDepletionTest ()
 
virtual ~BasicEnergyDepletionTest ()
 
bool DoRun ()
 Performs some tests involving energy depletion. More...
 

Private Member Functions

void DepletionHandler ()
 Callback invoked when energy is drained from source. More...
 
bool DepletionTestCase (double simTimeS, double updateIntervalS)
 

Private Attributes

int m_callbackCount
 counter for # of callbacks invoked More...
 
int m_numOfNodes
 number of nodes in simulation More...
 
double m_simTimeS
 maximum simulation time, in seconds More...
 
double m_timeStepS
 simulation time step size, in seconds More...
 
double m_updateIntervalS
 update interval of each device model More...
 

Detailed Description

Test case of energy depletion handling for BasicEnergySource and WifiRadioEnergyModel.

Definition at line 251 of file basic-energy-model-test.cc.

Constructor & Destructor Documentation

◆ BasicEnergyDepletionTest()

BasicEnergyDepletionTest::BasicEnergyDepletionTest ( )

Definition at line 286 of file basic-energy-model-test.cc.

◆ ~BasicEnergyDepletionTest()

BasicEnergyDepletionTest::~BasicEnergyDepletionTest ( )
virtual

Definition at line 295 of file basic-energy-model-test.cc.

Member Function Documentation

◆ DepletionHandler()

void BasicEnergyDepletionTest::DepletionHandler ( )
private

Callback invoked when energy is drained from source.

Definition at line 325 of file basic-energy-model-test.cc.

Referenced by DepletionTestCase().

+ Here is the caller graph for this function:

◆ DepletionTestCase()

◆ DoRun()

bool BasicEnergyDepletionTest::DoRun ( void  )

Performs some tests involving energy depletion.

Returns
true is some error happened.

Definition at line 300 of file basic-energy-model-test.cc.

Member Data Documentation

◆ m_callbackCount

int BasicEnergyDepletionTest::m_callbackCount
private

counter for # of callbacks invoked

Definition at line 280 of file basic-energy-model-test.cc.

◆ m_numOfNodes

int BasicEnergyDepletionTest::m_numOfNodes
private

number of nodes in simulation

Definition at line 279 of file basic-energy-model-test.cc.

◆ m_simTimeS

double BasicEnergyDepletionTest::m_simTimeS
private

maximum simulation time, in seconds

Definition at line 281 of file basic-energy-model-test.cc.

◆ m_timeStepS

double BasicEnergyDepletionTest::m_timeStepS
private

simulation time step size, in seconds

Definition at line 282 of file basic-energy-model-test.cc.

◆ m_updateIntervalS

double BasicEnergyDepletionTest::m_updateIntervalS
private

update interval of each device model

Definition at line 283 of file basic-energy-model-test.cc.


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