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

LrWpan ACK Test. More...

+ Inheritance diagram for LrWpanAckTestCase:

Public Member Functions

 LrWpanAckTestCase ()
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Static Public Member Functions

static void DataConfirm (LrWpanAckTestCase *testCase, Ptr< LrWpanNetDevice > dev, McpsDataConfirmParams params)
 Function called when DataConfirm is hit. More...
 
static void DataIndication (LrWpanAckTestCase *testCase, Ptr< LrWpanNetDevice > dev, McpsDataIndicationParams params, Ptr< Packet > p)
 Function called when DataIndication is hit. More...
 
static void ExtendedAddressingDataConfirm (LrWpanAckTestCase *testCase, Ptr< LrWpanNetDevice > dev, McpsDataConfirmParams params)
 Function called when DataConfirm is hit in extended addressing test. More...
 
static void ExtendedAddressingDataIndication (LrWpanAckTestCase *testCase, Ptr< LrWpanNetDevice > dev, McpsDataIndicationParams params, Ptr< Packet > p)
 Function called when DataIndication is hit in extended addressing test. More...
 

Private Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 

Private Attributes

Time m_replyAckTime
 Reply ack time. More...
 
Time m_replyArrivalTime
 Reply arrival time. More...
 
Time m_replyTime
 Reply time. More...
 
Time m_requestAckTime
 Request ack time. More...
 
Time m_requestTime
 Request time. More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

LrWpan ACK Test.

Definition at line 50 of file lr-wpan-ack-test.cc.

Constructor & Destructor Documentation

◆ LrWpanAckTestCase()

LrWpanAckTestCase::LrWpanAckTestCase ( )

Member Function Documentation

◆ DataConfirm()

void LrWpanAckTestCase::DataConfirm ( LrWpanAckTestCase testCase,
Ptr< LrWpanNetDevice dev,
McpsDataConfirmParams  params 
)
static

Function called when DataConfirm is hit.

Parameters
testCaseThe TestCase.
devThe LrWpanNetDevice.
paramsThe MCPS params.

Definition at line 130 of file lr-wpan-ack-test.cc.

References ns3::LrWpanNetDevice::GetAddress(), m_replyAckTime, m_requestAckTime, and ns3::Now().

Referenced by DoRun().

◆ DataIndication()

void LrWpanAckTestCase::DataIndication ( LrWpanAckTestCase testCase,
Ptr< LrWpanNetDevice dev,
McpsDataIndicationParams  params,
Ptr< Packet p 
)
static

Function called when DataIndication is hit.

Parameters
testCaseThe TestCase.
devThe LrWpanNetDevice.
paramsThe MCPS params.
pthe packet.

Definition at line 107 of file lr-wpan-ack-test.cc.

References ns3::LrWpanNetDevice::GetAddress(), ns3::LrWpanNetDevice::GetMac(), m_replyArrivalTime, m_replyTime, ns3::McpsDataIndicationParams::m_srcAddrMode, ns3::Now(), ns3::SHORT_ADDR, and ns3::TX_OPTION_NONE.

Referenced by DoRun().

◆ DoRun()

void LrWpanAckTestCase::DoRun ( void  )
privatevirtual

◆ ExtendedAddressingDataConfirm()

void LrWpanAckTestCase::ExtendedAddressingDataConfirm ( LrWpanAckTestCase testCase,
Ptr< LrWpanNetDevice dev,
McpsDataConfirmParams  params 
)
static

Function called when DataConfirm is hit in extended addressing test.

Parameters
testCaseThe TestCase.
devThe LrWpanNetDevice.
paramsThe MCPS params.

Definition at line 166 of file lr-wpan-ack-test.cc.

References ns3::LrWpanNetDevice::GetMac(), m_replyAckTime, m_requestAckTime, and ns3::Now().

Referenced by DoRun().

◆ ExtendedAddressingDataIndication()

void LrWpanAckTestCase::ExtendedAddressingDataIndication ( LrWpanAckTestCase testCase,
Ptr< LrWpanNetDevice dev,
McpsDataIndicationParams  params,
Ptr< Packet p 
)
static

Function called when DataIndication is hit in extended addressing test.

Parameters
testCaseThe TestCase.
devThe LrWpanNetDevice.
paramsThe MCPS params.
pthe packet.

Definition at line 143 of file lr-wpan-ack-test.cc.

References ns3::EXT_ADDR, ns3::LrWpanNetDevice::GetMac(), m_replyArrivalTime, m_replyTime, ns3::McpsDataIndicationParams::m_srcAddrMode, ns3::Now(), and ns3::TX_OPTION_NONE.

Referenced by DoRun().

Member Data Documentation

◆ m_replyAckTime

Time LrWpanAckTestCase::m_replyAckTime
private

Reply ack time.

Definition at line 92 of file lr-wpan-ack-test.cc.

Referenced by DataConfirm(), DoRun(), ExtendedAddressingDataConfirm(), and LrWpanAckTestCase().

◆ m_replyArrivalTime

Time LrWpanAckTestCase::m_replyArrivalTime
private

Reply arrival time.

Definition at line 93 of file lr-wpan-ack-test.cc.

Referenced by DataIndication(), DoRun(), ExtendedAddressingDataIndication(), and LrWpanAckTestCase().

◆ m_replyTime

Time LrWpanAckTestCase::m_replyTime
private

Reply time.

Definition at line 91 of file lr-wpan-ack-test.cc.

Referenced by DataIndication(), DoRun(), ExtendedAddressingDataIndication(), and LrWpanAckTestCase().

◆ m_requestAckTime

Time LrWpanAckTestCase::m_requestAckTime
private

Request ack time.

Definition at line 90 of file lr-wpan-ack-test.cc.

Referenced by DataConfirm(), DoRun(), ExtendedAddressingDataConfirm(), and LrWpanAckTestCase().

◆ m_requestTime

Time LrWpanAckTestCase::m_requestTime
private

Request time.

Definition at line 89 of file lr-wpan-ack-test.cc.

Referenced by DoRun(), and LrWpanAckTestCase().


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