Loading...
Searching...
No Matches
SatNcrTest2 Class Reference

'NCR, test 2' test case implementation. More...

Inheritance diagram for SatNcrTest2:
Collaboration diagram for SatNcrTest2:

Public Member Functions

 SatNcrTest2 ()
virtual ~SatNcrTest2 ()

Private Member Functions

void ChangeTxStatus (bool enable)
virtual void DoRun (void)
void GetData (Ptr< CbrApplication > sender, Ptr< PacketSink > receiver)

Private Attributes

Ptr< SatChannelm_channel
Ptr< SatHelperm_helper
std::vector< SatUtMacState::RcstState_tm_states
std::vector< int > m_totalReceived
std::vector< int > m_totalSent

Detailed Description

'NCR, test 2' test case implementation.

This case tests ncr recovery mechanism.

Expected result: UT switch to NCR_RECOVERY if NCR reception is stopped UT switch back to READY_FOR_TDMA_SYNC if NCR reception come back before timeout GW receives data only when UT in TDMA_SYNC state

Definition at line 235 of file satellite-ncr-test.cc.

Constructor & Destructor Documentation

◆ SatNcrTest2()

SatNcrTest2::SatNcrTest2 ( )

Definition at line 255 of file satellite-ncr-test.cc.

◆ ~SatNcrTest2()

SatNcrTest2::~SatNcrTest2 ( )
virtual

Definition at line 262 of file satellite-ncr-test.cc.

Member Function Documentation

◆ ChangeTxStatus()

void SatNcrTest2::ChangeTxStatus ( bool enable)
private

Definition at line 432 of file satellite-ncr-test.cc.

Referenced by DoRun().

Here is the caller graph for this function:

◆ DoRun()

◆ GetData()

void SatNcrTest2::GetData ( Ptr< CbrApplication > sender,
Ptr< PacketSink > receiver )
private

Definition at line 418 of file satellite-ncr-test.cc.

References GetData(), m_states, m_totalReceived, and m_totalSent.

Referenced by DoRun(), and GetData().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_channel

Ptr<SatChannel> SatNcrTest2::m_channel
private

Definition at line 251 of file satellite-ncr-test.cc.

◆ m_helper

Ptr<SatHelper> SatNcrTest2::m_helper
private

Definition at line 246 of file satellite-ncr-test.cc.

Referenced by DoRun().

◆ m_states

std::vector<SatUtMacState::RcstState_t> SatNcrTest2::m_states
private

Definition at line 250 of file satellite-ncr-test.cc.

Referenced by DoRun(), and GetData().

◆ m_totalReceived

std::vector<int> SatNcrTest2::m_totalReceived
private

Definition at line 249 of file satellite-ncr-test.cc.

Referenced by DoRun(), and GetData().

◆ m_totalSent

std::vector<int> SatNcrTest2::m_totalSent
private

Definition at line 248 of file satellite-ncr-test.cc.

Referenced by GetData().


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