A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BasicEnergyDepletionTest Class Reference

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

Public Member Functions

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

Private Member Functions

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

Private Attributes

int m_callbackCount
 
int m_numOfNodes
 
double m_simTimeS
 
double m_timeStepS
 
double m_updateIntervalS
 

Detailed Description

Test case of energy depletion handling for BasicEnergySource and WifiRadioEnergyModel.

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

Constructor & Destructor Documentation

◆ BasicEnergyDepletionTest()

BasicEnergyDepletionTest::BasicEnergyDepletionTest ( )

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

◆ ~BasicEnergyDepletionTest()

BasicEnergyDepletionTest::~BasicEnergyDepletionTest ( )
virtual

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

Member Function Documentation

◆ DepletionHandler()

void BasicEnergyDepletionTest::DepletionHandler ( void  )
private

Callback invoked when energy is drained from source.

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

Referenced by DepletionTestCase().

◆ DepletionTestCase()

bool BasicEnergyDepletionTest::DepletionTestCase ( double  simTimeS,
double  updateIntervalS 
)
private

◆ DoRun()

bool BasicEnergyDepletionTest::DoRun ( void  )

Performs some tests involving energy depletion.

Returns
true is some error happened.

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

Member Data Documentation

◆ m_callbackCount

int BasicEnergyDepletionTest::m_callbackCount
private

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

◆ m_numOfNodes

int BasicEnergyDepletionTest::m_numOfNodes
private

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

◆ m_simTimeS

double BasicEnergyDepletionTest::m_simTimeS
private

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

◆ m_timeStepS

double BasicEnergyDepletionTest::m_timeStepS
private

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

◆ m_updateIntervalS

double BasicEnergyDepletionTest::m_updateIntervalS
private

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


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